CN109815074A - A kind of method and system checking hard disk sequence in disk plug test process - Google Patents

A kind of method and system checking hard disk sequence in disk plug test process Download PDF

Info

Publication number
CN109815074A
CN109815074A CN201910058036.8A CN201910058036A CN109815074A CN 109815074 A CN109815074 A CN 109815074A CN 201910058036 A CN201910058036 A CN 201910058036A CN 109815074 A CN109815074 A CN 109815074A
Authority
CN
China
Prior art keywords
disk
slot position
module
test
sequence
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
CN201910058036.8A
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 CN201910058036.8A priority Critical patent/CN109815074A/en
Publication of CN109815074A publication Critical patent/CN109815074A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method and system that hard disk sequence is checked in disk plug test process, includes the following steps: to carry out disk check and collects disc information and disk sequence information generation test baseline;Disk is connect by positioning disk slot position with slot position to be disconnected and is attached disk and slot position behind setting time interval;Disk check is carried out again and obtains disk sequence information;The disk sequence information that will acquire is compared with the test baseline of generation and exports comparison result.Test method has very high reliability and accuracy, it realizes and disk sequence is detected and confirmed in real time in the test process of plug disk at OS, and carry out intelligentized prompt, Test Engineer only carries out plugging the hard disk in corresponding slot position, disk sequence detection process is performed fully automatic, prevent artificial test fault, while also improving testing efficiency.

Description

A kind of method and system checking hard disk sequence in disk plug test process
Technical field
The present invention relates to storage server hard disk test technical fields, and in particular to a kind of in disk plug test process Check the method and system of hard disk sequence.
Background technique
With the fast development of server technology, the quick emergence of Internet company is grown, and Internet subscribers are to server Memory space require higher and higher, currently, the data center of Internet subscribers generally uses distributed storage scheme, have and hold Wrong backup functionality generallys use direct-connected SAS scheme for forms data node, the hard disk disk in this scheme, under OS Correctly whether symbol put in order, and plays an important role to the slot position positioning of physical disk.
In general, the disk random ordering of SAS card refers to that at Linux OS, system is automatically assigned to the sequence of disk Whether (sda, sdb, sdc ...) be a pair of with the hard disk sequence (slot0, slot1, slot2 ...) one be inserted into physics slot position It answers.In the disk disk sequence test process of storage server, there are many kinds of the test focus under scene, for example, restarting process In disk sequence confirmation, switching on and shutting down process disk sequence confirmation etc., the test under the two scenes all can be by comparing at present Perfect script is realized.But there are no good for disk sequence detection of the industry under system after disk plug test Automate the method realized.
Summary of the invention
In order to fill up industry for drive and physical slot bit integrity pair under Linux OS in storage server test process The blank for the automated testing method that should be related to, the present invention provide a kind of plug in disk and check hard disk sequence in test process Method and system.
Technical solution of the present invention provides a kind of method that hard disk sequence is checked in disk plug test process, including as follows Step:
It carries out disk check and collects disc information and disk sequence information generation test baseline;
Disk is connect by positioning disk slot position with slot position to be disconnected and is attached disk and slot position behind setting time interval;
Disk check is carried out again and obtains disk sequence information;
The disk sequence information that will acquire is compared with the test baseline of generation and exports comparison result.
Further, step carries out disk check and collects disc information and disk sequence information generation test baseline, wraps before It includes:
Determining server disk full configuration is scanned to disk slot position, determines that server disk full configuration facilitates later step to slot position When being identified, assert and disk is connect to the slot position disconnected with slot position without what connection disk slot position positioned immediately, if disk does not have There is full configuration, not can determine that vacant slot or the slot position that positioning disconnects when identifying to slot position.
Further, disk is connect disconnection and behind setting time interval by disk by step positioning disk slot position with slot position It is attached, specifically includes with slot position:
Disk is connect disconnection with slot position by positioning disk slot position;
Identification disconnects the disc information of slot position, and recognition result is exported and is shown;The recognition result of output is that Slot# slot position is corresponding Disk extracted, corresponding drive disappears, and tester Slot# slot position is prompted to carry out disk connection;
Disk and slot position are attached by setting time behind interval.It is disconnected that the time interval of setting has to make disk to connect with slot position It opens rear system to stablize, can identify lacked a slot position and drive at this time.
Further, disk and slot position are attached behind step setting time interval, later further include:
Drive is distributed to the disk of connection.Again after disk insertion, distribution drive gives the disk being newly inserted into;
Further, the disk sequence information that step will acquire is compared with the test baseline of generation and carries out comparison result defeated Out, comprising:
The disk sequence information that will acquire is compared with the test baseline of generation;
If the disk sequence information obtained is consistent with the test base-line data of generation, prompts test to pass through, carry out next slot position Test;
If inconsistent, then disk plug test crash is prompted.It needs to carry out debug or terminates to test and submit bug.
Technical solution of the present invention also provides a kind of system that hard disk sequence is checked in disk plug test process, including magnetic Disk checks module, locating module, operation module, comparison module and output display module;
Disk check module, for carrying out disk check, collecting disc information and disk sequence information and generating test baseline;
Locating module is used for positioning disk slot position;The slot position for facilitating operation module to position locating module operates;
Operation module disconnects for disk to be connect with slot position and is attached disk and slot position behind setting time interval;
Disk check module is also used to check the disk that operation module operates and obtains disk sequence information;
Comparison module, the disk sequence information for will acquire are compared with the test baseline of generation;
Display module is exported, the comparison result for exporting comparison module carries out output and shows.
Further, which further includes scan module, the scan module, for being scanned really to disk slot position Determine server disk full configuration.
Further, which further includes identification module;The identification module disconnects the disk letter of slot position for identification It ceases and recognition result is transferred to output display module;
Display module is exported, is also used to the recognition result that identification module exports carrying out output to show.
Further, which further includes drive distribution module, the drive distribution module, for distributing drive to slot position The disk of connection.
As can be seen from the above technical solutions, the invention has the following advantages that test method has very high reliability and standard True property, realizes and disk sequence is detected and confirmed in real time in the test process of plug disk at OS, and carries out intelligence Prompt, disk sequence detection process is performed fully automatic, and has prevented artificial test fault, while also improving testing efficiency.The invention Industry has been filled up to survey the automation of drive and physical slot bit integrity corresponding relationship under OS in storage server test process Method for testing blank has prevented artificial test fault, has improved the reliability and accuracy of test, improve testing efficiency.It can be with It is widely popularized in General Server test process.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is a kind of method flow schematic diagram for plugging in disk and checking hard disk sequence in test process.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention Explanation, and the invention is not limited to following implementation.
Embodiment one
As shown in Figure 1, technical solution of the present invention provides a kind of method for checking hard disk sequence in disk plug test process, packet Include following steps:
S1: carrying out disk check and collects disc information and disk sequence information generates test baseline;
It should be noted that including: before progress step S1
Determining server disk full configuration is scanned to disk slot position, determines that server disk full configuration facilitates later step to slot position When being identified, assert and disk is connect to the slot position disconnected with slot position without what connection disk slot position positioned immediately, if disk does not have There is full configuration, not can determine that vacant slot or the slot position that positioning disconnects when identifying to slot position.
S2: disk is connect disconnection with slot position and carries out disk and slot position behind setting time interval by positioning disk slot position Connection;
Usually in the case of him, step S2 is specifically included:
Disk is connect disconnection with slot position by positioning disk slot position;
In the present embodiment, positioning disk slot position is disconnected disk and slot position by extracting disk;
Identification disconnects the disc information of slot position, and recognition result is exported and is shown;The recognition result of output is that Slot# slot position is corresponding Disk extracted, corresponding drive disappears, and tester Slot# slot position is prompted to carry out disk connection;
Disk and slot position are attached by setting time behind interval.It is disconnected that the time interval of setting has to make disk to connect with slot position It opens rear system to stablize, can identify lacked a slot position and drive at this time.
Disk and slot position are attached after carrying out setting time interval, later further include:
Drive is distributed to the disk of connection.Again after disk insertion, distribution drive gives the disk being newly inserted into;
S3: disk check is carried out again and obtains disk sequence information;
S4: the disk sequence information that will acquire is compared with the test baseline of generation and exports comparison result.
It should be noted that the disk sequence information that will acquire is compared with the test baseline of generation and carries out comparison result Output, comprising:
The disk sequence information that will acquire is compared with the test baseline of generation;
If the disk sequence information obtained is consistent with the test base-line data of generation, prompts test to pass through, carry out next slot position Test;
If inconsistent, then disk plug test crash is prompted.It needs to carry out debug or terminates to test and submit bug.
Embodiment two
Technical solution of the present invention provides a kind of method for checking hard disk in disk plug test process and sorting, including walks as follows It is rapid:
S1: carrying out disk check and collects disc information and disk sequence information generates test baseline;
In tester's test process, this test method includes: before executing step S1
Determining server disk full configuration is scanned to disk slot position, determines that server disk full configuration facilitates later step to slot position When being identified, assert and disk is connect to the slot position disconnected with slot position without what connection disk slot position positioned immediately, if disk does not have There is full configuration, not can determine that vacant slot or the slot position that positioning disconnects when identifying to slot position.
S2: disk is connect disconnection with slot position and carries out disk and slot position behind setting time interval by positioning disk slot position Connection;
Step S2 is specifically included:
Disk is connect disconnection with slot position by positioning disk slot position;
In the present embodiment, positioning disk slot position is sent instructions to CPLD by BMC and the disk that the careless difference quotient of positioning connects breaks Electricity;Disk, which is extracted, disconnects disk and slot position;
Identification disconnects the disc information of slot position, and recognition result is exported and is shown;The recognition result of output is that Slot# slot position is corresponding Disk extracted, corresponding drive disappears, and tester Slot# slot position is prompted to carry out disk connection;
Disk and slot position are attached by setting time behind interval.In this step, issues orders and will power off before to CPLD by BMC Disk re-power;The time interval of setting is had to system after making disk connect disconnection with slot position and is stablized, and can identify at this time A slot position and drive are lacked.
Disk and slot position are attached by step setting time behind interval, later further include:
Drive is distributed to the disk of connection.After disk re-powers, distribution drive gives the disk newly powered on;
S3: disk check is carried out again and obtains disk sequence information;
S4: the disk sequence information that will acquire is compared with the test baseline of generation and exports comparison result.
The disk sequence information that step will acquire is compared with the test baseline of generation and exports comparison result, packet It includes:
The disk sequence information that will acquire is compared with the test baseline of generation;
If the disk sequence information obtained is consistent with the test base-line data of generation, prompts test to pass through, carry out next slot position Test;
If inconsistent, then disk plug test crash is prompted.It needs to carry out debug or terminates to test and submit bug.
Embodiment three
Technical solution of the present invention also provides a kind of system that hard disk sequence is checked in disk plug test process, including disk inspection Look into module, locating module, operation module, comparison module and output display module;
Disk check module, for carrying out disk check, collecting disc information and disk sequence information and generating test baseline;
Locating module is used for positioning disk slot position;The slot position for facilitating operation module to position locating module operates;
Operation module disconnects for disk to be connect with slot position and is attached disk and slot position behind setting time interval;
Operation module in the present embodiment can be manual operation and carry out disk plug, be also possible to bristle with anger by BMC to CPLD The point up and down for carrying out disk control disk is enabled to connect or disconnect.
Disk check module is also used to check the disk that operation module operates and obtains disk sequence information;
Comparison module, the disk sequence information for will acquire are compared with the test baseline of generation;
Display module is exported, the comparison result for exporting comparison module carries out output and shows.
The system further includes scan module, the scan module, for being scanned determining server to disk slot position Disk full configuration.
The system further includes identification module;The identification module disconnects the disc information of slot position for identification and will know Other result is transferred to output display module;
Display module is exported, is also used to the recognition result that identification module exports carrying out output to show.
The system further includes drive distribution module, the drive distribution module, the magnetic connected for distributing drive to slot position Disk.
It is corresponding for drive under OS in storage server test process and physical slot bit integrity that the invention has filled up industry The automated testing method blank of relationship has prevented artificial test fault, has improved the reliability and accuracy of test, improve Testing efficiency.It can be widely popularized in General Server test process.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation, It is intended to cover and non-exclusive includes.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention 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 for checking hard disk sequence in disk plug test process, which comprises the steps of:
It carries out disk check and collects disc information and disk sequence information generation test baseline;
Disk is connect by positioning disk slot position with slot position to be disconnected and is attached disk and slot position behind setting time interval;
Disk check is carried out again and obtains disk sequence information;
The disk sequence information that will acquire is compared with the test baseline of generation and exports comparison result.
2. a kind of method for checking hard disk sequence in disk plug test process according to claim 1, feature exist In progress disk check simultaneously collects disc information and disk sequence information generation test baseline, includes: before
Determining server disk full configuration is scanned to disk slot position.
3. a kind of method for checking hard disk sequence in disk plug test process according to claim 2, feature exist In disk is connect by positioning disk slot position with slot position to be disconnected and be attached disk and slot position behind setting time interval, is had Body includes:
Disk is connect disconnection with slot position by positioning disk slot position;
Identification disconnects the disc information of slot position, and recognition result is exported and is shown;
Disk and slot position are attached by setting time behind interval.
4. a kind of method for checking hard disk sequence in disk plug test process according to claim 3, feature exist In disk and slot position are attached by setting time behind interval, later further include:
Drive is distributed to the disk of connection.
5. a kind of method for checking hard disk sequence in disk plug test process according to claim 4, feature exist In the disk sequence information that will acquire is compared with the test baseline of generation and exports comparison result, comprising:
The disk sequence information that will acquire is compared with the test baseline of generation;
If the disk sequence information obtained is consistent with the test base-line data of generation, prompts test to pass through, carry out next slot position Test;
If inconsistent, then disk plug test crash is prompted.
6. it is a kind of disk plug test process in check hard disk sequence system, which is characterized in that including disk check module, Locating module, operation module, comparison module and output display module;
Disk check module, for carrying out disk check, collecting disc information and disk sequence information and generating test baseline;
Locating module is used for positioning disk slot position;
Operation module disconnects for disk to be connect with slot position and is attached disk and slot position behind setting time interval;
Disk check module is also used to check the disk that operation module operates and obtains disk sequence information;
Comparison module, the disk sequence information for will acquire are compared with the test baseline of generation;
Display module is exported, the comparison result for exporting comparison module carries out output and shows.
7. a kind of system for checking hard disk sequence in disk plug test process according to claim 6, feature exist In the system further includes scan module, the scan module, full for being scanned determining server disk to disk slot position Match.
8. a kind of system for checking hard disk sequence in disk plug test process according to claim 6, feature exist In the system further includes identification module;The identification module disconnects the disc information of slot position and by recognition result for identification It is transferred to output display module;
Display module is exported, is also used to the recognition result that identification module exports carrying out output to show.
9. a kind of system for checking hard disk sequence in disk plug test process according to claim 8, feature exist In the system further includes drive distribution module, the drive distribution module, the disk connected for distributing drive to slot position.
CN201910058036.8A 2019-01-22 2019-01-22 A kind of method and system checking hard disk sequence in disk plug test process Pending CN109815074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910058036.8A CN109815074A (en) 2019-01-22 2019-01-22 A kind of method and system checking hard disk sequence in disk plug test process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910058036.8A CN109815074A (en) 2019-01-22 2019-01-22 A kind of method and system checking hard disk sequence in disk plug test process

Publications (1)

Publication Number Publication Date
CN109815074A true CN109815074A (en) 2019-05-28

Family

ID=66604708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910058036.8A Pending CN109815074A (en) 2019-01-22 2019-01-22 A kind of method and system checking hard disk sequence in disk plug test process

Country Status (1)

Country Link
CN (1) CN109815074A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124785A (en) * 2019-12-22 2020-05-08 广东浪潮大数据研究有限公司 Hard disk fault checking method, device, equipment and storage medium
CN113328740A (en) * 2021-05-14 2021-08-31 山东英信计算机技术有限公司 False trigger prevention startup and shutdown system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536860A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Hard disk sequence marshalling method based on real-time JBOD monitoring mode
CN105302687A (en) * 2015-12-10 2016-02-03 浪潮电子信息产业股份有限公司 Hard disk sequence detection method based on linux
CN105843720A (en) * 2016-05-12 2016-08-10 浪潮电子信息产业股份有限公司 Method and device for testing hot-plug stability of hard disks
CN107273257A (en) * 2017-06-23 2017-10-20 郑州云海信息技术有限公司 A kind of automatic method for carrying out the out of order inspection of hard disk under linux system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536860A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Hard disk sequence marshalling method based on real-time JBOD monitoring mode
CN105302687A (en) * 2015-12-10 2016-02-03 浪潮电子信息产业股份有限公司 Hard disk sequence detection method based on linux
CN105843720A (en) * 2016-05-12 2016-08-10 浪潮电子信息产业股份有限公司 Method and device for testing hot-plug stability of hard disks
CN107273257A (en) * 2017-06-23 2017-10-20 郑州云海信息技术有限公司 A kind of automatic method for carrying out the out of order inspection of hard disk under linux system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124785A (en) * 2019-12-22 2020-05-08 广东浪潮大数据研究有限公司 Hard disk fault checking method, device, equipment and storage medium
CN111124785B (en) * 2019-12-22 2024-02-09 广东浪潮大数据研究有限公司 Method, device, equipment and storage medium for hard disk fault detection
CN113328740A (en) * 2021-05-14 2021-08-31 山东英信计算机技术有限公司 False trigger prevention startup and shutdown system and method

