CN108897656A - A kind of method and system of automatic test NAS store function - Google Patents

A kind of method and system of automatic test NAS store function Download PDF

Info

Publication number
CN108897656A
CN108897656A CN201810538514.0A CN201810538514A CN108897656A CN 108897656 A CN108897656 A CN 108897656A CN 201810538514 A CN201810538514 A CN 201810538514A CN 108897656 A CN108897656 A CN 108897656A
Authority
CN
China
Prior art keywords
nas
file system
script
server
store function
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.)
Pending
Application number
CN201810538514.0A
Other languages
Chinese (zh)
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 CN201810538514.0A priority Critical patent/CN108897656A/en
Publication of CN108897656A publication Critical patent/CN108897656A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Abstract

This application discloses a kind of method and system of automatic test NAS store function, this method initially sets up server using script and stores the long-range connection between equipment, then NAS file system is created by the mode outside remote band, finally according to the quantity of the NAS file system created, the maximum specification of storage the supported NAS file system of equipment is determined.The application realizes the automatic test that NAS function is carried out with outer remote storage device by script, the creation efficiency of NAS file system can be greatly improved, and the creation of file system is carried out using the method for automation, be conducive to the accuracy for improving the creation of NAS file system.Especially when creating thousands of NAS file system, method and system in the application, compared with the existing technology in mechanical creation mode, the creation efficiency and accuracy of NAS file system can be greatly improved.

Description

A kind of method and system of automatic test NAS store function
Technical field
This application involves server automated the field of test technology, store function more particularly to a kind of automatic test NAS The method and system of energy.
Background technique
With the continuous development of computer technology, the requirement of Informatization Service and cloud computing service to server is increasingly The development cycle of height, new product is also shorter and shorter, therefore, studies the test method of server, and improving testing efficiency is a compel The problem of eyebrows and eyelashes.
(Network Attached Storage, network attached storage, also known as network memory are a kind of dedicated numbers to NAS According to storage server) store function be store equipment a critical function, have the text in the storage equipment of NAS store function Part system, also known as NAS file system.The NAS file system is equivalent to the file explorer under Windows, and user can be with The storing data in the file system for having NAS store function.The NAS store function of storage equipment is tested, is to examine One important process of storage device performance.
At present for the test method of NAS store function, usually:The Create button, hand are operated on gui interface first Dynamic creation NAS file system tests the NAS file system that can be created then according to the quantity of the file system of manual creation Maximum number, thus complete storage equipment NAS store function test.
However, at present in the test method of NAS store function, due to creating NAS file using manually mechanical means System, it is more convenient in the less file system of creation number, when creating thousands of NAS file system, pass through interface Create that this mode is comparatively laborious, the creation efficiency of file system is too low, therefore testing efficiency is low.
Summary of the invention
This application provides a kind of method and system of automatic test NAS store function, to solve NAS in the prior art File system creates low efficiency, so as to cause the low problem of testing efficiency.
In order to solve the above-mentioned technical problem, the embodiment of the present application discloses following technical solution:
A kind of method of automatic test NAS store function, for testing the NAS store function of storage equipment, the side Method includes:
It establishes server and stores the long-range connection between equipment;
NAS file system is created by the mode outside remote band;
According to the quantity of the NAS file system created, the maximum rule of storage the supported NAS file system of equipment are determined Lattice.
Optionally, described to establish server and store the method remotely connected between equipment, including:
Link order based on the received, loads the first script in the server, first script be server and Storage equipment remotely connects script;
First script is run, server is established and stores the long-range connection between equipment.
Optionally, the method that the mode by outside remote band creates NAS file system, including:
Document creation instructs based on the received, loads the second script in the server, and second script is NAS text Part system creation script;
Second script is run, by the mode outside remote band, obtains N number of NAS file system in storage equipment.
Optionally, after creating NAS file system by the mode outside remote band, the method also includes:
Instruction is checked based on the received, is logged in the GUI of storage equipment, is checked whether NAS file system creates success.
Optionally, before establishing server and storing the long-range connection between equipment, the method also includes:
Test environment is built, the test environment includes:The storage of one Linux server and support NAS store function is set It is standby, wherein the capacity in pond is greater than the appearance for the maximum specification NAS file system that the storage equipment is supported in the storage equipment The sum of amount.
A kind of system of automatic test NAS store function, the system comprises:
Long-range link block, for establishing server and storing the long-range connection between equipment;
NAS file system creation module, for creating NAS file system by the mode outside remote band;
Equipment maximum specification determining module is stored, for the quantity according to the NAS file system created, determines that storage is set The maximum specification of standby supported NAS file system.
Optionally, the system also includes test script loading modules, are taking for link order based on the received The first script is loaded in business device, and, document creation instruction based on the received loads the second script in the server.
Optionally, the system also includes module is checked, for checking instruction based on the received, storage equipment is logged in GUI, check whether NAS file system creates success.
Optionally, the system also includes test environmental structure modules, for building test environment, the test environment packet It includes:One Linux server and the storage equipment for supporting NAS store function, wherein the capacity in pond is greater than institute in the storage equipment State the sum of the capacity for the maximum specification NAS file system that storage equipment is supported.
The technical solution that embodiments herein provides can include the following benefits:
The application provides a kind of method and system of automatic test NAS store function, for testing the NAS of storage equipment Store function.This method uses script, initially sets up server and stores the long-range connection between equipment, then, by long-range Mode outside band creates NAS file system, finally according to the quantity of the NAS file system created, determines that storage equipment is propped up Hold the maximum specification of NAS file system.The application realizes the automation that NAS function is carried out with outer remote storage device by script Test can greatly improve the creation efficiency of NAS file system, and the wound of file system is carried out using the method for automation It builds, is conducive to the accuracy for improving the creation of NAS file system.Especially when creating thousands of NAS file system, the application In method and system, compared with the existing technology in mechanical creation mode, can greatly improve NAS file system creation effect Rate and accuracy.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the method for automatic test NAS store function provided by the embodiment of the present application;
Fig. 2 is a kind of structural schematic diagram of the system of automatic test NAS store function provided by the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without making creative work Range.
Storage system generally includes four layers:First layer is the storage equipment in physical hard disk, that is, the application, the second layer For the combination Mdisk of many physical hard disks, Mdisk be also known as raid (Redundant Array of Independent Disks, Raid-array), third layer is pond, and pond is again composed multiple Mdisk for a bigger logic container, the 4th Layer is volume, and it is the space distributed from pond that volume, which is user oriented storage cell,.
The application in order to better understand explains in detail presently filed embodiment with reference to the accompanying drawing.
Referring to Fig. 1, Fig. 1 is a kind of stream of the method for automatic test NAS store function provided by the embodiment of the present application Journey schematic diagram.As shown in Figure 1, the method in the application mainly comprises the following processes:
S1:It establishes server and stores the long-range connection between equipment.
Specifically, step S1 includes:
S11:Link order based on the received loads the first script in the server, wherein the first script is service Device and storage equipment remotely connect script.
S12:The first script is run, server is established and stores the long-range connection between equipment.
The present embodiment realizes server by the first script and stores the long-range connection between equipment, and the first script can be adopted With using python language.Specifically, the content of the first script yclj.py is as follows:
After establishing server and storing the long-range connection between equipment, step S2 is executed:Pass through the mode outside remote band Create NAS file system.
Specifically, step S2 is comprised the following processes:
S21:Document creation instructs based on the received, loads the second script in the server, wherein the second script is NAS file system creates script.
S22:The second script is run, by the mode outside remote band, obtains N number of NAS file system in storage equipment.
Specifically, by taking the maximum data of the NAS file system of creation is 10000 as an example, the second script add_fs.sh's is interior Hold as follows:
According to the difference of storage equipment in the present embodiment, the NAS file system number supported is different, in actual use only Need to change the i value in script.
After creating NAS file system, step S3 is executed:According to the quantity of the NAS file system created, storage is determined The maximum specification of the supported NAS file system of equipment.
Further, in this embodiment can also include following method after step S2 before step S3:According to being connect What is received checks instruction, logs in the GUI of storage equipment, checks whether NAS file system creates success.
After only NAS file system creates successfully, using the quantity of the NAS file system currently created as foundation, execute Step S3, so that it is determined that the maximum specification of storage the supported NAS file system of equipment.
Further, in this embodiment further including building test environment before step S1.Wherein, test environment includes:One Linux server and the storage equipment for supporting NAS store function, the capacity for storing pond in equipment are greater than what storage equipment was supported The sum of the capacity of maximum specification NAS file system.
Specifically, Linux server and storage equipment are arranged in the same network segment, may be implemented to service by linux Device access storage equipment.Storage equipment needs to meet:It stores the storage system in equipment and supports NAS function, and store in equipment The capacity in pond is greater than the sum of the capacity for the maximum specification NAS file system that storage equipment is supported.Such as:One NAS file system System minimum can support 100M, and the storage system in the storage equipment supports at most 10000 NAS file system of creation, then needing The disk space size wanted is 976.6G, and therefore, the disk of storage equipment carry is greater than 976.6G.Due to NAS file system The space of distribution is not directly acquired from disk not instead of directly, is distributed from the pond that storage system is created, thus need by The disk creation of carry on a storage device could be that storage equipment uses, and space size can be used in Mdisk at Mdisk Greater than 976.6G.
Below by an example, detailed description is using the method for automatic test NAS store function in the present embodiment Process:
A. Linux server and storage equipment are arranged in the same network segment first, build test environment;
B. server is remotely then connect script yclj.py and NAS file system creation script with storage equipment Add_fs.sh is put into Linux server under the same catalogue;
C. sh add_fs.sh is executed, operation creation file-system command is called by Run Script sh add_fs.sh Server remotely connect script yclj.py with storage equipment;
D. after two script executions, the GUI of storage system equipment is logged in, checks whether NAS file system creates into Function;
E. if the success of NAS document creation, according to the quantity of the NAS file system created, determine that storage equipment is propped up Hold the maximum specification of NAS file system;
F. if NAS file does not create success, two scripts are reloaded.
In conclusion by building a remote server, the script for creating multiple NAS file system is placed on by the application On the server, remote operation supports the storage system of NAS function, so that n file system is created by script automationization, When n, which is equal to NAS file system number, to be maximized, that is, realize the automatic test of NAS file system number maximum specification.
Embodiment two
On the basis of embodiment shown in Fig. 1 referring to fig. 2, Fig. 2 is a kind of automation provided by the embodiment of the present application Test the structural schematic diagram of the system of NAS store function.As shown in Figure 2, which includes:Long-range link block, NAS file system Creation module of uniting and storage equipment maximum specification determining module.Wherein, long-range link block is used to establish server and storage is set Long-range connection between standby;NAS file system creation module is used to create NAS file system by the mode outside remote band;It deposits Equipment maximum specification determining module is stored up, for the quantity according to the NAS file system created, determines that storage equipment is supported The maximum specification of NAS file system.
Further, in this embodiment system further include test script loading module, test script loading module is used for Link order loads the first script in the server based on the received, and, document creation instructs based on the received The second script is loaded in the server.
Further, in this embodiment system further include checking module, for checking instruction based on the received, step on The GUI of address book stored equipment, checks whether NAS file system creates success.
Further, in this embodiment system further include test environmental structure module, for building test environment.Its In, test environment includes:One Linux server and the storage equipment for supporting NAS store function, the capacity for storing pond in equipment are big In the sum of the capacity for the maximum specification NAS file system that the storage equipment is supported.
The working principle and working method of the system of automatic test NAS store function, shown in Fig. 1 in the present embodiment It has been elaborated in embodiment one, the part which is not described in detail, has been referred to embodiment one shown in FIG. 1, two Between a embodiment can mutual reference, details are not described herein.
The above is only the specific embodiment of the application, is made skilled artisans appreciate that or realizing this Shen Please.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (9)

