CN106850342A - The method and device of test interchanger compatibility and stability - Google Patents

The method and device of test interchanger compatibility and stability Download PDF

Info

Publication number
CN106850342A
CN106850342A CN201710041228.9A CN201710041228A CN106850342A CN 106850342 A CN106850342 A CN 106850342A CN 201710041228 A CN201710041228 A CN 201710041228A CN 106850342 A CN106850342 A CN 106850342A
Authority
CN
China
Prior art keywords
interchanger
source file
stability
file system
server
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
CN201710041228.9A
Other languages
Chinese (zh)
Other versions
CN106850342B (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.)
Suzhou Inspur Intelligent 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 CN201710041228.9A priority Critical patent/CN106850342B/en
Publication of CN106850342A publication Critical patent/CN106850342A/en
Application granted granted Critical
Publication of CN106850342B publication Critical patent/CN106850342B/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
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention belongs to switch test technical field, a kind of method for testing interchanger compatibility and stability is disclosed, be included in storage mapping on the volume of server, creating multiple file system;Misarrangement inspection operation is carried out to source file, the first debugging result is obtained;By interchanger, above-mentioned source file is copied in purpose file system from source file system, and carry out misarrangement inspection operation, obtain the second debugging result;Judge whether above-mentioned two debugging result is equal, if equal, deletion copies the source file in purpose file system to, if unequal, stop script operation.The invention also discloses a kind of device for testing interchanger compatibility and stability, including file system creation module, debugging result computing module and judge module.The present invention can effectively lift the testing efficiency of interchanger compatibility and stability using being simple and convenient to operate.

Description