Similar Documents

Publication Publication Date Title
CN104317694A (en) Whole machine testing method and device
CN107391333B (en) OSD disk fault testing method and system
CN109815074A (en) A kind of method and system checking hard disk sequence in disk plug test process
CN105354122B (en) A kind of functional test optimization method of server dual purpose hard disk backboard
CN107577591A (en) A kind of method, apparatus and system of automatic test abnormal protection
CN103092733A (en) Testing device and testing method for simulating plugging and unplugging actions
CN115083510A (en) Solid state disk testing method and device, storage medium, power supply and electronic equipment
CN115510804A (en) Full-chip pin multiplexing automatic verification method, device, equipment and storage medium
CN110489287A (en) Method, system and the storage medium of hot plug are tested by Ipmitool
CN103761202B (en) A kind of data storage node hard disk position identification method and system
CN107907838A (en) A kind of redundant power module tests system and method
CN107231462A (en) The test device of terminal
CN109783288A (en) It is a kind of to automate the method and system for restarting reset test server stability
CN111190779A (en) Hard disk detection structure, hard disk detection method and hard disk
CN1100306C (en) IC card reader/writer and its control method
CN113112786B (en) Multi-data reading method, medium and electronic equipment for ammeter
CN110569153A (en) method and system for testing refresh stability of nvme hard disk firmware
CN108563402A (en) A kind of method and system automatically configuring RAID card parameter
CN107167675A (en) A kind of ageing testing method and device of CANBus terminals
CN111983354A (en) Multi-TF card plug-in and plug-out detection method and system
CN114113977A (en) RTC circuit automatic detection method and system of circuit board
CN111858198A (en) Multi-scheme memory plugging test method, system, terminal and storage medium
US20070005819A1 (en) Apparatus and method to guarantee unique connection tags across resets in a connection protocol
CN113037521A (en) Method for identifying state of communication equipment, communication system and storage medium
CN111240990A (en) ISMCLI command line testing method, system, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528

RJ01 Rejection of invention patent application after publication