CN109104330A - A kind of CIFS shares maximized automatic test approach - Google Patents
A kind of CIFS shares maximized automatic test approach Download PDFInfo
- Publication number
- CN109104330A CN109104330A CN201810829572.9A CN201810829572A CN109104330A CN 109104330 A CN109104330 A CN 109104330A CN 201810829572 A CN201810829572 A CN 201810829572A CN 109104330 A CN109104330 A CN 109104330A
- Authority
- CN
- China
- Prior art keywords
- cifs
- test
- delay time
- create
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
本发明提出的一种CIFS共享最大化的自动测试方法,通过执行脚本,无限循环创建文件系统,创建目录,创建cifs共享,除非达到系统的创建次数最大限制,创建失败时会自动退出。通过上述方法,实现了自动进行CIFS的最大化测试,只需在存储端运行脚本文件即可,节省了大量的测试时间和精力,提高了测试效率。
The invention proposes an automatic test method for maximizing CIFS sharing. By executing scripts, file systems are created in an infinite loop, directories are created, and cifs shares are created. Unless the maximum number of creation times of the system is reached, it will automatically exit when the creation fails. Through the above method, the maximum CIFS test is realized automatically, and only the script file needs to be run on the storage side, which saves a lot of test time and energy, and improves the test efficiency.
Description
Technical field
The present invention relates to memory system testing technical field, more particularly to a kind of CIFS shares maximumlly certainly
Dynamic test method.
Background technique
Wave information AS18000G2 stores product on the basis of unified storage, increases NAS (Network Attached
Storage) function realizes that the function of console module increases and optimizes, not only supplements company's storage product line, but also enrich company
The diversification of products scheme combination.Wherein CIFS (Common Internet File System) is a composition portion of NAS
Point, the file service of stabilization, high-performance, high reliability, high availability can be provided for NAS service.
In CIFS test, the maximum CIFS that NAS system can be supported shared quantity is always important test, energy
Enough intuitive maximum support amounts for embodying NAS are needed in storage end creation NAS cluster, to the greatest extent when carrying out maximization limit test
May more than file system and CIFS catalogue and shared, expend more time and energy, be unfavorable for test it is quick into
Row, so needing one kind that can automate the method that CIFS maximizes test that carries out.
Currently, CIFS is shared in carrying out NAS maximizes in test, if manually performed, needs in gui interface or deposits
The backstage of storage is executed, wherein every one CIFS of progress is shared to need first to create file system, then creates share directory, it
It is shared afterwards by user, whole flow process, which is got off, probably needs 3 minutes, and the shared data supported reaches 3000, needs to consume
Take biggish manpower.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of CIFS to share maximized automatic test approach.
The present invention to achieve the above object, is achieved through the following technical solutions: a kind of shared maximized automatic survey of CIFS
Method for testing includes the following steps:
Step 1: removing original NAS cluster;
Step 2: creating new NAS cluster;
Step 3: port ip is configured to two nodes in NAS cluster;
Step 4: the addition domain AD;
Step 5: creation journal file;
Step 6: creation storage pool;
Step 7: creation file system, catalogue and cifs are shared, and are counted;
Step 8: judging whether count value reaches the maximum limitation of system;If so, exiting test: if not, going to step 7.
Further, the step 1 specifically:
Step 11: removing original NAS node;
Step 12: the first delay time of setting;
Step 13: removing original NAS cluster;
Step 14: the second delay time of setting.
Further, the step 2 further include: setting third delay time.
Further, the step 3 specifically: port ip is configured to two storage controls in NAS cluster.
Further, the step 7 specifically:
Step 71: creation file system;
Step 72: judging whether file system creates success;It successfully prompts if so, exporting and goes to step 73;If not, defeated
Unsuccessfully prompt to journal file and exits test out;
Step 73: createing directory for file system and CIFS is shared;
Step 74: judging that CIFS is shared and whether create success;It successfully prompts if so, exporting and goes to step 8;
If not, unsuccessfully prompt to journal file and exits test for output.
Further, first delay time and the second delay time are set as 600 seconds.
Further, the third delay time is set as 200 seconds.
Further, the step 73 further include: set for the 4th delay time as 10 seconds.
The prior art is compared, the beneficial effects of the invention are that: a kind of CIFS proposed by the present invention is shared maximized automatic
Test method, by perform script, Infinite Cyclic creates file system, creaties directory, and creation cifs is shared, unless reaching system
Creation number maximum limitation, creation failure when can automatically exit from.By the above method, the automatic maximum for carrying out CIFS is realized
Change test, only need to save a large amount of testing time and energy in storage end Run Script file, improves test effect
Rate.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress
Beneficial effect be also obvious.
Detailed description of the invention
Attached drawing 1 is the method flow diagram of the embodiment of the present invention one.
Attached drawing 2 is the method flow diagram of the embodiment of the present invention two.
Specific embodiment
It explains with reference to the accompanying drawing to a specific embodiment of the invention.
Embodiment one:
A kind of CIFS as shown in Figure 1 shares maximized automatic test approach, includes the following steps:
Step 1: removing original NAS cluster.
Step 2: creating new NAS cluster.
Step 3: port ip is configured to two nodes in NAS cluster.
Step 4: the addition domain AD.
Step 5: creation journal file.
Step 6: creation storage pool.
Step 7: creation file system, catalogue and cifs are shared, and are counted.
Step 8: judging whether count value reaches the maximum limitation of system;If so, exiting test: if not, going to step
Rapid 7.
A kind of CIFS that the present embodiment proposes shares maximized automatic test approach, passes through perform script, Infinite Cyclic
File system is created, is creatied directory, creation cifs is shared, unless reaching the creation number maximum limitation of system, when creating failure
It can automatically exit from.
Embodiment two:
A kind of CIFS as shown in Figure 2 shares maximized automatic test approach, includes the following steps:
Step 1: removing original NAS node.
Step 2: setting for the first delay time as 600 seconds.
Step 3: removing original NAS cluster.
Step 4: setting for the second delay time as 600 seconds.
Step 5: creating new NAS cluster.
Step 6: setting third delay time as 200 seconds.
Step 7: port ip is configured to two storage controls in NAS cluster.
Step 8: the addition domain AD.
Step 9: creation journal file.
Step 10: creation storage pool.
Step 11: creation file system.
Step 12: judging whether file system creates success;It successfully prompts if so, exporting and goes to step 13.If
No, unsuccessfully prompt to journal file and exits test for output.
Step 13: createing directory for file system and CIFS is shared.
Step 14: setting for the 4th delay time as 10 seconds.
Step 15: judging that CIFS is shared and whether create success;It successfully prompts if so, exporting and goes to step 16;
If not, unsuccessfully prompt to journal file and exits test for output.
Step 16: testing time is counted.
Step 17: judging whether count value reaches the maximum limitation of system;If so, exiting test: if not, going to step
Rapid 11.
On the basis of the above, specific Test.sh content for script is as follows:
# script name: max_cifs
# test content: re-establishing nas cluster, creates file system, creaties directory under file system, carry out at catalogue #
Cifs is shared
# removes original nas cluster
replacenas
sleep 600
restorenas
Sleep 600
# creates NAS cluster
mknascluster
sleep 200
# configures port ip to two nodes in cluster
cfgnasportip –gui –gw 100.7.47.254 –ip 100.7.40.125 –mask 255.255.240.0 –
node node1 –port 1
cfgnasportip –gui –gw 100.7.47.254 –ip 100.7.40.126 –mask 255.255.240.0 –
node node2 –port 1
# adds the domain AD
Joidad-user asministrator-passwd 123456a?-domain NASAD.COM-ip
100.7.40.23 –group NASAD –dns 100.7.40.22 –computername palm
# creates journal file
Date1=$ (date+%y%m%d)
touch mkfile.$date1
touch mkshare.$date1
# creates storage pool
mtop mkmdiskgrp -easytier auto -encrypt no -ext 1024 -guiid 0 -name Pool0
- warning 80%
# creates file system, creaties directory, and creation cifs is shared, at this time: an Infinite Cyclic is provided that, unless reaching and being
The maximum limitation of system, creation can be automatically exited from when failing, otherwise can be created always
Count=1
while true;do
echo"begin"
# creates file system
addfs –name file${count} –pool Pool0 –size 102400 –node node1
If [$?-eq 0]
then
If # file system creates successfully, output correlation is successfully prompted
echo-e"---create file${count}successfully---"
else
If the creation failure of # file system, unsuccessfully journal file is arrived in prompt for output, while exiting circulation
echo-e"---failed to create file${count}---">>mkfile.$date1
break
fi
# creaties directory for file system
addnasdir–gui/fs/file${count}/file_dir${count}
sleep 10
setcifs –add –name cifs${count} -oplocks on –path/fs/file${count}/file_
dir${count}–rights AU:li:rw
If [$?-eq 0]
then
It is created successfully if # is shared, output correlation successfully prompts
echo-e"---create share${count}successfully---"
else
If the shared creation failure of #, unsuccessfully journal file is arrived in prompt for output, while exiting circulation
echo-e"---failed to create file${count}---">>mkshare.$date1
break
fi
echo$count"test success......"
Count=$ ((count+1))
done
When operation, it is only necessary to execute ./test.sh in storage end, cluster can be reset automatically, create file system, catalogue
And it is shared, simply and easily carry out the shared maximization test of cifs.
A kind of CIFS that the present embodiment proposes shares maximized automatic test approach, by executing ./test.sh script,
Infinite Cyclic creates file system, creaties directory, and creation cifs is shared, unless reaching the creation number maximum limitation of system, wound
It can be automatically exited from when building unsuccessfully.By the above method, the automatic maximization test for carrying out CIFS is realized, need to only be transported in storage end
Row ./test.sh script file, saves a large amount of testing time and energy, improves testing efficiency.
With reference to the drawings and specific embodiments, the invention will be further described.It should be understood that these embodiments are merely to illustrate
The present invention rather than limit the scope of the invention.In addition, it should also be understood that, after reading the content taught by the present invention, this field
Technical staff can make various changes or modifications the present invention, and such equivalent forms equally fall within range defined herein.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810829572.9A CN109104330B (en) | 2018-07-25 | 2018-07-25 | An Automatic Test Method for Maximizing CIFS Shares |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810829572.9A CN109104330B (en) | 2018-07-25 | 2018-07-25 | An Automatic Test Method for Maximizing CIFS Shares |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109104330A true CN109104330A (en) | 2018-12-28 |
CN109104330B CN109104330B (en) | 2021-10-22 |
Family
ID=64847502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810829572.9A Active CN109104330B (en) | 2018-07-25 | 2018-07-25 | An Automatic Test Method for Maximizing CIFS Shares |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109104330B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101256560A (en) * | 2007-02-26 | 2008-09-03 | 中国航空工业第二集团公司科学技术委员会 | Method for construction of distributing storage data file sharing system based on gridding |
CN101699825A (en) * | 2009-10-28 | 2010-04-28 | 成都市华为赛门铁克科技有限公司 | Network file system access method, device and system |
US7849167B2 (en) * | 2008-04-15 | 2010-12-07 | International Business Machines Corporation | Dynamic distributed adjustment of maximum use of a shared storage resource |
CN102541994A (en) * | 2011-11-18 | 2012-07-04 | 浪潮电子信息产业股份有限公司 | Method for deploying and sharing NFS (network file system) automatically and quickly |
US8719635B2 (en) * | 2012-01-06 | 2014-05-06 | International Business Machines Corporation | Cost effective use of simulated storage in a storage subsystem test environment |
CN104639660A (en) * | 2015-03-13 | 2015-05-20 | 浪潮集团有限公司 | Method for optimizing NFS (network file system) sharing performance in NAS (network-attached storage) system |
US9678983B1 (en) * | 2012-10-19 | 2017-06-13 | Oracle International Corporation | Systems and methods for automatically passing hints to a file system |
US20170235760A1 (en) * | 2016-02-12 | 2017-08-17 | Nutanix, Inc. | Virtualized file server |
CN107329805A (en) * | 2017-07-13 | 2017-11-07 | 郑州云海信息技术有限公司 | The implementation method and device of a kind of virtual platform high availability |
CN107968727A (en) * | 2017-11-29 | 2018-04-27 | 郑州云海信息技术有限公司 | A kind of detection method, device and the medium of CIFS services |
-
2018
- 2018-07-25 CN CN201810829572.9A patent/CN109104330B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101256560A (en) * | 2007-02-26 | 2008-09-03 | 中国航空工业第二集团公司科学技术委员会 | Method for construction of distributing storage data file sharing system based on gridding |
US7849167B2 (en) * | 2008-04-15 | 2010-12-07 | International Business Machines Corporation | Dynamic distributed adjustment of maximum use of a shared storage resource |
CN101699825A (en) * | 2009-10-28 | 2010-04-28 | 成都市华为赛门铁克科技有限公司 | Network file system access method, device and system |
CN102541994A (en) * | 2011-11-18 | 2012-07-04 | 浪潮电子信息产业股份有限公司 | Method for deploying and sharing NFS (network file system) automatically and quickly |
US8719635B2 (en) * | 2012-01-06 | 2014-05-06 | International Business Machines Corporation | Cost effective use of simulated storage in a storage subsystem test environment |
US9678983B1 (en) * | 2012-10-19 | 2017-06-13 | Oracle International Corporation | Systems and methods for automatically passing hints to a file system |
CN104639660A (en) * | 2015-03-13 | 2015-05-20 | 浪潮集团有限公司 | Method for optimizing NFS (network file system) sharing performance in NAS (network-attached storage) system |
US20170235760A1 (en) * | 2016-02-12 | 2017-08-17 | Nutanix, Inc. | Virtualized file server |
CN107329805A (en) * | 2017-07-13 | 2017-11-07 | 郑州云海信息技术有限公司 | The implementation method and device of a kind of virtual platform high availability |
CN107968727A (en) * | 2017-11-29 | 2018-04-27 | 郑州云海信息技术有限公司 | A kind of detection method, device and the medium of CIFS services |
Non-Patent Citations (1)
Title |
---|
刘金柱: "NAS网络存储技术研究", 《中国优秀硕士学位论文全文数据库》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109104330B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600029B (en) | A configuration file updating method, device, terminal device and storage medium | |
CN106375214B (en) | A kind of Tiered routing determining method of path and device based on SDN | |
US20230370500A1 (en) | Distributed interface for data capture from multiple sources | |
Massie et al. | Monitoring with ganglia: tracking dynamic host and application metrics at scale | |
CN110798517B (en) | Decentralized cluster load balancing method and system, mobile terminal and storage medium | |
US9152441B2 (en) | Systems and methods involving virtual machine host isolation over a network via a federated downstream cluster | |
US20180077197A1 (en) | Diffusing denial-of-service attacks by using virtual machines | |
CN105681426B (en) | Heterogeneous system | |
US10409620B2 (en) | Spanning tree protocol warm reboot system | |
CN106789381A (en) | It is a kind of for cloud computing management platform simplified deployment and the method for rapid configuration | |
CN110858810A (en) | Network link state monitoring method, device, system and medium | |
CN108667928A (en) | A kind of method of data synchronization based on block chain state machine networking running | |
CN107483238A (en) | A log management method, cluster management node and system | |
CN106126283A (en) | A kind of method of product allocation, Apparatus and system | |
CN102143414B (en) | Method for implementing network connection test between local-side device and terminal device in EPON (Ethernet passive optical network) | |
CN106330962A (en) | A flow cleaning management method and device | |
US8275882B2 (en) | System and method for goal driven threshold setting in distributed system management | |
Altalebi et al. | Optimization of elapsed time of automation for large-scale traditional networks and proposing new automation scripts | |
CN104820628A (en) | Method for monitoring system load and system resource use condition based on BASH | |
CN109104330A (en) | A kind of CIFS shares maximized automatic test approach | |
CN110417864A (en) | A kind of method and system determining monitoring configuration file based on network mapping tool | |
CN108023959A (en) | A kind of method and system of automatic installation group system | |
CN104065547B (en) | A kind of system of selection for calculating central interior physical host | |
CN110493355A (en) | A kind of method for down loading and device of system log | |
CN109992256A (en) | The high reusability network architecture and its implementation that can be cross-platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |