TW201426290A - System and method of testing hard disks - Google Patents

System and method of testing hard disks Download PDF

Info

Publication number
TW201426290A
TW201426290A TW101151293A TW101151293A TW201426290A TW 201426290 A TW201426290 A TW 201426290A TW 101151293 A TW101151293 A TW 101151293A TW 101151293 A TW101151293 A TW 101151293A TW 201426290 A TW201426290 A TW 201426290A
Authority
TW
Taiwan
Prior art keywords
hard disk
hard
test
light
module
Prior art date
Application number
TW101151293A
Other languages
Chinese (zh)
Inventor
Yu-Long Lin
Jun Zhang
Hua Dong
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Publication of TW201426290A publication Critical patent/TW201426290A/en

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

The present invention provides a system and method of testing hard disks. The system includes an obtaining module for obtaining number of the hard disks, wherein, each hard disk includes a lighting device; a generating module for generating a number of test programs, wherein, the number of the test programs is the same as the number of the hard disks, and each test program tests each hard disk; an interrupting module for interrupting all the tests of hard disk, if one of the hard disks has an error in the testing; a controlling module for controlling the light device of the hard disk with error, and the lighting device of other hard disks to open flash lights alternately. The present invention can be used to test hard disks.

Description

硬碟測試系統及方法Hard disk test system and method

本發明涉及測試系統及方法,特別是關於一種硬碟測試系統及方法。The present invention relates to test systems and methods, and more particularly to a hard disk test system and method.

現在的電腦設備,例如伺服器,一般需要非常多的存儲設備。一個伺服器往往會帶有幾十甚至幾百個硬碟。為保證伺服器出廠時該硬碟的容量、轉速等性能參數滿足客戶的要求,需要對硬碟進行測試。然而,在現有的測試方法中,測試軟體在測試時發現其中一個硬碟不符合要求時,測試軟體知道該硬碟有問題,但測試人員卻沒有辦法找到問題硬碟具體是哪個,只能分區域去測試找該區域的硬碟有沒有問題,找到有問題的硬碟區域再具體到每個硬碟進行測試,這樣的方法非常浪費時間,效率低下,而且也經常造成大量的硬碟要進行插拔動作,增加了人為損壞的可能。Today's computer devices, such as servers, generally require a lot of storage devices. A server often has dozens or even hundreds of hard drives. In order to ensure that the performance parameters such as the capacity and speed of the hard disk meet the requirements of the customer when the server is shipped, the hard disk needs to be tested. However, in the existing test method, when the test software finds that one of the hard disks does not meet the requirements, the test software knows that the hard disk has a problem, but the tester has no way to find out which one of the hard disks is. The area to test to find the hard disk in the area has no problem, find the problematic hard disk area and then specific to each hard disk for testing, this method is very time consuming, inefficient, and often cause a large number of hard drives to be carried out The insertion and removal action increases the possibility of human damage.

鑒於以上內容,有必要提供一種硬碟測試系統方法,方便測試人員找到問題硬碟的位置。In view of the above, it is necessary to provide a hard disk test system method to facilitate the tester to find the location of the problem hard disk.

一種硬碟測試系統,運行於電腦中,該系統包括,獲取模組,用於獲取待測硬碟的數量,其中每個硬碟包括發光單元;生成模組,用於生成與所述硬碟數量相同的測試程式,其中,每個生成的測試程式對一個硬碟進行測試;中斷模組,用於當任意一個硬碟被測出有問題時,中斷所有硬碟的測試;控制模組,用於控制問題硬碟的發光單元與其他硬碟的發光單元交替發出閃爍燈光。A hard disk test system running on a computer, the system comprising: an acquisition module, configured to acquire a number of hard disks to be tested, wherein each hard disk includes a light emitting unit; and a generating module configured to generate the hard disk The same number of test programs, wherein each generated test program tests a hard disk; the interrupt module is used to interrupt all hard disk tests when any one of the hard disks is detected; the control module, The lighting unit for controlling the problem hard disk alternately emits blinking lights with the lighting units of other hard disks.

一種硬碟測試方法,應用於電腦,該方法包括,獲取步驟,獲取待測硬碟的數量,其中每個硬碟包括發光單元;生成步驟,生成與所述硬碟數量相同的測試程式,其中,每個生成的測試程式對一個硬碟進行測試;中斷步驟,當任意一個硬碟被測出有問題時,中斷所有硬碟的測試;控制步驟,控制問題硬碟的發光單元與其他硬碟的發光單元交替發出閃爍燈光。A hard disk testing method is applied to a computer, the method comprising: obtaining a step of obtaining a number of hard disks to be tested, wherein each hard disk comprises a light emitting unit; and generating a step of generating a test program having the same number of the hard disk, wherein Each generated test program tests a hard disk; interrupts the step, interrupts all hard disk tests when any one of the hard disks is detected; control steps, control the problem of the hard disk's light unit and other hard disks The lighting units alternately emit flashing lights.

相較於習知技術,所述硬碟測試系統及方法,當硬碟被測出有問題時,透過控制問題硬碟的發光單元和其他硬碟的發光單元交替發出閃爍燈光,使得用戶可以透過發光單元的交替來找到問題硬碟的位置,提高了測試效率。Compared with the prior art, the hard disk test system and method, when the hard disk is detected to have a problem, alternately emit flashing lights through the light-emitting unit of the control hard disk and the light-emitting units of other hard disks, so that the user can pass through The alternation of the lighting units to find the location of the problem hard disk improves the test efficiency.

參閱圖1所示,是本發明硬碟測試系統1較佳實施例的應用環境圖。在本實施例中,硬碟測試系統1運行於電腦100中,該硬碟測試系統1用於測試與所述電腦100連接的多個硬碟3。本實施例中,所述電腦100可以透過IDE(Integrated Drive Electronics)、SATA(Serial ATA)、SCSI (Small Computer System Interface)、USB(Universal Serial BUS)等一般通用性的介面與所述多個硬碟3連接。所述硬碟3包括發光單元30,該發光單元30可以是用於指示該硬碟3與電腦100進行資料交互的指示燈,也可以是硬碟3的電源指示燈或用於指示該硬碟3與硬碟背板連接的指示燈。Referring to FIG. 1, it is an application environment diagram of a preferred embodiment of the hard disk test system 1 of the present invention. In the present embodiment, the hard disk test system 1 is operated in a computer 100 for testing a plurality of hard disks 3 connected to the computer 100. In this embodiment, the computer 100 can communicate with the plurality of hard interfaces through a general-purpose interface such as IDE (Integrated Drive Electronics), SATA (Serial ATA), SCSI (Small Computer System Interface), and USB (Universal Serial BUS). Disc 3 is connected. The hard disk 3 includes a light emitting unit 30, and the light emitting unit 30 may be an indicator light for indicating data interaction between the hard disk 3 and the computer 100, or may be a power indicator light of the hard disk 3 or used to indicate the hard disk. 3 Indicator light connected to the hard disk backplane.

在本實施例中,所述硬碟測試系統1可以包括一個或多個模組,所述一個或多個模組可以存儲於上述任意一個待測硬碟3中,或存儲於該電腦100的其他存儲設備中。在本實施例中,所述硬碟測試系統1包括獲取模組10、生成模組11、判斷模組12、中斷模組13及控制模組14(參閱圖2所示)。所述模組是指能完成一特定功能的程式段,關於各模組的功能將在圖3的流程圖中具體描述。In this embodiment, the hard disk test system 1 may include one or more modules, and the one or more modules may be stored in any one of the hard disks 3 to be tested or stored in the computer 100. In other storage devices. In this embodiment, the hard disk test system 1 includes an acquisition module 10, a generation module 11, a determination module 12, an interrupt module 13, and a control module 14 (see FIG. 2). The module refers to a program segment that can perform a specific function, and the functions of each module will be specifically described in the flowchart of FIG.

參閱圖3所示,是本發明硬碟測試方法較佳實施例的流程圖。Referring to Figure 3, there is shown a flow chart of a preferred embodiment of the hard disk test method of the present invention.

步驟S1,獲取模組10獲取待測硬碟3的數量。In step S1, the acquisition module 10 acquires the number of hard disks 3 to be tested.

具體地,由於電腦100中的硬碟驅動識別到一個硬碟3後就會為該硬碟3生成一個設備文檔,則所述獲取模組10可以透過讀取待測硬碟3的設備文檔個數來確定待測硬碟3的數量。假設讀取到五個設備文檔,則可確定該批待測硬碟3的數量為5。Specifically, since the hard disk drive in the computer 100 recognizes a hard disk 3 and generates a device file for the hard disk 3, the obtaining module 10 can read the device file of the hard disk 3 to be tested. The number determines the number of hard disks 3 to be tested. Assuming that five device documents are read, it can be determined that the number of hard disks 3 to be tested is 5.

步驟S2,生成模組11生成與所述硬碟3數量相同的測試程式,其中,每個生成的測試程式對一個硬碟3進行測試。In step S2, the generation module 11 generates the same number of test programs as the hard disk 3, wherein each generated test program tests one hard disk 3.

具體而言,例如需對五個硬碟3進行測試,硬碟3的測試專案為容量、轉速等性能參數,則生成模組11生成五個相同的測試程式,每個測試程式都包括對硬碟3的容量、轉速等性能參數的測試,並且每個測試程式對應一個硬碟3進行測試。Specifically, for example, five hard disks 3 are tested. The hard disk 3 test project is a performance parameter such as capacity and speed. The generation module 11 generates five identical test programs, each of which includes a hard test. The performance parameters of the capacity and rotation speed of the disc 3 are tested, and each test program is tested corresponding to one hard disc 3.

步驟S3,判斷模組12判斷是否有硬碟3被測出有問題。本實施例中,當某個測試程式測試到該測試程式對應的硬碟3有問題時,該測試程式會通知所述判斷模組12。若任何一個硬碟3被測出有問題,則執行步驟S4,否則回到步驟S2,對未完成測試的硬碟3繼續測試。In step S3, the judging module 12 judges whether or not there is a problem that the hard disc 3 is detected. In this embodiment, when a test program tests that there is a problem with the hard disk 3 corresponding to the test program, the test program notifies the determination module 12. If any one of the hard disks 3 is detected to have a problem, step S4 is performed, otherwise, returning to step S2, the hard disk 3 that has not completed the test continues the test.

假設當其中一個硬碟3被測出容量及/或者轉速等性能參數不符合要求時,則執行步驟S4。It is assumed that when one of the hard disks 3 is found to have a performance parameter such as capacity and/or rotational speed that does not meet the requirements, step S4 is performed.

需要說明的是,本實施例可以是當硬碟3的某一測試專案被測出不符合要求時即直接執行步驟S4,也可以是待該問題硬碟3完成所有其他測試專案後再執行步驟S4。It should be noted that, in this embodiment, when a certain test project of the hard disk 3 is found to be inconsistent with the requirement, step S4 may be directly performed, or the hard disk 3 may be completed after all other test projects are completed. S4.

具體而言,假設測試程式先對硬碟3的容量進行測試,再對硬碟3的轉速以及其他性能參數進行測試,則當檢測到某一硬碟3的容量不符合要求時,可以直接執行步驟S4,或待完成該問題硬碟3的其他測試專案如轉速等性能參數的測試後再執行步驟S4。Specifically, it is assumed that the test program first tests the capacity of the hard disk 3, and then tests the speed of the hard disk 3 and other performance parameters, and when it is detected that the capacity of a certain hard disk 3 does not meet the requirements, it can be directly executed. In step S4, or after the test of the performance parameters such as the rotational speed of the other test items of the hard disk 3 to be completed, the step S4 is performed.

步驟S4,中斷模組13控制所有測試程式中斷對所有硬碟3的測試。In step S4, the interrupt module 13 controls all test programs to interrupt the test of all the hard disks 3.

步驟S5,控制模組14控制問題硬碟3的發光單元30與其他硬碟3的發光單元30交替發出閃爍燈光,使得測試人員可以透過發光單元30的交替來確定問題硬碟3的位置。In step S5, the control module 14 controls the light-emitting unit 30 of the problem hard disk 3 and the light-emitting units 30 of the other hard disks 3 to alternately emit flashing lights, so that the tester can determine the position of the problem hard disk 3 through the alternation of the light-emitting units 30.

本實施例中,所述控制模組14可以透過I2C匯流排或GPIO線來控制發光單元30發出閃爍燈光。In this embodiment, the control module 14 can control the illumination unit 30 to emit blinking lights through the I2C bus bar or the GPIO line.

具體地,假設上述五個硬碟3分別為A、B、C、D、E,該五個硬碟3的發光單元30分別為I、II、III、IV、V,當A被測出有問題時,則所述控制模組14可透過I2C匯流排或GPIO線控制A對應的I發出閃爍燈光,並同時關閉B對應的II,C對應的III,D對應的IV及E對應的V,即使得II、III、IV及V不發光。在預設時間(例如5秒,也可以設置為大於1秒的其他時間)後,所述控制模組14再透過I2C匯流排或GPIO線關閉A對應的I,並控制B對應的II,C對應的III,D對應的IV及E對應的V同時發出閃爍燈光,也即控制問題硬碟3的發光單元30與其他硬碟3的發光單元30反復交替的發出閃爍燈光,用戶即可很容易的辨識出單獨發光的發光單元30對應的硬碟3即是問題硬碟。Specifically, it is assumed that the five hard disks 3 are A, B, C, D, and E, respectively, and the light-emitting units 30 of the five hard disks 3 are I, II, III, IV, and V, respectively, when A is detected. In the case of the problem, the control module 14 can send a flashing light through the I2C bus or the GPIO line control A corresponding to the I, and simultaneously close the B corresponding to II, C corresponding III, D corresponding IV and E corresponding V, That is, II, III, IV, and V do not emit light. After a preset time (for example, 5 seconds, or other time greater than 1 second), the control module 14 turns off the I corresponding to A through the I2C bus or GPIO line, and controls the II, C corresponding to B. Corresponding III, D corresponding IV and E corresponding to V simultaneously emit flashing light, that is, control light hard disk 3 of the hard disk 3 and other hard disk 3 light emitting unit 30 alternately flashing lights, the user can easily It is recognized that the hard disk 3 corresponding to the light-emitting unit 30 that emits light alone is a problem hard disk.

最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are only for explaining the technical solutions of the present invention and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments. Modifications or equivalents are made without departing from the spirit and scope of the invention.

100...電腦100. . . computer

1...硬碟測試系統1. . . Hard disk test system

2...處理器2. . . processor

3...硬碟3. . . Hard disk

30...發光單元30. . . Light unit

10...獲取模組10. . . Get module

11...生成模組11. . . Generation module

12...判斷模組12. . . Judging module

13...中斷模組13. . . Interrupt module

14...控制模組14. . . Control module

圖1是本發明硬碟測試系統較佳實施例的應用環境圖。1 is an application environment diagram of a preferred embodiment of a hard disk test system of the present invention.

圖2是本發明硬碟測試系統的功能模組圖。2 is a functional block diagram of the hard disk test system of the present invention.

圖3是本發明硬碟測試方法較佳實施例的流程圖。3 is a flow chart of a preferred embodiment of the hard disk test method of the present invention.

1...硬碟測試系統1. . . Hard disk test system

10...獲取模組10. . . Get module

11...生成模組11. . . Generation module

12...判斷模組12. . . Judging module

13...中斷模組13. . . Interrupt module

14...控制模組14. . . Control module

Claims (10)

一種硬碟測試系統,運行於電腦中,該系統包括,
獲取模組,用於獲取待測硬碟的數量,其中每個硬碟包括發光單元;
生成模組,用於生成與所述硬碟數量相同的測試程式,其中,每個生成的測試程式對一個硬碟進行測試;
中斷模組,用於當任意一個硬碟被測出有問題時,中斷所有硬碟的測試;
控制模組,用於控制問題硬碟的發光單元與其他硬碟的發光單元交替發出閃爍燈光。
A hard disk test system running on a computer, the system including
Obtaining a module, configured to obtain the number of hard disks to be tested, wherein each hard disk includes a light emitting unit;
Generating a module for generating a test program of the same number as the hard disk, wherein each generated test program tests a hard disk;
The interrupt module is configured to interrupt the test of all the hard disks when any one of the hard disks is detected to have a problem;
The control module is used to control the problem that the light unit of the hard disk and the light unit of the other hard disk alternately emit flashing lights.
如申請專利範圍第1項所述的硬碟測試系統,所述獲取模組透過讀取待測硬碟的設備文檔來識別待測硬碟的數量。The hard disk test system of claim 1, wherein the acquisition module identifies the number of hard disks to be tested by reading a device file of the hard disk to be tested. 如申請專利範圍第1項所述的硬碟測試系統,所述控制模組透過I2C匯流排或GPIO線來控制發光單元發出閃爍燈光。The hard disk test system of claim 1, wherein the control module controls the light emitting unit to emit a flashing light through an I2C bus bar or a GPIO line. 如申請專利範圍第1項所述的硬碟測試系統,所述發光單元為指示硬碟與電腦進行資料交互的指示燈。The hard disk test system of claim 1, wherein the light emitting unit is an indicator light for indicating data interaction between the hard disk and the computer. 如申請專利範圍第1項所述的硬碟測試系統,所述發光單元為硬碟的電源指示燈或指示該硬碟與硬碟背板連接的指示燈。The hard disk test system of claim 1, wherein the light emitting unit is a power indicator of the hard disk or an indicator light indicating that the hard disk is connected to the hard disk backplane. 一種硬碟測試方法,應用於電腦,該方法包括,
獲取步驟,獲取待測硬碟的數量,其中每個硬碟包括發光單元;
生成步驟,生成與所述硬碟數量相同的測試程式,其中,每個生成的測試程式對一個硬碟進行測試;
中斷步驟,當任意一個硬碟被測出有問題時,中斷所有硬碟的測試;
控制步驟,控制問題硬碟的發光單元與其他硬碟的發光單元交替發出閃爍燈光。
A hard disk test method applied to a computer, the method comprising
Obtaining a step of obtaining the number of hard disks to be tested, wherein each hard disk includes a light emitting unit;
a generating step of generating a test program of the same number as the hard disk, wherein each generated test program tests a hard disk;
Interrupt the step, interrupting all hard disk tests when any one of the hard disks is detected to be defective;
The control step controls the illumination unit of the problem hard disk to alternately emit flashing lights with the illumination units of other hard disks.
如申請專利範圍第6項所述的硬碟測試方法,所述獲取步驟透過讀取待測硬碟的設備文檔來識別待測硬碟的數量。The hard disk test method according to claim 6, wherein the obtaining step identifies the number of hard disks to be tested by reading a device file of the hard disk to be tested. 如申請專利範圍第6項所述的硬碟測試方法,所述控制步驟透過I2C匯流排或GPIO線來控制發光單元發出閃爍燈光。The hard disk test method according to claim 6, wherein the controlling step controls the light emitting unit to emit a blinking light through the I2C bus bar or the GPIO line. 如申請專利範圍第6項所述的硬碟測試方法,所述發光單元為指示硬碟與電腦進行資料交互的指示燈。The hard disk test method according to claim 6, wherein the light emitting unit is an indicator light for indicating data interaction between the hard disk and the computer. 如申請專利範圍第6項所述的硬碟測試方法,所述發光單元為硬碟的電源指示燈或指示該硬碟與硬碟背板連接的指示燈。The hard disk test method of claim 6, wherein the light emitting unit is a power indicator of the hard disk or an indicator light indicating that the hard disk is connected to the hard disk backplane.
TW101151293A 2012-12-26 2012-12-28 System and method of testing hard disks TW201426290A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210574281.2A CN103902415A (en) 2012-12-26 2012-12-26 System and method for testing hard discs

Publications (1)

Publication Number Publication Date
TW201426290A true TW201426290A (en) 2014-07-01

Family

ID=50993751

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101151293A TW201426290A (en) 2012-12-26 2012-12-28 System and method of testing hard disks

Country Status (2)

Country Link
CN (1) CN103902415A (en)
TW (1) TW201426290A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572896A (en) * 2018-04-20 2018-09-25 郑州云海信息技术有限公司 A kind of hard disk backboard method for testing pressure, system and device
CN109524054A (en) * 2018-11-16 2019-03-26 郑州云海信息技术有限公司 A kind of more hard disk types automatic positioning test method and device
CN110543396B (en) * 2019-09-06 2021-03-02 深圳市安信达存储技术有限公司 Device and method for testing hard disk by PCIe expansion cluster

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6862695B2 (en) * 2001-03-30 2005-03-01 Giga-Byte Technology Co., Ltd. Method and device for identifying failed devices in computer
KR100498499B1 (en) * 2003-05-15 2005-07-01 삼성전자주식회사 Apparatus for testing hard disk driver
CN100517251C (en) * 2006-08-01 2009-07-22 英业达股份有限公司 Test system and method
US20090083580A1 (en) * 2007-09-20 2009-03-26 Postage Robert B Techniques for Background Testing a Hard Disk Drive
CN101650681B (en) * 2008-08-14 2013-01-09 鸿富锦精密工业(深圳)有限公司 Multiple hard disk LED lamp test system and method
CN102708031B (en) * 2012-05-15 2016-08-31 浪潮电子信息产业股份有限公司 A kind of method of quick location failure memory

Also Published As

Publication number Publication date
CN103902415A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
TWI624758B (en) System for controlling indicator lights and method for controlling light-emitting diode
US9747192B2 (en) Automated operating system installation on multiple drives
CN107076797B (en) Testing semiconductor memory power consumption based on executed access commands
US8443238B2 (en) System and method for testing hard disk ports
CN104516802A (en) Method and system for indicating statuses of different types of hard disks
TWI477956B (en) System and method for detecting power statuses of an electronic device
TWI632462B (en) Switching device and method for detecting i2c bus
US20120110389A1 (en) Method for obtaining storage device state signal by using bmc
TWI567545B (en) Method for detecting locations of abnormal hard disks in cluster storage system
US8751635B2 (en) Monitoring sensors for systems management
TW201342041A (en) Testing system and method
US9542304B1 (en) Automated operating system installation
CN103984613A (en) Method for automatically testing floating point calculation performance of CPU (Central Processing Unit)
TW201426290A (en) System and method of testing hard disks
TW201416854A (en) System and method for adjusting a speed of a cursor of a mouse
TW201307868A (en) System for detecting the burned chips
WO2021056913A1 (en) Fault locating method, apparatus and system based on i2c communication
TWI564722B (en) Black plane and method for detecting serial general purpose input/output signal thereof
US8762696B2 (en) Firmware with a plurality of emulated instances of platform-specific management firmware
TW201516665A (en) System and method for detecting system error of server
TW201705015A (en) Method and system for remote system configuration management and non-transitory computer-readable storage medium
TW201214456A (en) Solid-state disk with automated testing capability and automated testing method of solid-state disk
US8627054B2 (en) Method and apparatus to create single firmware image for multiple server platforms
TW202115569A (en) System for detecting installation state of hard disk
US10216525B1 (en) Virtual disk carousel