CN109857604A - A kind of method of automatic testing hard disk hot plug stability - Google Patents

A kind of method of automatic testing hard disk hot plug stability Download PDF

Info

Publication number
CN109857604A
CN109857604A CN201910093356.7A CN201910093356A CN109857604A CN 109857604 A CN109857604 A CN 109857604A CN 201910093356 A CN201910093356 A CN 201910093356A CN 109857604 A CN109857604 A CN 109857604A
Authority
CN
China
Prior art keywords
hard disk
disk
testing
identifier
hot plug
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
CN201910093356.7A
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 CN201910093356.7A priority Critical patent/CN109857604A/en
Publication of CN109857604A publication Critical patent/CN109857604A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a kind of methods of automatic testing hard disk hot plug stability, belong to server hard disc testing field, and the method comprises the steps of: the disk identifier of hard disk information A for obtaining server;Select the i-th hard disk, send instructions under by i-th hard disk power on or under it is electrically operated;After a setting time, disk identifier of hard disk information A ' is obtained;Judge disk identifier of hard disk information A, A ' whether meet first condition, continue other hard disk tests when meeting first condition, otherwise test terminates.The embodiment of the present invention, which has, can be reduced human cost, improve testing efficiency.The advantages of when reducing plug simultaneously to hard disk bring physical damnification.

Description

A kind of method of automatic testing hard disk hot plug stability
Technical field
The present invention relates to server testing fields.
Background technique
With big data, cloud computing flourish, the market demand of massive store server constantly increases.Simultaneously The safety of data storage is also increasingly paid attention to.Also mean that more stringent requirements are proposed to the stability of storage service. Have following test in test: verifying hard disk is hot-swappable with the presence or absence of examining less than hard disk or drift disk phenomenon, other are hard after extracting hard disk Disk drive remains unchanged, take turns the hot-swappable test of hard disk without hard disk inspection less than situation more.This test is purely manual at present, and for One big storage server, tens pieces of hard disk operations are got off to be taken time and effort very much, is badly in need of a kind of automatic test.
Summary of the invention
The present invention is to solve above-mentioned technical problem.For this purpose, the present invention provides the side of automatic testing hard disk hot plug stability Method, it, which has, can be reduced human cost, improve testing efficiency.Hard disk bring physical damnification is given when reducing plug simultaneously The advantages of.
To achieve the goals above, the present invention adopts the following technical scheme that.
On the one hand the embodiment of the present invention provides a kind of method of automatic testing hard disk hot plug stability, include following step It is rapid:
Obtain the disk identifier of hard disk information A of server;
Select the i-th hard disk, send instructions under by i-th hard disk power on or under it is electrically operated;
After a setting time, disk identifier of hard disk information A ' is obtained;
Judge disk identifier of hard disk information A, A ' whether meet first condition, continue other hard disk tests when meeting first condition, Otherwise test terminates.The first condition is that, when i-th hard disk carries out power up test, disk identifier of hard disk information A is compared with hard disk disk Symbol information A ' only lacks the drive of the i-th hard disk;When i-th hard disk carries out lower electrical testing, disk identifier of hard disk information A is compared with hard disk disk Accord with the drive of information A ' only more i-th hard disks.
Preferably, electrically operated test first is carried out down to the i-th hard disk, under it is electrically operated test pass through after carry out power on operation survey again Examination.
Preferably, the method for automatic testing hard disk hot plug stability, testing service device connect whole hard disks.
Preferably, the method for automatic testing hard disk hot plug stability comprising obtaining testing time value, and presses testing time Value tests whole hard disks.
Preferably, the method for automatic testing hard disk hot plug stability comprising obtaining testing time value, and presses testing time Value tests whole hard disks.It is further preferred that the method for automatic testing hard disk hot plug stability, the testing time value are 20。
Preferably, the method for automatic testing hard disk hot plug stability, characterized in that the setting time is one minute.
The embodiment of the present invention the utility model has the advantages that passing through under send instructions to hard disk carry out up and down electrical testing, will verifying hard disk heat Plug less than hard disk or floats disk phenomenon with the presence or absence of inspection, and the test process that other disk identifier of hard disk remain unchanged after extraction hard disk is automatic Change, reduces human cost, improve testing efficiency.
Detailed description of the invention
Fig. 1 is the flow chart of embodiment 1.
Fig. 2 is the flow chart of embodiment 2.
Specific embodiment
The invention will be further described with embodiment with reference to the accompanying drawing.
Embodiment 1.
As shown in Figure 1, the method for the automatic testing hard disk hot plug stability of embodiment 1 comprising the steps of:
(1) the disk identifier of hard disk information B of server is obtained;
(2) the i-th hard disk is selected, sending instructions under will be electrically operated under i-th hard disk;
(3) after 1 minute setting time, disk identifier of hard disk information B ' is obtained;Judge whether disk identifier of hard disk information B only compares The drive of disk identifier of hard disk information B ' mostly the i-th hard disk.If by judging disk identifier of hard disk information B not only than disk identifier of hard disk information B ' The drive of more i-th hard disks, test terminate.If if by judging disk identifier of hard disk information B only than disk identifier of hard disk information B ' mostly i-th The drive of hard disk then continues to test in next step.
(4) power on operation test is carried out to sending instructions under the i-th hard disk.
(5) after 1 minute setting time, disk identifier of hard disk information B " is obtained;Whether only to judge disk identifier of hard disk information B " The drive of mostly the i-th hard disk than disk identifier of hard disk information B '.If by judging that disk identifier of hard disk information B " not only believes than disk identifier of hard disk The drive of B ' mostly the i-th hard disk is ceased, test terminates.If if by judging disk identifier of hard disk information B " only than disk identifier of hard disk information B ' The drive of more i-th hard disks, then test passes through, and can proceed with and tests in next step.
Embodiment 2.
The method of the automatic testing hard disk hot plug stability of the present embodiment, specific implementation include that booting enters Linux OS System.Obtain all drives and statistic record hard disk number L.Known: drive corresponds to sda to hard disk sequence 0,1,2 ... under system sdb sdc….Testing time n=1 is set.
(1) setting i represents hard disk sequence, and i initial value is 0.
(2) CPLD is given by BMC (Baseboard Management Controller, Baseboard Management Controller) Sending instructions under (Complex Programmable Logic Device, Complex Programmable Logic Devices) will be electric under the i-th hard disk.
(3) after waiting 1 minute, drive and number are checked, drive sd (a+i) disappears, other drives exist.And hard disk number =L-1 is to continue above, is otherwise failed (fail) in print screen, test terminates.
(4) it is issued orders by BMC to CPLD and powers on the i-th hard disk of hard disk.
(5) after waiting one minute, drive and number are checked, drive sd (a+i) restores, other drives exist, and hard disk Number=L is to continue above, is otherwise failed (fail) in print screen, test terminates.
(6) i=i+1 is set.
(7) (2) are gone to if i≤L;Otherwise continue (8).
(8) n=n+1 is set.
(9) (1) is jumped to if n < 20, is otherwise terminated, and passes through (pass) in print screen test.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.

Claims (7)

1. a kind of method of automatic testing hard disk hot plug stability, characterized in that comprise the steps of:
Obtain the disk identifier of hard disk information A of server;
Select the i-th hard disk, send instructions under by i-th hard disk power on or under it is electrically operated;
After a setting time, disk identifier of hard disk information A ' is obtained;
Judge disk identifier of hard disk information A, A ' whether meet first condition, continue other hard disk tests when meeting first condition, otherwise Test terminates;The first condition is that, when i-th hard disk carries out power up test, disk identifier of hard disk information A believes compared with disk identifier of hard disk Cease the drive that A ' only lacks the i-th hard disk;When i-th hard disk carries out lower electrical testing, disk identifier of hard disk information A is compared with disk identifier of hard disk information The drive of A ' only more i-th hard disks.
2. the method for testing hard disk hot plug stability as described in claim 1 automatic, characterized in that first to the i-th hard disk into Electrically operated test under row, under it is electrically operated test pass through after carry out power on operation test again.
3. the method for automatic testing hard disk hot plug stability as claimed in claim 2, characterized in that test according to the method The connected whole hard disks of server.
4. the method for automatic testing hard disk hot plug stability as claimed in claim 3, characterized in that surveyed according to drive sequence Try the connected whole hard disks of server.
5. the method for automatic testing hard disk hot plug stability as claimed in claim 2, characterized in that the method includes to obtain Testing time value is taken, and tests whole hard disks by testing time value.
6. the method for automatic testing hard disk hot plug stability as claimed in claim 5, characterized in that the testing time value It is 20.
7. the method for testing hard disk hot plug stability as claimed in claim 2 automatic, characterized in that the setting time is One minute.
CN201910093356.7A 2019-01-30 2019-01-30 A kind of method of automatic testing hard disk hot plug stability Pending CN109857604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910093356.7A CN109857604A (en) 2019-01-30 2019-01-30 A kind of method of automatic testing hard disk hot plug stability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910093356.7A CN109857604A (en) 2019-01-30 2019-01-30 A kind of method of automatic testing hard disk hot plug stability

Publications (1)

Publication Number Publication Date
CN109857604A true CN109857604A (en) 2019-06-07

Family

ID=66897065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910093356.7A Pending CN109857604A (en) 2019-01-30 2019-01-30 A kind of method of automatic testing hard disk hot plug stability

Country Status (1)

Country Link
CN (1) CN109857604A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073783A1 (en) * 2001-01-08 2004-04-15 Gordon Ritchie Computer system with operating system on a ram-disk
CN104536860A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Hard disk sequence marshalling method based on real-time JBOD monitoring mode
CN106021048A (en) * 2016-05-17 2016-10-12 浪潮电子信息产业股份有限公司 Out-of-order verification method and device of disk pack
CN107480022A (en) * 2017-08-22 2017-12-15 郑州云海信息技术有限公司 A kind of method of testing of Storage RACK system disks automatically scanning detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073783A1 (en) * 2001-01-08 2004-04-15 Gordon Ritchie Computer system with operating system on a ram-disk
CN104536860A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Hard disk sequence marshalling method based on real-time JBOD monitoring mode
CN106021048A (en) * 2016-05-17 2016-10-12 浪潮电子信息产业股份有限公司 Out-of-order verification method and device of disk pack
CN107480022A (en) * 2017-08-22 2017-12-15 郑州云海信息技术有限公司 A kind of method of testing of Storage RACK system disks automatically scanning detection

Similar Documents

Publication Publication Date Title
CN101093462B (en) Automatization method for testing schooling pressure on database application
CN105511993B (en) A kind of server NVME hard disk backboard function test method based on UEFI
CN104317712A (en) Linux-based storage server fatigue testing method
CN113378403B (en) Simulation test modeling method, system, test method, device and storage medium
CN106598794A (en) Testing system and method for storage system hard disk
CN104660471A (en) Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux
CN103092733A (en) Testing device and testing method for simulating plugging and unplugging actions
CN107436828A (en) A kind of server hard disc automates hot-swappable test device and method
CN106649020A (en) Detecting method and device for storage case burn information
CN111338881B (en) Automatic testing method and device for parallel reading and writing of NAS file system
CN109032864A (en) A kind of method and system of NVMe SSD hot plug test
CN106850342A (en) The method and device of test interchanger compatibility and stability
CN103761202B (en) A kind of data storage node hard disk position identification method and system
CN109857604A (en) A kind of method of automatic testing hard disk hot plug stability
CN109271009A (en) A kind of method, apparatus that control server backboard powers on and CPLD
CN102236594A (en) SAS (serial attached SCSI) interface test device and test method thereof
CN107907838A (en) A kind of redundant power module tests system and method
CN103823730A (en) Drive detecting method based on domestic disc array
CN106649011A (en) Detection method and detection device for server equipment
CN109815074A (en) A kind of method and system checking hard disk sequence in disk plug test process
CN106502843A (en) A kind of hard disk plug stability test method suitable for raid card
CN109344023B (en) System and method for testing stability of USB3.0 interface of server
CN113656224A (en) NVMe SSD hot plug test method, system, device and readable storage medium
CN105242880A (en) Method for automatically creating Raid and executing pressure testing
CN108206044A (en) A kind of method and apparatus for testing solid state disk saturation write performance

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

Application publication date: 20190607