1. a kind of method of automatic test NAS store function, for testing the NAS store function of storage equipment, feature exists In, the method includes:
It establishes server and stores the long-range connection between equipment;
NAS file system is created by the mode outside remote band;
According to the quantity of the NAS file system created, the maximum specification of storage the supported NAS file system of equipment is determined.
2. a kind of method of automatic test NAS store function according to claim 1, which is characterized in that the foundation The method remotely connected between server and storage equipment, including:
Link order based on the received, loads the first script in the server, and first script is server and storage Equipment remotely connects script;
First script is run, server is established and stores the long-range connection between equipment.
3. a kind of method of automatic test NAS store function according to claim 1, which is characterized in that described to pass through The method that mode outside remote band creates NAS file system, including:
Document creation instructs based on the received, loads the second script in the server, and second script is NAS file system System creation script;
Second script is run, by the mode outside remote band, obtains N number of NAS file system in storage equipment.
4. a kind of method of automatic test NAS store function according to claim 1, which is characterized in that by long-range After mode outside band creates NAS file system, the method also includes:
Instruction is checked based on the received, is logged in the GUI of storage equipment, is checked whether NAS file system creates success.
5. a kind of method of automatic test NAS store function according to any one of claims 1-4, which is characterized in that Before establishing server and storing the long-range connection between equipment, the method also includes:
Test environment is built, the test environment includes:One Linux server and the storage equipment for supporting NAS store function, In, in the storage equipment capacity in pond be greater than the capacity of maximum specification NAS file system that the storage equipment is supported it With.
6. a kind of system of automatic test NAS store function, which is characterized in that the system comprises:
Long-range link block, for establishing server and storing the long-range connection between equipment;
NAS file system creation module, for creating NAS file system by the mode outside remote band;
Equipment maximum specification determining module is stored, for the quantity according to the NAS file system created, determines storage equipment institute Support the maximum specification of NAS file system.
7. a kind of system of automatic test NAS store function according to claim 6, which is characterized in that the system Further include test script loading module, loads the first script in the server for link order based on the received, and, Document creation instruction based on the received loads the second script in the server.
8. a kind of system of automatic test NAS store function according to claim 6, which is characterized in that the system Further include checking module, for checking instruction based on the received, logs in the GUI of storage equipment, check that NAS file system is It is no to create successfully.
9. according to a kind of system of automatic test NAS store function any in claim 6-8, which is characterized in that The system also includes test environmental structure modules, and for building test environment, the test environment includes:One Linux service Device and the storage equipment for supporting NAS store function, wherein the capacity in pond is greater than the storage equipment and is propped up in the storage equipment The sum of the capacity for the maximum specification NAS file system held.
CN201810538514.0A 2018-05-30 2018-05-30 A kind of method and system of automatic test NAS store function Pending CN108897656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810538514.0A CN108897656A (en) 2018-05-30 2018-05-30 A kind of method and system of automatic test NAS store function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810538514.0A CN108897656A (en) 2018-05-30 2018-05-30 A kind of method and system of automatic test NAS store function

Publications (1)

Publication Number Publication Date
CN108897656A true CN108897656A (en) 2018-11-27

Family

ID=64343440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810538514.0A Pending CN108897656A (en) 2018-05-30 2018-05-30 A kind of method and system of automatic test NAS store function

Country Status (1)

Country Link
CN (1) CN108897656A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874622A (en) * 2018-05-30 2018-11-23 郑州云海信息技术有限公司 A kind of NFS automatic performance test method
CN112000634A (en) * 2020-07-28 2020-11-27 中国建设银行股份有限公司 Capacity management method, system, equipment and storage medium of NAS storage file system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567203A (en) * 2011-12-28 2012-07-11 创新科软件技术(深圳)有限公司 Method and system for testing performance of distributed file system (DFS)
CN105373477A (en) * 2015-11-25 2016-03-02 普华基础软件股份有限公司 Volume test method
CN105446846A (en) * 2015-11-30 2016-03-30 中电科华云信息技术有限公司 Cloud desktop based performance test method
CN105653435A (en) * 2015-12-28 2016-06-08 曙光信息产业(北京)有限公司 Performance test method of NFS and performance test device of NFS
US9558046B2 (en) * 2012-09-28 2017-01-31 Hitachi, Ltd. Computer system and program for prior verification of a workflow program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567203A (en) * 2011-12-28 2012-07-11 创新科软件技术(深圳)有限公司 Method and system for testing performance of distributed file system (DFS)
US9558046B2 (en) * 2012-09-28 2017-01-31 Hitachi, Ltd. Computer system and program for prior verification of a workflow program
CN105373477A (en) * 2015-11-25 2016-03-02 普华基础软件股份有限公司 Volume test method
CN105446846A (en) * 2015-11-30 2016-03-30 中电科华云信息技术有限公司 Cloud desktop based performance test method
CN105653435A (en) * 2015-12-28 2016-06-08 曙光信息产业(北京)有限公司 Performance test method of NFS and performance test device of NFS

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874622A (en) * 2018-05-30 2018-11-23 郑州云海信息技术有限公司 A kind of NFS automatic performance test method
CN112000634A (en) * 2020-07-28 2020-11-27 中国建设银行股份有限公司 Capacity management method, system, equipment and storage medium of NAS storage file system
CN112000634B (en) * 2020-07-28 2023-11-14 中国建设银行股份有限公司 Capacity management method, system, equipment and storage medium of NAS storage file system