The method and device of test interchanger compatibility and stability
Technical field
It is more particularly to a kind of to test interchanger compatibility and stability the invention belongs to switch test technical field Method and device.
Background technology
The present invention relates to store server in the middle of test, storage, the survey of compatibility and stability between interchanger three Method for testing, the shortcoming that process is complicated mainly for method in existing method of testing is simple proposes a kind of simplified test hand Section, the method and thinking of in-depth test intension.Compatibility and stability test, are related to total breakdown rate after storage launch Size, therefore good test thinking and skill will greatly promote the quality and quality of product;Certainly, existing global renowned company Such as IBM, Dell, EMC etc. have internal from individual completion method of testing to interchanger compatibility and stability test in storage And skill, and for different product and performance, test thinking can be different.Traditional interchanger compatibility and stability , it is necessary to the test of substantial amounts of front-end server coordinates in test process, number of devices is excessive in test, and process is complicated, and manpower is needed Ask big.
The content of the invention
It is an object of the present invention to provide a kind of method and device for testing interchanger compatibility and stability, simple, behaviour is used Facilitate, can effectively lift the testing efficiency of interchanger compatibility and stability.
To achieve these goals, the present invention uses following technical scheme:
A kind of method for testing interchanger compatibility and stability, comprises the following steps:
A. on volume of the storage mapping to server, multiple file system are created;
B. misarrangement inspection operation is carried out to source file, obtains the first debugging result;
C. by interchanger, above-mentioned source file is copied in purpose file system from source file system, and carry out misarrangement inspection Operation, obtains the second debugging result;
D. judge whether above-mentioned two debugging result is equal, if equal, deletion copies the source file in purpose file system to, If unequal, stop script operation.
Preferably, the misarrangement inspection operation performs cksum orders.
Preferably, before step B, also include:Configuration testing environment.
Preferably, the configuration testing environment, including:
Preset automatized script file in the server;
Create source file.
Preferably, after the deletion copies the source file in purpose file system to, also include:Circulation carries out step B To step D, until two debugging results are unequal, then stop script operation.
Preferably, also include:In cyclic process, interchanger, server and storage are carried out to recover again and weigh accordingly Open operation.
Preferably, interchanger, server and storage are carried out recovering again and reboot operation accordingly, including:
HBA cards to disabling server on interchanger recover again;
Recover again to disabling storage port on interchanger;
Restart the controller of storage;
The optical fiber cable for pulling out storage recovers again;
The optical fiber cable for pulling out server recovers again;
Restart interchanger.
Preferably, volume of the storage mapping at least one capacity in the volume of server more than 500G.
The present invention also provides a kind of device for testing interchanger compatibility and stability, including:
File system creation module, to the volume of server, multiple file system are created in storage mapping;
Debugging result computing module, for carrying out misarrangement inspection operation to source file, obtains the first debugging result;By exchanging Machine, above-mentioned source file is copied in purpose file system from source file system, and carries out misarrangement inspection operation, is obtained second and is looked into Wrong result;
Judge module, whether equal for judging above-mentioned two debugging result, if equal, deletion copies purpose file system to On source file, if unequal, stop script operation.
Preferably, also include:Test environment configuration module, test environment configuration module includes script preset module and source document Part creation module;
Test environment configuration module, for configuration testing environment;
Script preset module, for preset automatized script file in the server;
Source file creation module, for creating source file;
Preferably, also include:Recover to restart module again, for interchanger, server and storage are carried out accordingly recover again and Reboot operation.
Compared with prior art, the present invention has advantages below:
The method of the present invention carries out cksum operations by source file, be calculated the first verification and, by interchanger, by source File is copied in purpose file system from source file system, then carries out cksum operations, is calculated the second verification and is compared Whether two verify and equal, if equal, deletion copies the source file in purpose file system to, and circulation carries out above-mentioned behaviour Make, until two verifications and unequal, then termination script operation;If unequal, stop script operation.In cyclic process, Interchanger, server and storage are carried out to recover again and reboot operation accordingly, to test the stability and compatibility of interchanger. The present invention compares traditional method of testing, simplifies testing process, simple and easy to apply, saves manpower, improves measuring accuracy.
The beneficial effect of the method for above-mentioned test interchanger compatibility and stability and test interchanger compatibility and stabilization Property device beneficial effect be similar to, here is omitted.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the embodiment of the method for testing interchanger compatibility and stability of the present invention;
Fig. 2 is a kind of structural representation of the device embodiment for testing interchanger compatibility and stability of the present invention.
Specific embodiment
In order to make it easy to understand, the part noun to occurring in the present invention makees explanation explained below:
Dd orders:Dd is a highly useful order under Linux/UNIX, and effect is with the block copy one for specifying size File, and the conversion specified while copy.
Cksum orders:Either with or without being damaged during for judging file from a system transfers to another system.
With reference to the accompanying drawings and examples, specific embodiment of the invention is described in further detail:
The present embodiment provides a kind of method for testing interchanger compatibility and stability, comprises the following steps:
A. on volume of the storage mapping to server, multiple file system are created;
B. misarrangement inspection operation is carried out to source file, obtains the first debugging result;
C. by interchanger, above-mentioned source file is copied in purpose file system from source file system, and carry out misarrangement inspection Operation, obtains the second debugging result;
D. judge whether above-mentioned two debugging result is equal, if equal, deletion copies the source file in purpose file system to, If unequal, stop script operation.
Fig. 1 is refer to, Fig. 1 is that a kind of flow of the embodiment of the method for testing interchanger compatibility and stability of the present invention is shown It is intended to;The present embodiment provides a kind of method for testing interchanger compatibility and stability, comprises the following steps:
Step S101, on volume of the storage mapping to server, creates multiple file system;
In the present embodiment, storage mapping is a to the volume of server, volume of at least one capacity more than 500G in a volume, Increase the read-write of detecting large volume script;The file system number of establishment file system is b, b >=4, using multiple file systems System is tested, and improves the uniformity of test result.
Step S102, preset automatized script file, creates source file in the server;
In the present embodiment, source file is two, and an amount of capacity is the source file of c, and another amount of capacity is the source document of d Part, wherein c are less than or equal to the capacity of 1/100 paper to be measured, capacity of the d more than or equal to 1/3 paper to be measured.It is big using different capabilities Small source file, can simulate different size of data flow, make test result truer, effective.
Step S103, misarrangement inspection operation is carried out to source file, obtains the first debugging result;
In the present embodiment, cksum operations are carried out to above-mentioned two source file, and retains the first checksum result e of source file And f.
Step S104, by interchanger, above-mentioned source file is copied in purpose file system from source file system, is gone forward side by side Row misarrangement inspection operation, obtains the second debugging result;
In the present embodiment, above-mentioned two source file is copied in purpose file system from source file system by dd orders, And the file come to dd carries out cksum operations again, retain the second checksum result g and h.
Step S105, judges whether above-mentioned two debugging result is equal, if equal, goes to step S106, if unequal, Stop script operation.
Step S106, deletion copies the source file in purpose file system to.
In the present embodiment, compare e and g, f and whether h is equal, if equal, the source file is considered as correctly to be passed Defeated, deletion copies the source file in purpose file system to, and circulation carries out step S103 to step S105, until two verifications With unequal, then termination script operation;If unequal, stop script operation.
In cyclic process, interchanger, server and storage are carried out to recover again and reboot operation accordingly, including:
To being disabled on interchanger(disable)The HBA cards of server recover again;
To being disabled on interchanger(disable)Storage port recovers again;
Restart the controller of storage;
The optical fiber cable for pulling out storage recovers again;
The optical fiber cable for pulling out server recovers again;
Restart interchanger.
Below the operation order recovered again and restart can be overturned.
The method of the present invention carries out cksum operations by source file, be calculated the first verification and, by interchanger, Source file is copied in purpose file system from source file system, then carries out cksum operations, be calculated the second verification and, Compare two to verify and whether equal, if equal, deletion copies the source file in purpose file system to, and circulation carries out above-mentioned Operation, until two verifications and unequal, then termination script operation;If unequal, stop script operation.In cyclic process In, interchanger, server and storage are carried out to recover again and reboot operation accordingly, to test the stability and compatibility of interchanger Property.The present invention compares traditional method of testing, simplifies testing process, simple and easy to apply, saves manpower, improves test essence Degree.
The embodiment of the present invention also provides a kind of device for testing interchanger compatibility and stability, including:
File system creation module, to the volume of server, multiple file system are created in storage mapping;
Debugging result computing module, for carrying out misarrangement inspection operation to source file, obtains the first debugging result;By exchanging Machine, above-mentioned source file is copied in purpose file system from source file system, and carries out misarrangement inspection operation, is obtained second and is looked into Wrong result;
Judge module, whether equal for judging above-mentioned two debugging result, if equal, deletion copies purpose file system to On source file, if unequal, stop script operation.
Fig. 2 is refer to, Fig. 2 is that a kind of structure of the device embodiment for testing interchanger compatibility and stability of the present invention is shown It is intended to;The present embodiment provides a kind of device for testing interchanger compatibility and stability, including:File system creation module 201, Test environment configuration module 202, debugging result computing module 205, judge module 206 and recover to restart module 207 again;Test wrapper Border configuration module 202 includes script preset module 203 and source file creation module 204.
File system creation module 201, to the volume of server, multiple file system are created in storage mapping;
Test environment configuration module 202, for configuration testing environment;
Script preset module 203, for preset automatized script file in the server;
Source file creation module 204, for creating source file;
Debugging result computing module 205, for carrying out misarrangement inspection operation to source file, obtains the first debugging result;By handing over Change planes, above-mentioned source file is copied in purpose file system from source file system, and carry out misarrangement inspection operation, obtain second Debugging result;
Judge module 206, whether equal for judging above-mentioned two debugging result, if equal, deletion copies purpose file to Source file in system, if unequal, stops script operation;
Recover to restart module 207 again, for carrying out recovering again and reboot operation accordingly to interchanger, server and storage.
Illustrated above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. it is a kind of to test compatible and stability the method for interchanger, it is characterised in that to comprise the following steps:
A. on volume of the storage mapping to server, multiple file system are created;
B. misarrangement inspection operation is carried out to source file, obtains the first debugging result;
C. by interchanger, above-mentioned source file is copied in purpose file system from source file system, and carry out misarrangement inspection Operation, obtains the second debugging result;
D. judge whether above-mentioned two debugging result is equal, if equal, deletion copies the source file in purpose file system to, If unequal, stop script operation.
2. it is according to claim 1 to test compatible and stability the method for interchanger, it is characterised in that the misarrangement inspection Look into operation and perform cksum orders.
3. it is according to claim 1 and 2 to test compatible and stability the method for interchanger, it is characterised in that in step B Before, also include:Configuration testing environment.
4. it is according to claim 3 to test compatible and stability the method for interchanger, it is characterised in that the configuration is surveyed Test ring border, including:
Preset automatized script file in the server;
Create source file.
5. it is according to claim 1 to test compatible and stability the method for interchanger, it is characterised in that the deletion is copied After source file on shellfish to purpose file system, also include:Circulation carries out step B to step D, until two debugging results are not It is equal, then stop script operation.
6. it is according to claim 5 to test compatible and stability the method for interchanger, it is characterised in that also to include: In cyclic process, interchanger, server and storage are carried out to recover again and reboot operation accordingly.
7. it is according to claim 6 test interchanger compatibility and stability method, it is characterised in that to interchanger, Server and storage recover again and reboot operation accordingly, including:
HBA cards to disabling server on interchanger recover again;
Recover again to disabling storage port on interchanger;
Restart the controller of storage;
The optical fiber cable for pulling out storage recovers again;
The optical fiber cable for pulling out server recovers again;
Restart interchanger.
8. it is according to claim 1 to test compatible and stability the method for interchanger, it is characterised in that the storage is reflected Penetrate volume of at least one capacity more than 500G in the volume to server.
9. it is a kind of to test compatible and stability the device of interchanger, it is characterised in that including:
File system creation module, to the volume of server, multiple file system are created in storage mapping;
Debugging result computing module, for carrying out misarrangement inspection operation to source file, obtains the first debugging result;By exchanging Machine, above-mentioned source file is copied in purpose file system from source file system, and carries out misarrangement inspection operation, is obtained second and is looked into Wrong result;
Judge module, whether equal for judging above-mentioned two debugging result, if equal, deletion copies purpose file system to On source file, if unequal, stop script operation.
10. it is according to claim 1 to test compatible and stability the device of interchanger, it is characterised in that also to include:Survey Test ring border configuration module, test environment configuration module includes script preset module and source file creation module;
Test environment configuration module, for configuration testing environment;
Script preset module, for preset automatized script file in the server;
Source file creation module, for creating source file;
Preferably, also include:Recover to restart module again, for interchanger, server and storage are carried out accordingly recover again and Reboot operation.
CN201710041228.9A 2017-01-20 2017-01-20 Method and device for testing compatibility and stability of switch Active CN106850342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710041228.9A CN106850342B (en) 2017-01-20 2017-01-20 Method and device for testing compatibility and stability of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710041228.9A CN106850342B (en) 2017-01-20 2017-01-20 Method and device for testing compatibility and stability of switch

Publications (2)

Publication Number Publication Date
CN106850342A true CN106850342A (en) 2017-06-13
CN106850342B CN106850342B (en) 2020-11-24

Family

ID=59119283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710041228.9A Active CN106850342B (en) 2017-01-20 2017-01-20 Method and device for testing compatibility and stability of switch

Country Status (1)

Country Link
CN (1) CN106850342B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656867A (en) * 2017-09-14 2018-02-02 中标软件有限公司 A kind of method and apparatus of database and Compatibility of Operating System authentication test
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN110278126A (en) * 2019-06-28 2019-09-24 苏州浪潮智能科技有限公司 A kind of switch port self checking method, system, terminal and storage medium
CN111835411A (en) * 2020-06-24 2020-10-27 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1648116A1 (en) * 2004-10-15 2006-04-19 Bosch Rexroth AG Method for data transmission in a communication system
CN101227263A (en) * 2008-02-01 2008-07-23 上海华为技术有限公司 On-line malfunction detecting system, device and method
CN103034564A (en) * 2012-12-05 2013-04-10 华为技术有限公司 Data disaster tolerance demonstration and practicing method and data disaster tolerance demonstration and practicing device and system
CN103455354A (en) * 2013-09-06 2013-12-18 南京南自信息技术有限公司 Method and equipment for preventing hardware update from failing
CN104025047A (en) * 2012-01-05 2014-09-03 三菱电机株式会社 Information Processing Device, Information Processing Method, And Computer Program
CN104391767A (en) * 2014-12-03 2015-03-04 浪潮集团有限公司 Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card
CN105302593A (en) * 2015-07-17 2016-02-03 天津市英贝特航天科技有限公司 Remote upgrade system and method of PowerPC motherboard
CN106326035A (en) * 2016-08-13 2017-01-11 南京叱咤信息科技有限公司 File-metadata-based incremental backup method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1648116A1 (en) * 2004-10-15 2006-04-19 Bosch Rexroth AG Method for data transmission in a communication system
CN101227263A (en) * 2008-02-01 2008-07-23 上海华为技术有限公司 On-line malfunction detecting system, device and method
CN104025047A (en) * 2012-01-05 2014-09-03 三菱电机株式会社 Information Processing Device, Information Processing Method, And Computer Program
CN103034564A (en) * 2012-12-05 2013-04-10 华为技术有限公司 Data disaster tolerance demonstration and practicing method and data disaster tolerance demonstration and practicing device and system
CN103455354A (en) * 2013-09-06 2013-12-18 南京南自信息技术有限公司 Method and equipment for preventing hardware update from failing
CN104391767A (en) * 2014-12-03 2015-03-04 浪潮集团有限公司 Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card
CN105302593A (en) * 2015-07-17 2016-02-03 天津市英贝特航天科技有限公司 Remote upgrade system and method of PowerPC motherboard
CN106326035A (en) * 2016-08-13 2017-01-11 南京叱咤信息科技有限公司 File-metadata-based incremental backup method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656867A (en) * 2017-09-14 2018-02-02 中标软件有限公司 A kind of method and apparatus of database and Compatibility of Operating System authentication test
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN110278126A (en) * 2019-06-28 2019-09-24 苏州浪潮智能科技有限公司 A kind of switch port self checking method, system, terminal and storage medium
CN111835411A (en) * 2020-06-24 2020-10-27 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch
CN111835411B (en) * 2020-06-24 2021-07-20 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch

Also Published As

Publication number Publication date
CN106850342B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN106850342A (en) The method and device of test interchanger compatibility and stability
US11048826B2 (en) FPGA device and cloud system based on FPGA device
CN103761159B (en) Method and system for processing incremental snapshot
CN104239564B (en) A kind of file index tissue and the method and device of reparation
US20090265520A1 (en) Method and apparatus for backing up data
CN106603264A (en) Method and equipment for positioning fault root
DE60002908D1 (en) DEVICE AND METHOD FOR IMPROVED ERROR LOCATION AND DIAGNOSIS IN COMPUTERS
CN106649020A (en) Detecting method and device for storage case burn information
CN103020086B (en) A kind of picture duplicate checking method and device
CN103092718A (en) Test data backup system and method
CN107015911A (en) The code review method and device of continuous integrating
CN109032864A (en) A kind of method and system of NVMe SSD hot plug test
CN106502718A (en) The upgrade method of program and device, controller
CN107807791A (en) A kind of hard disc of computer sequence binding method and system
CN104375905A (en) Incremental backing up method and system based on data block
US8341538B1 (en) Systems and methods for reducing redundancies in quality-assurance reviews of graphical user interfaces
CN104978241B (en) A kind of data reconstruction method and device of COW type file systems
CN109918912A (en) A kind of Ile repair method and relevant device for computer virus
CN103761202B (en) A kind of data storage node hard disk position identification method and system
CN107766247A (en) Bootloader method of testing, device and readable storage medium storing program for executing
CN106875977A (en) A kind of solid state hard disc adjustment method and device
CN106919483A (en) A kind of method and system of real-time display dd testing progress
CN103593295B (en) A kind of multi-branch software defect tracking and system
CN104407806A (en) Method and device for revising hard disk information of redundant array group of independent disk (RAID)
CN109522174A (en) Control adb enabled method, apparatus, terminal and storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201105

Address after: 215000 Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450000 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant