CN109104330A - A kind of CIFS shares maximized automatic test approach - Google Patents

A kind of CIFS shares maximized automatic test approach Download PDF

Info

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
maximized
shares
automatic test
delay time
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
Application number
CN201810829572.9A
Other languages
Chinese (zh)
Other versions
CN109104330B (en
Inventor
李玲侠
李婷婷
刘颖
李佳颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810829572.9A priority Critical patent/CN109104330B/en
Publication of CN109104330A publication Critical patent/CN109104330A/en
Application granted granted Critical
Publication of CN109104330B publication Critical patent/CN109104330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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

A kind of CIFS proposed by the present invention shares maximized automatic test approach, and by perform script, Infinite Cyclic creates file system, creaties directory, and creation cifs is shared, unless reaching the creation number maximum limitation of system, can automatically exit from when creating failure.By the above method, the automatic maximization test for carrying out CIFS is realized, only a large amount of testing time and energy need to be saved in storage end Run Script file, improve testing efficiency.

Description

A kind of CIFS shares maximized automatic test approach
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)

1. a kind of CIFS shares maximized automatic test approach, which comprises the steps of:
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.
2. CIFS according to claim 1 shares maximized automatic test approach, which is characterized in that step 1 tool Body are as follows:
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.
3. CIFS according to claim 1 shares maximized automatic test approach, which is characterized in that the step 2 is also It include: setting third delay time.
4. CIFS according to claim 1 shares maximized automatic test approach, which is characterized in that step 3 tool Body are as follows: port ip is configured to two storage controls in NAS cluster.
5. CIFS according to claim 1 shares maximized automatic test approach, which is characterized in that step 7 tool Body are as follows:
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 75;
If not, unsuccessfully prompt to journal file and exits test for output;
Step 75: testing time is counted.
6. CIFS according to claim 2 shares maximized automatic test approach, it is characterised in that: first delay Time and the second delay time are set as 600 seconds.
7. CIFS according to claim 4 shares maximized automatic test approach, it is characterised in that: the third delay Time is set as 200 seconds.
8. CIFS according to claim 5 shares maximized automatic test approach, which is characterized in that the step 73 is also It include: to set for the 4th delay time as 10 seconds.
CN201810829572.9A 2018-07-25 2018-07-25 Automatic testing method for CIFS (common information file system) sharing maximization Active CN109104330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810829572.9A CN109104330B (en) 2018-07-25 2018-07-25 Automatic testing method for CIFS (common information file system) sharing maximization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810829572.9A CN109104330B (en) 2018-07-25 2018-07-25 Automatic testing method for CIFS (common information file system) sharing maximization

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 Automatic testing method for CIFS (common information file system) sharing maximization

Country Status (1)

Country Link
CN (1) CN109104330B (en)

Citations (10)

* Cited by examiner, † Cited by third party
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
刘金柱: "NAS网络存储技术研究", 《中国优秀硕士学位论文全文数据库》 *

Also Published As

Publication number Publication date
CN109104330B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN104579853A (en) Method for network testing of server cluster system
CN104503841A (en) Process clearing method and process clearing device
CN104461742A (en) Method and device for optimizing computing equipment
FR2987964A1 (en) METHOD FOR PRESELECTING A ROUTER IN A RPL NETWORK
CN106789381A (en) It is a kind of for cloud computing management platform simplified deployment and the method for rapid configuration
CN104009887A (en) Automatic speed testing method applied to network resource optimization
CN109325068B (en) Data exchange method and device
CN111177193A (en) Flink-based log streaming processing method and system
CN107402795A (en) A kind of firmware upgrade method and system
CN108429743A (en) A kind of security policy configuration method, system, domain control server and firewall box
CN106101412A (en) The information session processing method of mobile communication terminal and mobile communication terminal
CN107483238A (en) A kind of blog management method, cluster management node and system
EP1849257B1 (en) Method and equipment for controlling access to multicast ip flows
CN102404133B (en) Method and device for internet protocol (IP) network data interaction
CN107633102A (en) A kind of method, apparatus, system and equipment for reading metadata
CN105306385A (en) Method and device for controlling downlink network bandwidth
CN107329738A (en) Component update method and device
CN109104330A (en) A kind of CIFS shares maximized automatic test approach
CN113923200A (en) Method and device for realizing massive API gateway service
CN104270371A (en) CDN cache server selecting method based on fuzzy logic
CN107506292A (en) The automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage
CN110493355A (en) A kind of method for down loading and device of system log
CN105227345A (en) A kind of time-out time method to set up of connection and device
CN110032472A (en) A kind of method for restarting and device of application program
CN109257186A (en) A kind of method and system making server automatically from PXE network startup

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