Movatterモバイル変換


[0]ホーム

URL:


CN109104330B - An Automatic Test Method for Maximizing CIFS Shares - Google Patents

An Automatic Test Method for Maximizing CIFS Shares
Download PDF

Info

Publication number
CN109104330B
CN109104330BCN201810829572.9ACN201810829572ACN109104330BCN 109104330 BCN109104330 BCN 109104330BCN 201810829572 ACN201810829572 ACN 201810829572ACN 109104330 BCN109104330 BCN 109104330B
Authority
CN
China
Prior art keywords
cifs
sharing
delay time
test
creating
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.)
Active
Application number
CN201810829572.9A
Other languages
Chinese (zh)
Other versions
CN109104330A (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 LtdfiledCriticalZhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810829572.9ApriorityCriticalpatent/CN109104330B/en
Publication of CN109104330ApublicationCriticalpatent/CN109104330A/en
Application grantedgrantedCritical
Publication of CN109104330BpublicationCriticalpatent/CN109104330B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提出的一种CIFS共享最大化的自动测试方法,通过执行脚本,无限循环创建文件系统,创建目录,创建cifs共享,除非达到系统的创建次数最大限制,创建失败时会自动退出。通过上述方法,实现了自动进行CIFS的最大化测试,只需在存储端运行脚本文件即可,节省了大量的测试时间和精力,提高了测试效率。

Figure 201810829572

The invention proposes an automatic testing method for maximizing CIFS sharing. By executing a script, the file system is created in an infinite loop, a directory is created, and a cifs share is 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 automatic maximum test of CIFS is realized, and the script file only needs to be run on the storage side, which saves a lot of test time and energy and improves the test efficiency.

Figure 201810829572

Description

Automatic testing method for CIFS (common information file system) sharing maximization
Technical Field
The invention relates to the technical field of storage system testing, in particular to an automatic testing method for CIFS (common information file system) sharing maximization.
Background
The wave information AS18000G2 storage product adds NAS (network Attached storage) function on the basis of unified storage, realizes function addition and optimization of a platform module, supplements a company storage product line, and enriches diversification of company product scheme combination. The CIFS (common Internet File System) is a component of the NAS and can provide stable, high-performance, high-reliability and high-availability File services for the NAS.
In the CIFS test, the maximum number of CIFS shares that the NAS system can support is always a relatively important test, which can intuitively reflect the maximum support amount of the NAS, and when the maximum limit test is performed, an NAS cluster, as many file systems and CIFS directories and shares as possible need to be created at the storage side, which consumes more time and effort and is not beneficial to rapid test, so a method for automatically performing the maximum CIFS test is needed.
Currently, in a CIFS sharing maximization test in NAS, if the CIFS sharing maximization test is performed manually, the CIFS sharing is performed on a GUI interface or a background of a storage, where a file system needs to be created first, a shared directory is created, and then sharing is performed by a user, the whole process takes about 3 minutes, and the supported shared data reaches 3000, which requires a large amount of labor.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide an automatic testing method for CIFS sharing maximization.
In order to achieve the purpose, the invention is realized by the following technical scheme: an automatic testing method for CIFS sharing maximization comprises the following steps:
step 1: clearing the original NAS cluster;
step 2: creating a new NAS cluster;
and step 3: configuring a port ip for two nodes in the NAS cluster;
and 4, step 4: adding an AD domain;
and 5: creating a log file;
step 6: creating a storage pool;
and 7: creating a file system, a directory and a cifs share, and counting;
and 8: judging whether the count value reaches the maximum limit of the system; if so, exiting the test: if not, go to step 7.
Further, the step 1 specifically comprises:
step 11: clearing the original NAS node;
step 12: setting a first delay time;
step 13: clearing the original NAS cluster;
step 14: a second delay time is set.
Further, the step 2 further comprises: a third delay time is set.
Further, the step 3 specifically comprises: ports ip are configured for two storage controllers in the NAS cluster.
Further, the step 7 specifically includes:
step 71: creating a file system;
step 72: judging whether the file system is successfully established; if yes, outputting a success prompt and turning to step 73; if not, outputting a failure prompt to the log file and quitting the test;
step 73: creating a directory and a CIFS share for the file system;
step 74: judging whether CIFS sharing is successfully established; if yes, outputting a success prompt and turning to the step 8;
if not, outputting a failure prompt to the log file and quitting the test.
Further, the first delay time and the second delay time are both set to 600 seconds.
Further, the third delay time is set to 200 seconds.
Further, the step 73 further includes: the fourth delay time is set to 10 seconds.
Compared with the prior art, the invention has the beneficial effects that: the invention provides an automatic testing method for CIFS (common information platform) sharing maximization, which is characterized in that a file system is created in an infinite loop mode, a directory is created, and a cifS sharing is created by executing a script, and the automatic testing method can automatically quit when the creation is failed unless the maximum limit of the creation times of the system is reached. By the method, the automatic maximum test of the CIFS is realized, and only the script file needs to be run at the storage end, so that a large amount of test time and energy are saved, and the test efficiency is improved.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
FIG. 1 is a flow chart of a method according to a first embodiment of the present invention.
FIG. 2 is a flow chart of a method according to a second embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings.
The first embodiment is as follows:
the automatic testing method for the CIFS sharing maximization shown in FIG. 1 comprises the following steps:
step 1: the original NAS cluster is cleared.
Step 2: a new NAS cluster is created.
And step 3: and configuring a port ip for two nodes in the NAS cluster.
And 4, step 4: AD fields are added.
And 5: a log file is created.
Step 6: a storage pool is created.
And 7: file system, directory and cifs shares are created and counted.
And 8: judging whether the count value reaches the maximum limit of the system; if so, exiting the test: if not, go to step 7.
According to the automatic testing method for the CIFS sharing maximization, the file system is created in an infinite loop mode, the directory is created, the cifS sharing is created through executing the script, and the automatic exit can be realized when the creation is failed unless the maximum limit of the creation times of the system is reached.
Example two:
fig. 2 shows an automatic testing method for CIFS sharing maximization, which includes the following steps:
step 1: the original NAS node is cleared.
Step 2: the first delay time is set to 600 seconds.
And step 3: the original NAS cluster is cleared.
And 4, step 4: the second delay time is set to 600 seconds.
And 5: a new NAS cluster is created.
Step 6: the third delay time is set to 200 seconds.
And 7: ports ip are configured for two storage controllers in the NAS cluster.
And 8: AD fields are added.
And step 9: a log file is created.
Step 10: a storage pool is created.
Step 11: a file system is created.
Step 12: judging whether the file system is successfully established; if so, a success prompt is output and the process goes to step 13. If not, outputting a failure prompt to the log file and quitting the test.
Step 13: directories and CIFS shares are created for the file system.
Step 14: the fourth delay time is set to 10 seconds.
Step 15: judging whether CIFS sharing is successfully established; if yes, outputting a success prompt and turning to step 16;
if not, outputting a failure prompt to the log file and quitting the test.
Step 16: the number of tests was counted.
And step 17: judging whether the count value reaches the maximum limit of the system; if so, exiting the test: if not, go to step 11.
On the basis, the specific test.sh script content is as follows:
# script name: max _ cifs
Test content # test: reestablishing nas cluster, creating file system, creating directory under file system, and sharing cifs under directory #
# clean original nas Cluster
replacenas
sleep 600
restorenas
Sleep 600
# Create NAS Cluster
mknascluster
sleep 200
# pairs of two nodes in a cluster configure ports ip
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
# Add AD Domain
Joidad –user asministrator –passwd 123456a? –domain NASAD.COM –ip 100.7.40.23 –group NASAD –dns 100.7.40.22 –computername palm
# Create Log File
date1=$(date+%y%m%d)
touch mkfile.$date1
touch mkshare.$date1
# Create storage pool
mtop mkmdiskgrp -easytier auto -encrypt no -ext 1024 -guiid 0 -name Pool0 -warning 80%
# create File System, create directory, create cifs share, at this point: an infinite loop is set, and the system is always created unless the maximum limit is reached and the system is automatically exited when the creation fails
count=1
while true;do
echo"begin"
# Create File System
addfs –name file${count} –pool Pool0 –size 102400 –node node1
if[$?-eq 0]
then
# if the File System creation was successful, output a related success prompt
echo-e"---create file${count}successfully---"
else
# if the File System failed to create, output a failure prompt to the Log File, and exit the Loop
echo-e"---failed to create file${count}---">>mkfile.$date1
break
fi
Creating a directory for a 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
# if the sharing creation is successful, output the associated success prompt
echo-e"---create share${count}successfully---"
else
# if the sharing creation failed, output a failure prompt to the log file, and exit the loop
echo-e"---failed to create file${count}---">>mkshare.$date1
break
fi
echo$count"test success......"
count=$((count+1))
done
During operation, the cluster can be automatically reset, a file system, a directory and sharing are established only by executing the-/test.sh at the storage end, and the maximum test of cifs sharing is simply and conveniently carried out.
According to the automatic testing method for the CIFS sharing maximization, a file system is created infinitely and circularly through executing a test. By the method, the CIFS can be automatically tested to the maximum extent, and the operation of the-/test.sh script file at the storage end is only needed, so that a large amount of testing time and energy are saved, and the testing efficiency is improved.
The invention is further described with reference to the accompanying drawings and specific embodiments. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the present application.

Claims (7)

1. An automatic testing method for CIFS (common information platform) sharing maximization is characterized by comprising the following steps:
step 1: clearing the original NAS cluster;
step 2: creating a new NAS cluster;
and step 3: configuring a port ip for two nodes in the NAS cluster;
and 4, step 4: adding an AD domain;
and 5: creating a log file;
step 6: creating a storage pool;
and 7: creating a file system, a directory and a cifs share, and counting;
and 8: judging whether the count value reaches the maximum limit of the system; if so, exiting the test: if not, go to step 7;
the step 7 specifically comprises the following steps:
step 71: creating a file system;
step 72: judging whether the file system is successfully established; if yes, outputting a success prompt and turning to step 73; if not, outputting a failure prompt to the log file and quitting the test;
step 73: creating a directory and a CIFS share for the file system;
step 74: judging whether CIFS sharing is successfully established; if so, outputting a success prompt and proceeding to step 75;
if not, outputting a failure prompt to the log file and quitting the test;
step 75: the number of tests was counted.
2. The automatic testing method for the CIFS sharing maximization according to claim 1, wherein the step 1 specifically comprises:
step 11: clearing the original NAS node;
step 12: setting a first delay time;
step 13: clearing the original NAS cluster;
step 14: a second delay time is set.
3. The automatic testing method for the CIFS sharing maximization according to claim 1, wherein the step 2 further comprises: a third delay time is set.
4. The automatic testing method for the CIFS sharing maximization according to claim 1, wherein the step 3 specifically comprises: ports ip are configured for two storage controllers in the NAS cluster.
5. The automatic testing method for the CIFS sharing maximization according to claim 2, characterized in that: the first delay time and the second delay time are both set to 600 seconds.
6. The automatic testing method for CIFS sharing maximization according to claim 3, characterized in that: the third delay time is set to 200 seconds.
7. The method for automatically testing the CIFS sharing maximization according to claim 1, wherein the step 73 further comprises: the fourth delay time is set to 10 seconds.
CN201810829572.9A2018-07-252018-07-25 An Automatic Test Method for Maximizing CIFS SharesActiveCN109104330B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810829572.9ACN109104330B (en)2018-07-252018-07-25 An Automatic Test Method for Maximizing CIFS Shares

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810829572.9ACN109104330B (en)2018-07-252018-07-25 An Automatic Test Method for Maximizing CIFS Shares

Publications (2)

Publication NumberPublication Date
CN109104330A CN109104330A (en)2018-12-28
CN109104330Btrue CN109104330B (en)2021-10-22

Family

ID=64847502

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810829572.9AActiveCN109104330B (en)2018-07-252018-07-25 An Automatic Test Method for Maximizing CIFS Shares

Country Status (1)

CountryLink
CN (1)CN109104330B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101699825A (en)*2009-10-282010-04-28成都市华为赛门铁克科技有限公司Network file system access method, device and system
US7849167B2 (en)*2008-04-152010-12-07International Business Machines CorporationDynamic distributed adjustment of maximum use of a shared storage resource
CN102541994A (en)*2011-11-182012-07-04浪潮电子信息产业股份有限公司Method for deploying and sharing NFS (network file system) automatically and quickly
US8719635B2 (en)*2012-01-062014-05-06International Business Machines CorporationCost effective use of simulated storage in a storage subsystem test environment
US9678983B1 (en)*2012-10-192017-06-13Oracle International CorporationSystems and methods for automatically passing hints to a file system
CN107329805A (en)*2017-07-132017-11-07郑州云海信息技术有限公司The implementation method and device of a kind of virtual platform high availability
CN107968727A (en)*2017-11-292018-04-27郑州云海信息技术有限公司A kind of detection method, device and the medium of CIFS services

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101256560A (en)*2007-02-262008-09-03中国航空工业第二集团公司科学技术委员会Method for construction of distributing storage data file sharing system based on gridding
CN104639660A (en)*2015-03-132015-05-20浪潮集团有限公司Method for optimizing NFS (network file system) sharing performance in NAS (network-attached storage) system
US11550558B2 (en)*2016-02-122023-01-10Nutanix, Inc.Virtualized file server deployment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7849167B2 (en)*2008-04-152010-12-07International Business Machines CorporationDynamic distributed adjustment of maximum use of a shared storage resource
CN101699825A (en)*2009-10-282010-04-28成都市华为赛门铁克科技有限公司Network file system access method, device and system
CN102541994A (en)*2011-11-182012-07-04浪潮电子信息产业股份有限公司Method for deploying and sharing NFS (network file system) automatically and quickly
US8719635B2 (en)*2012-01-062014-05-06International Business Machines CorporationCost effective use of simulated storage in a storage subsystem test environment
US9678983B1 (en)*2012-10-192017-06-13Oracle International CorporationSystems and methods for automatically passing hints to a file system
CN107329805A (en)*2017-07-132017-11-07郑州云海信息技术有限公司The implementation method and device of a kind of virtual platform high availability
CN107968727A (en)*2017-11-292018-04-27郑州云海信息技术有限公司A kind of detection method, device and the medium of CIFS services

Also Published As

Publication numberPublication date
CN109104330A (en)2018-12-28

Similar Documents

PublicationPublication DateTitle
WO2021108452A2 (en)Systems and methods for enabling a highly available managed failover service
WO2021164261A1 (en)Method for testing cloud network device, and storage medium and computer device
CN105681426B (en)Heterogeneous system
CN103577209A (en)Embedded equipment-based application program remote on-line debugging method and device
CN101159645A (en) Design method and network architecture of mutual server for P2P application
CN101610275B (en) Supporting large-scale distributed P2P simulation system and its implementation method and device
WO2014180245A1 (en)Cloud terminal upgrade processing method and device therefor
CN109002354B (en)OpenStack-based computing resource capacity elastic expansion method and system
CN118055052A (en)Dynamic host configuration protocol test method, electronic device and computer readable medium
CN109104330B (en) An Automatic Test Method for Maximizing CIFS Shares
CN108683567A (en) A switch port fault testing method and system based on MCS and server
CN114448841B (en) A network card testing method, device, equipment and medium
WO2025118967A1 (en)Big data access method based on protocol adaptation and scheduling in seismological industry
CN113504950A (en)Real-time data loading method and system based on Flume
WO2021051936A1 (en)Method and device for constructing software-defined networking (sdn) network
CN109005068A (en)A kind of configuration method of cluster virtual machine qos
CN100531062C (en)A deployment method for wide-area collaboration work system
CN116401105A (en)Hardware configuration verification method and verification system
CN112436982B (en) A network traffic automatic mixed running test method, system, terminal and storage medium
CN115481003A (en)Pressure testing method and system
CN114840275A (en)Interface management method, system, computer device and storage medium
Spillner et al.RAFT-REST-A client-side framework for reliable, adaptive and fault-tolerant restful service consumption
CN110324425B (en)Hybrid cloud transaction route processing method and device
CN208316770U (en)A kind of privately owned cloud system applied to simple scenario
Brahneborg et al.GeoRep—Resilient Storage for Wide Area Networks

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp