[go: up one dir, main page]

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
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
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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • 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

本发明提出的一种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

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.一种CIFS共享最大化的自动测试方法,其特征在于,包括如下步骤:1. a kind of automatic test method that CIFS share maximizes, it is characterized in that, comprises the steps: 步骤1:清除原来的NAS集群;Step 1: Clear the original NAS cluster; 步骤2:创建新的NAS集群;Step 2: Create a new NAS cluster; 步骤3:对NAS集群中的两个节点配置端口ip;Step 3: Configure port ip for the two nodes in the NAS cluster; 步骤4:添加AD域;Step 4: Add AD domain; 步骤5:创建日志文件;Step 5: Create a log file; 步骤6:创建存储池;Step 6: Create a storage pool; 步骤7:创建文件系统、目录和cifs共享,并进行计数;Step 7: Create file systems, directories and cifs shares and count them; 步骤8:判断计数值是否达到系统的最大限制;如果是,退出测试:如果否,转到步骤7。Step 8: Determine whether the count value has reached the maximum limit of the system; if yes, exit the test; if no, go to step 7. 2.根据权利要求1所述的CIFS共享最大化的自动测试方法,其特征在于,所述步骤1具体为:2. the automatic testing method of CIFS sharing maximization according to claim 1, is characterized in that, described step 1 is specifically: 步骤11:清除原来的NAS节点;Step 11: Clear the original NAS node; 步骤12:设定第一延迟时间;Step 12: setting the first delay time; 步骤13:清除原来的NAS集群;Step 13: Clear the original NAS cluster; 步骤14:设定第二延迟时间。Step 14: Set the second delay time. 3.根据权利要求1所述的CIFS共享最大化的自动测试方法,其特征在于,所述步骤2还包括:设定第三延迟时间。3. The automatic testing method for CIFS share maximization according to claim 1, characterized in that, said step 2 further comprises: setting a third delay time. 4.根据权利要求1所述的CIFS共享最大化的自动测试方法,其特征在于,所述步骤3具体为:对NAS集群中的两个存储控制器配置端口ip。4. The automatic test method for maximizing CIFS sharing according to claim 1, wherein said step 3 is specifically: configuring port ips for two storage controllers in the NAS cluster. 5.根据权利要求1所述的CIFS共享最大化的自动测试方法,其特征在于,所述步骤7具体为:5. the automatic testing method of CIFS sharing maximization according to claim 1, is characterized in that, described step 7 is specifically: 步骤71:创建文件系统;Step 71: Create a file system; 步骤72:判断文件系统是否创建成功;如果是,输出成功提示并转到步骤73;如果否,输出失败提示到日志文件并退出测试;Step 72: Determine whether the file system is created successfully; if yes, output a success prompt and go to step 73; if not, output a failure prompt to the log file and exit the test; 步骤73:为文件系统创建目录及CIFS共享;Step 73: Create a directory and a CIFS share for the file system; 步骤74:判断CIFS共享是否创建成功;如果是,输出成功提示并转到步骤75;Step 74: Determine whether the CIFS share is created successfully; if yes, output a successful prompt and go to step 75; 如果否,输出失败提示到日志文件并退出测试;If not, output a failure prompt to the log file and exit the test; 步骤75:对测试次数进行计数。Step 75: Count the number of tests. 6.根据权利要求2所述的CIFS共享最大化的自动测试方法,其特征在于:所述第一延迟时间和第二延迟时间均设为600秒。6. The automatic testing method for maximizing CIFS sharing according to claim 2, characterized in that: both the first delay time and the second delay time are set to 600 seconds. 7.根据权利要求4所述的CIFS共享最大化的自动测试方法,其特征在于:所述第三延迟时间设为200秒。7. The automatic testing method for maximizing CIFS sharing according to claim 4, characterized in that: the third delay time is set to 200 seconds. 8.根据权利要求5所述的CIFS共享最大化的自动测试方法,其特征在于,所述步骤73还包括:设定第四延迟时间为10秒。8. The automatic testing method for maximizing CIFS sharing according to claim 5, wherein the step 73 further comprises: setting the fourth delay time to 10 seconds.
CN201810829572.9A 2018-07-25 2018-07-25 An Automatic Test Method for Maximizing CIFS Shares Active CN109104330B (en)

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)

* 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
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