Similar Documents

Publication Publication Date Title
CN102968374B (en) A kind of data warehouse method of testing
US20200293512A1 (en) Data compartments for read/write activity in a standby database
CN102236672A (en) Method and device for importing data
GB2516986A (en) Automated application test system
US10157120B2 (en) Role-oriented testbed environments for use in test automation
CN103605606B (en) A kind of embedded software test use-case batch execution method that can automatically change
CN109901985B (en) Distributed test apparatus and method, storage medium, and electronic device
CN104461860B (en) The method and system verified for operating system
CN105474177B (en) Distributed processing system(DPS), equipment, method and recording medium
CN103067459A (en) Field programmable gate array (FPGA) remote loading device based on digital signal processor
CN108959385A (en) Database portion arranging method, device, computer equipment and storage medium
CN109684298A (en) Database migration method, apparatus, equipment and storage medium
CN109951553B (en) Data processing method, system, electronic device and computer readable storage medium
CN109814877A (en) Project dispositions method and its device based on environmental management
CN108897656A (en) A kind of method and system of automatic test NAS store function
CN102413010A (en) Testing environment deployment method and device
CN109871290A (en) Allocating stack method for tracing, device and storage medium applied to Java
CN107480056A (en) A kind of method for testing software and device
JP2023518136A (en) FILE PROCESSING METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM
CN104424326B (en) A kind of data processing method and device
CN109992490A (en) A kind of test method and relevant apparatus of NFS performance
WO2024021369A1 (en) Load-spectrum-based test method, apparatus and device, and medium
US20200057102A1 (en) Facilitating reliable circuit board press-fit connector assembly fabrication
CN109101382A (en) A kind of truncate automatic test approach, device, terminal and storage medium
CN105279095B (en) Create the method and device of JBOD file system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181127

RJ01 Rejection of invention patent application after publication