CN107943628A - The on-off test device and test method of a kind of storage device - Google Patents
The on-off test device and test method of a kind of storage device Download PDFInfo
- Publication number
- CN107943628A CN107943628A CN201711148532.XA CN201711148532A CN107943628A CN 107943628 A CN107943628 A CN 107943628A CN 201711148532 A CN201711148532 A CN 201711148532A CN 107943628 A CN107943628 A CN 107943628A
- Authority
- CN
- China
- Prior art keywords
- storage device
- master control
- switching
- test
- shutting down
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The on-off test device and test method of a kind of storage device of the present application.The test device includes master control PC, SAS HBA Card, RS 232, microcontroller, Relay, storage device and HBA Cable connectors, by setting cycle number of switching on and shutting down and switching on and shutting down interval time on master control PC softwares, continue retest process, ensure storage device during each switch machine, the number that software is shown on actual switching on and shutting down number and master control PC is reached an agreement, and improves the correctness of test and the reliability of storage device switching on and shutting down.
Description
Technical field
The present invention relates to storage device testing field, and in particular to a kind of on-off test device of storage device and test
Method.
Background technology
There are storage device such as SAS JBOD, FC JBOD etc. of several distinct interfaces, JBOD (Just a on the market at present
Bunch Of Disks, disk cluster) it is the storage device with multiple disc drivers installed on a bottom plate, these are deposited
It is a kind of storage that more hard disks are placed on same storage device, might not possess operating system itself that storage equipment, which is all,
Device, due to hard disk quantity can place at the same time 12 to 24 it is even more, can by its as a capacity it is sizable
Hard disk, or several disk arrays are made with easy to use, can possess operating system through another as access mode
Computer is connected by Raid cards, is reached the purpose of data access.In order to ensure storage device can smoothly restart
And ensure the degree of reliability of its switching on and shutting down number, therefore need to perform the verification of switching on and shutting down test.Tested in the exploitation of storage device
During, AC (Alternate Current) cycle pressure tests will be carried out.
The method for testing open/close machine of known as memory device, is by setting parameter such as on a switching on and shutting down gauge Relay
Switching on and shutting down interval time, then AC-Out power transmissions are exported to storage device, connect another meter for having operating system through RS-232
Calculation machine, the letter that computer can be started shooting by a software (such as Putty or Hyper-terminate) with read storage device
Breath, and the software of its content on computers is shown.The shortcomings that this switching on and shutting down measuring technology:
First, it is impossible to ensure that hard disk all on storage device is detected completely in each switching on and shutting down of storage device;
Second, the software on calculator has no the function of controlling switch machine gauge Relay, only waits until on switching on and shutting down gauge
The unused time of artificial settings can just cut off AC-Out, and then AC-In power transmissions are started shooting to storage device again;
3rd, usually can be because although some switching on and shutting down gauge Relay can accomplish the execution number of display switch machine
It is poor to be transmitted to the number of seconds of the time and switching on and shutting down gauge of calculator in itself for RS-232 signals there are errors in computation, so as to cause software to exist
The number and switching on and shutting down gauge shown on calculator is different, and such case, tester needs to spend many times to differentiate
The problem of the problem of bottom is calculator software or switching on and shutting down gauge, even RS-232 connection storage devices, not only waste people
Power man-hour and equipment cost, can also influence the quality and reliability of test.
In view of above-mentioned test method, there are many shortcomings, in order to ensure storage device is started shooting every time, all hard disks
It can be detected successfully and the switching on and shutting down number of storage device reality shows with software on computer and reaches an agreement, the application hair
The on-off test device and test method of a kind of bright storage device, can be very good to ensure storage device in each switch machine mistake
Cheng Zhong, all hard disks can be detected what software successfully and on the switching on and shutting down number and master control PC of storage device reality was shown
Number is reached an agreement, and improves the correctness of test and the reliability of storage device switching on and shutting down.
The content of the invention
Specifically, a kind of on-off test device of storage device is claimed in the application, it is characterised in that the device bag
Include:Master control PC, SAS HBA Card, RS-232, microcontroller, Relay, storage device and HBA Cable connectors;Wherein,
Master control PC is used for controlling switch machine;SAS HBACard are installed on master control PC, and storage device is connected to by HBA Cable;
RS-232Cable is used to connect master control PC with microcontroller by COM Port;Microcontroller is opened for receiving master control PC
Control Relay, the power transmission sent or power-off control signal are removed after shutdown command again;Relay is used for the control for receiving microcontroller
Signal, performs power transmission or power operation;Hard disk is installed on storage device, SAS HBA Card detect all hard disks,
It can be shown on master control PC;HBA Cable are used for one end connection SAS HBA Card other end connection storage devices.
The on-off test device of storage device as described above, is further characterized in that, microcontroller is connected with Relay, when
Microcontroller is received after master control PC sends switching on and shutting down order, can be sent control signal and be sent Relay to, Relay is connected outside AC-in
Portion's power supply disconnects AC-in external power supplies, so as to reach the switching on and shutting down to storage device.
The on-off test device of storage device as described above, is further characterized in that, when storage device is started shooting, it is matched somebody with somebody
All hard disks put are detected successfully and shown on master control PC by SAS HBA Card, and the software on master control PC can pass through
RS-232 transmission lines send shutdown signal to microcontroller, then indicate that Relay cuts off AC-Out, and storage device i.e. can power-off shutdown completion
Switching on and shutting down are tested.
The on-off test device of storage device as described above, is further characterized in that, sets and open on master control PC softwares
Cycle-index of shutting down and switching on and shutting down interval time, will continue to repeat test process described above, until test terminates.
Specifically, a kind of method for testing open/close machine of storage device is also claimed in the application, it is characterised in that the switch
Machine test method specifically comprises the following steps:
The storage device is storage device as claimed in claim 1;
The setup parameter on master control PC in advance;
Switching on and shutting down count Count and start as 0, and master control PC sends power-on command, and storage device is started shooting after receiving AC-Out;
If master control PC is detected within the regular hour less than hard disk, in boot failure, stop test;
If started shooting successfully, hard disk detecting is waited, hard disk information is appeared on master control PC, after detecting is completed, is deposited
It is to be shut down to store up equipment etc., if hard disk detecting failure, stops test;
After storage device shuts down, a loop test is completed, and Count can add 1 automatically;
Continue to repeat test above, until Count is equal to switching on and shutting down number.
The method for testing open/close machine of storage device as described above, is further characterized in that, is set in advance on master control PC
Parameter is the number of switching on and shutting down, switching on and shutting down interval time.
Brief description of the drawings
Fig. 1, test device system Organization Chart
Fig. 2, test method flow chart
Embodiment
The test device and test method of switching on and shutting down of the present invention are embodied below by one embodiment
Process illustrates.
As shown in Figure 1, which includes master control PC, SAS HBA (Host Bus to the test device of the present application
Adapter) Card, RS-232, microcontroller, Relay, storage device and HBA Cable connectors.
1st, master control PC:For controlling switch machine;
2、SAS HBACard:On master control PC, storage device is connected to by HBA Cable;
3、RS-232Cable:For master control PC to be connected with microcontroller by COM Port;
4th, microcontroller:Control Relay, the power transmission sent or power-off are gone again afterwards for receiving master control PC switching on and shutting down order
Control signal;
5、Relay:For receiving the control signal of microcontroller, power transmission or power operation are performed;
6th, storage device:Hard disk is installed on it, SAS HBA Card detect all hard disks, can be shown in master control
On PC;
7、HBA Cable:For one end connection SAS HBA Card other end connection storage devices.
SAS HBA Card, SAS HBA a Card is inserted into first on master control PC to fill by HBA Cable and storage
Put and connect;Microcontroller and master control PC are connected using RS-232 transmission lines by the COM Port on master control PC, it is single
Piece machine is connected with Relay again, after the software that microcontroller receives master control PC sends switching on and shutting down order, can send control signal biography
Relay is given, Relay will connect AC-in external power supplies or disconnect AC-in external power supplies, so as to reach to storage device
Switching on and shutting down.
When storage device is started shooting, its all hard disk configured is detected successfully and shown on master control PC by SAS HBA Card
Show to come, the software on master control PC can send shutdown signal to microcontroller by RS-232 transmission lines, then indicate that Relay is cut off
AC-Out, storage device i.e. can power-off shutdown completion switching on and shutting down tests.
Cycle number of switching on and shutting down and switching on and shutting down interval time are set on master control PC softwares, will continue to repeat above
The test process of description, until test terminates.
The specific test process of test method of the switching on and shutting down of storage device of the present invention is as shown in Figure 2:
1st, software set parameter, the times N of such as switching on and shutting down, switching on and shutting down interval time t are passed through on master control PC;
2nd, after setting, switching on and shutting down count Count and start as 0, and when test starts, software will send power-on command, deposit
After storage equipment receives AC-Out, it will start shooting at once;
If the 3, master control PC is detected within the regular hour less than hard disk, boot failure can be judged, will stop testing;
If the 4, started shooting successfully, hard disk detecting is just waited, hard disk information is appeared on master control PC, after detecting is completed,
Storage device etc. is to be shut down, if hard disk detecting failure, can also stop testing;
5th, after storage device shuts down, a cycle test is completed, and Count can add 1 automatically;
6th, when Count adds 1 each time, whether software meeting automatic comparison Count is equal to N, if equal to N, test terminates;
If less than N, will continue to repeat test above, until equal to N.
Test method of the present invention can be very good to ensure storage device during each switch machine, and all is hard
Disk can be detected the number that successfully and software is shown on the switching on and shutting down number and master control PC of storage device reality and reach an agreement,
Improve the correctness of test and the reliability of storage device switching on and shutting down.
It should be evident that illustrated above is only the specific embodiment of the present invention, for the common skill in this area
For art personnel, without creative efforts, other technical solutions can also be obtained according to above-described embodiment,
And the equivalent variations made in the scope of protection of the invention should all be fallen within the scope of protection of the present invention, and belong to the present invention
The scope of protection.
The present invention can ensure that storage device during each switch machine, which can be by all hard disks information in place
All examine one time, and can guarantee that the number that software is shown on the switching on and shutting down number and master control PC of storage device reality reaches one
Cause, and test device is provided.All hard disks can be detected successfully and the switching on and shutting down number of storage device reality and master control
The number that the upper softwares of PC are shown is reached an agreement, and improves the correctness of test and the reliability of storage device switching on and shutting down.
Claims (6)
1. a kind of on-off test device of storage device, it is characterised in that the device includes:Master control PC, SAS HBA Card,
RS-232, microcontroller, Relay, storage device and HBA Cable connectors;Wherein, master control PC is used for controlling switch machine;SAS
HBACard is installed on master control PC, and storage device is connected to by HBA Cable;RS-232Cable is used to pass through COM Port
Master control PC is connected with microcontroller;Microcontroller is used to after receiving master control PC switching on and shutting down order remove control Relay, hair again
The power transmission or power-off control signal gone out;Relay is used for the control signal for receiving microcontroller, performs power transmission or power operation;Deposit
Hard disk is installed, SAS HBA Card detect all hard disks, can be shown on master control PC on storage device;HBA Cable are used
In one end connection SAS HBA Card other end connection storage devices.
2. the on-off test device of storage device as claimed in claim 1, is further characterized in that, microcontroller connects with Relay
Connect, after microcontroller, which receives master control PC, sends switching on and shutting down order, control signal can be sent and send Relay to, Relay is connected
AC-in external power supplies disconnect AC-in external power supplies, so as to reach the switching on and shutting down to storage device.
3. the on-off test device of storage device as claimed in claim 2, is further characterized in that, when storage device is started shooting
When, its all hard disk configured is detected successfully and shown on master control PC, the software on master control PC by SAS HBA Card
Shutdown signal can be sent by RS-232 transmission lines to microcontroller, then indicates that Relay cuts off AC-Out, storage device can power off
Switching on and shutting down test is completed in shutdown.
4. the on-off test device of storage device as claimed in claim 3, is further characterized in that, set on master control PC softwares
Switching on and shutting down cycle-index and switching on and shutting down interval time are put, will continue to repeat test process described above, until test is tied
Beam.
5. a kind of method for testing open/close machine of storage device, it is characterised in that the method for testing open/close machine specifically includes following step
Suddenly:
The storage device is storage device as claimed in claim 1;
The setup parameter on master control PC in advance;
Switching on and shutting down count Count and start as 0, and master control PC sends power-on command, and storage device is started shooting after receiving AC-Out;
If master control PC is detected within the regular hour less than hard disk, in boot failure, stop test;
If started shooting successfully, hard disk detecting is waited, hard disk information is appeared on master control PC, and after detecting is completed, storage is set
It is standby etc. to be shut down, if hard disk detecting failure, stops test;
After storage device shuts down, a loop test is completed, and Count can add 1 automatically;
Continue to repeat test above, until Count is equal to switching on and shutting down number.
6. the method for testing open/close machine of storage device as claimed in claim 5, is further characterized in that, set in advance on master control PC
Fixed parameter is the number of switching on and shutting down, switching on and shutting down interval time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711148532.XA CN107943628A (en) | 2017-11-17 | 2017-11-17 | The on-off test device and test method of a kind of storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711148532.XA CN107943628A (en) | 2017-11-17 | 2017-11-17 | The on-off test device and test method of a kind of storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107943628A true CN107943628A (en) | 2018-04-20 |
Family
ID=61931934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711148532.XA Pending CN107943628A (en) | 2017-11-17 | 2017-11-17 | The on-off test device and test method of a kind of storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943628A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050108491A1 (en) * | 2003-11-17 | 2005-05-19 | Micron Technology, Inc. | Method for testing flash memory power loss recovery |
CN101398776A (en) * | 2007-09-28 | 2009-04-01 | 佛山市顺德区顺达电脑厂有限公司 | Automatic powering-on/powering-off test device and method |
CN101901178A (en) * | 2009-05-31 | 2010-12-01 | 鸿富锦精密工业(深圳)有限公司 | Computer system on-off test device and method |
CN102737721A (en) * | 2011-04-13 | 2012-10-17 | 鸿富锦精密工业(深圳)有限公司 | Hard disk array on-off testing device and method |
CN103051490A (en) * | 2012-11-26 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Method for carrying out startup and shutdown testing on blade server |
-
2017
- 2017-11-17 CN CN201711148532.XA patent/CN107943628A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050108491A1 (en) * | 2003-11-17 | 2005-05-19 | Micron Technology, Inc. | Method for testing flash memory power loss recovery |
CN101398776A (en) * | 2007-09-28 | 2009-04-01 | 佛山市顺德区顺达电脑厂有限公司 | Automatic powering-on/powering-off test device and method |
CN101901178A (en) * | 2009-05-31 | 2010-12-01 | 鸿富锦精密工业(深圳)有限公司 | Computer system on-off test device and method |
CN102737721A (en) * | 2011-04-13 | 2012-10-17 | 鸿富锦精密工业(深圳)有限公司 | Hard disk array on-off testing device and method |
CN103051490A (en) * | 2012-11-26 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Method for carrying out startup and shutdown testing on blade server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103364650A (en) | Testing system and testing method | |
CN101576860B (en) | Detection method and detection system of linux or windows operation system | |
US4835459A (en) | Automatic fault insertion system (AFIS) | |
US9542304B1 (en) | Automated operating system installation | |
CN102568522A (en) | Hardware performance test method and device | |
CN108628709A (en) | The hard disk detection method and device of equipment | |
CN106547653A (en) | Computer system fault condition detection method, apparatus and system | |
CN102737721A (en) | Hard disk array on-off testing device and method | |
CN117251333A (en) | Method, device, equipment and storage medium for acquiring hard disk information | |
CN104572386A (en) | Method for automatically testing HBA card bandwidth under Linux | |
CN107168838A (en) | A kind of RAID card Auto-Test System | |
CN112000535A (en) | SAS Expander card-based hard disk abnormity identification method and processing method | |
CN104239174A (en) | BMC (baseboard management controller) remote debugging system and method | |
CN107273251A (en) | A kind of method of testing of the racks of Rack in a production environment JBOD storages | |
CN109271009A (en) | A kind of method, apparatus that control server backboard powers on and CPLD | |
CN104750537A (en) | Test case execution method and device | |
CN113204456A (en) | Test method, tool, device and equipment for VPP interface of server | |
CN109086081A (en) | Method, system and the medium that a kind of instantly prompting SATA and NVMe equipment change in place | |
CN111190779A (en) | Hard disk detection structure, hard disk detection method and hard disk | |
CN108399116A (en) | A kind of server power-up state monitoring system and method | |
CN107943628A (en) | The on-off test device and test method of a kind of storage device | |
CN112579366A (en) | Hard disk in-place detection system | |
US20080127229A1 (en) | Multiple interface standard support for redundant array of independent disks | |
KR101103940B1 (en) | Method for powerless identification of server i/o slots | |
US8930666B1 (en) | Virtual disk carousel |
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: 20180420 |
|
RJ01 | Rejection of invention patent application after publication |