CN102831086A - Method and device for managing hard disk system - Google Patents
Method and device for managing hard disk system Download PDFInfo
- Publication number
- CN102831086A CN102831086A CN2012102600010A CN201210260001A CN102831086A CN 102831086 A CN102831086 A CN 102831086A CN 2012102600010 A CN2012102600010 A CN 2012102600010A CN 201210260001 A CN201210260001 A CN 201210260001A CN 102831086 A CN102831086 A CN 102831086A
- Authority
- CN
- China
- Prior art keywords
- starting outfit
- type
- starting
- target device
- pattern
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for managing a hard disk system and relates to a starting device and a target device. The method comprises the following steps: sending a synchronizing signal corresponding to the type of the starting device within the corresponding time determined by a bus if the target device judges that the starting device is connected in the hard disk system within the determined time; and identifying the type of the starting device. According to the method for managing the hard disk system, a starting device indentifying device is additionally arranged on the target device for judging whether the communication bus sends out the synchronizing signal within the maximum time by setting the status of the hard disk based on an output bit stream mode of the communication bus between the starting device and the target device so as to acquire the quantity of hard disks supported by the target device, thereby achieving the requirements of managing different target devices in a compatible manner.
Description
Technical field
The present invention relates to the device management method in the field of computer technology, relate in particular to management method and the device of realization different manufacturers SAS (Serial Attached Small computer system interface) hard-disk system.
Background technology
In computer realm; Usually can on the SAS hard disk backboard, adopt serial general IO bus line (SGPIO, Serial General Purpose Input/Output) signal and realize the location of hard disk position, the functions such as indication of disk state through the SFF-8485 agreement.The SGPIO signal is used for starting outfit (Raid card; Redundant Array of Independent Disks or HBA card; Host Bus Adaptor) and the communication between the target device hard disk backboard, as shown in Figure 1, target device SAS hard disk backboard becomes the output signal with the SGPIO conversion of signals; Be used for control back of the body onboard led and show disk state, totally 4 status signal: sclock, sload, sdatout, sdatain.
Because the standard of the Raid card of different manufacturers is different; The Raid card of the producer that has is supported 4 hard disks; The Raid of the producer card that has is then supported 8 hard disks; Cause the Raid card user need develop different firmware programs to the equipment of different manufacturers, thereby poor compatibility, this brings great inconvenience can for the designer's of software and hardware design.
For above problem; Owing to can not change the Raid card of manufacturer; Require the standard of the compatible how tame manufacturer of necessary ability simultaneously again; Be convenient to operations such as device upgrade, therefore a kind of method that realizes the hard-disk system management need be provided, can start and use hard disk backboard according to the starting outfit of automatic identification hard disk backboard.
Summary of the invention
Technical matters to be solved by this invention provides a kind of management method and device of realizing hard-disk system, can start and use hard disk backboard according to the starting outfit of automatic identification.
In order to solve the problems of the technologies described above, the invention provides a kind of method that realizes the hard-disk system management, relate to starting outfit and target device, this method comprises:
Target device if judge that starting outfit is connected in the hard-disk system, then according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, is discerned the starting outfit type in official hour.
Further, this method also comprises:
Target device is if judge that in official hour starting outfit is not connected in the hard-disk system, and the starting outfit of then reporting to the police connects anomalous event.
Further, starting outfit is the Raid card or is the host bus adaptor card that target device is a hard disk backboard; Target device is according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, and identification starting outfit type specifically comprises:
Target device supposes that said starting outfit is for supporting first pattern of 4 hard disks; Send the synchronizing signal of first pattern if judge the general IO bus line of this serial in time in relevant provisions, then export and show that starting outfit is first pattern of supporting 4 hard disks.
Further, target device is according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, and identification starting outfit type also specifically comprises:
Target device does not send the synchronizing signal of first pattern if judge the general IO bus line of serial in the time in relevant provisions; Suppose that then starting outfit is second pattern of supporting 8 hard disks; Send the synchronizing signal of second pattern if judge the general IO bus line of this serial in time in relevant provisions, then export and show that starting outfit is second pattern of supporting 8 hard disks.
Further, target device is according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, and identification starting outfit type also specifically comprises:
Target device does not send the synchronizing signal of second pattern, the incident of the starting outfit operation irregularity of then reporting to the police if judge the general IO bus line of said serial in the time in relevant provisions.
In order to solve the problems of the technologies described above, the invention provides a kind of starting outfit recognition device of method as previously mentioned of realizing, comprise interconnective starting outfit connection judgment module and starting outfit type identification module, wherein:
Starting outfit connection judgment module is used in official hour if judge that starting outfit is connected to hard-disk system, then to the decision instruction of starting outfit type judging module output device type;
Starting outfit type identification module is used for the device type decision instruction according to input, to synchronizing signal identification and the output starting outfit type of in the corresponding time of bus regulation, sending corresponding starting outfit type.
Further, this device also comprises the display alarm module that is connected with starting outfit connection judgment module, wherein:
Starting outfit connection judgment module then connects exceptional instructions to display alarm module output starting outfit if judge that in official hour starting outfit is not connected in the hard-disk system;
The display alarm module is used for connecting exceptional instructions according to the starting outfit of input, and the warning starting outfit connects unusual incident.
Further, the display alarm module also is connected with said starting outfit type identification module, wherein:
Starting outfit type identification module is exported to the display alarm module with the starting outfit type of identification, and wherein, the starting outfit type comprises first pattern of supporting 4 hard disks and second pattern of supporting 8 hard disks;
The display alarm module shows according to the starting outfit type of input.
Further,
Starting outfit type identification module is not sent the synchronizing signal of first pattern or second pattern if judge the general IO bus line of serial in the time in relevant provisions, then to the instruction of display alarm module output starting outfit operation irregularity;
The display alarm module is according to the incident of the starting outfit operation irregularity instruction warning starting outfit operation irregularity of input.
Further, starting outfit comprises Raid card or host bus adaptor card, and target device is a hard disk backboard.
The present invention is through adding a starting outfit recognition device on target device; By this device based on the carry-out bit stream mode of communication bus (such as SGPIO) between starting outfit and target device through disk state is set; Judge in maximum duration whether this communication bus sends synchronizing signal; And then draw the number that target device (Raid card) is supported hard disk, thereby reach the requirement of compatible management different target equipment.
Description of drawings
Fig. 1 crosses the synoptic diagram that the SGPIO signal is connected for hard disk backboard in the existing hard-disk system with the Raid cartoon;
Fig. 2 is the structured flowchart that operates in the starting outfit recognition device on the hard disk backboard of the present invention;
Fig. 3 is the process flow diagram of the method embodiment of realization hard-disk system management of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment technical scheme of the present invention is at length set forth.Should be appreciated that following listed examples only is used for explanation and explains the present invention, and does not constitute the restriction to technical scheme of the present invention.
The method embodiment of realization hard-disk system management of the present invention relates to starting outfit and target device, and its flow process is as shown in Figure 3, comprises the steps:
110: judge whether starting outfit (Raid card) connects, and is then to carry out next step in official hour, otherwise process ends;
The Raid card is a kind of as starting outfit in this embodiment, and starting outfit also can be the HBA card.
120: the Raid card is set for supporting 4 hard disk modes;
130: whether the SGPIO bus of judging the Raid card sends the corresponding synchronous signal at the appointed time, is to explain that then this Raid card really is the card of 4 hard disk modes of support of setting, process ends; Otherwise execution next step;
According to the SFF-8485 agreement; According to the slowest clock signal Sclock under 32Hz; The maximum duration that synchronous 4 hard disks need is 12bits*3frames*32Hz=1.125seconds; Do not send synchronizing signal if exceed this time, explain that this Raid card is not a card of supporting 4 hard disk modes, detects according to being provided with of 8 hard disk modes again.
Certainly, also can be between some other starting outfits and the target device through for example GPIO bus or other universal serial bus communicate.Then target device judges that correspondingly whether this bus sends the corresponding synchronous signal in official hour, confirm the type of starting outfit in view of the above.
140: the Raid card is set for supporting 8 hard disk modes;
150: whether the SGPIO bus of judging the Raid card sends the corresponding synchronous signal at the appointed time, is to explain that then this Raid card really is the card of 8 hard disk modes of support of setting, process ends; Otherwise execution next step;
According to the SFF-8485 agreement; Same according to the slowest clock signal Sclock under 32Hz; The maximum duration that synchronous 8 hard disks need is 24bits*3frames*32Hz=2.25seconds; Do not send synchronizing signal if exceed this time, this Raid card is described or is not the card of supporting 8 hard disk modes, or work undesired (normally inserting).
160: send Raid card operation irregularity alerting signal, process ends.
In said method embodiment,
The implementation, also comprise step from step 110 to step 160:
Judge that hard disk backboard is detected and whether arrive overtime reset time; Be then to send control hard disk indicator signal (Sclock, Sload and SdataOut) according to the detecting result; If the result is normal in detecting, normally proceed the corresponding steps of step 110 in step 160 flow process, otherwise process ends.
According to the SFF-8485 agreement, target device SAS backboard detecting Sclock, Sload, be 64ms the overtime reset time of SdataOut.Therefore, whenever the timing that 1ms takes place is interrupted, then can judge whether 64ms arrives overtime reset time through counting.
In said method embodiment, step 130 judges through the observation of following state whether the SGPIO bus of Raid card sends the corresponding synchronous signal at the appointed time:
Adopt two SGPIO lines of Raid card connection of supporting 4 hard disk modes to hard disk backboard; Through the PLD on the hard disk backboard SFF-8485 agreement is resolved; Check the led state pilot lamp; And the system software that utilizes Raid card collocation checks the state of each hard disk, and two observationss relatively, and whether the SGPIO bus of judging the Raid card thus sends the corresponding synchronous signal at the appointed time (is that Raid card system software shows that hard disk exists; And be shown as state of activation, the Act pilot lamp of LED is with the frequency scintillation of 4HZ simultaneously).
Adopt any SGPIO line of Raid card connection of supporting 4 hard disk modes to hard disk backboard; Through the PLD on the hard disk backboard SFF-8485 agreement is resolved; Check the led state pilot lamp; And the system software that utilizes Raid card collocation checks the state of each hard disk, and two observationss relatively, judges thus whether the SGPIO bus of Raid card sends the corresponding synchronous signal at the appointed time.
Adopt the Raid card of supporting 4 hard disk modes; Its two SGPIO lines all are free of attachment to hard disk backboard; Through the PLD on the hard disk backboard SFF-8485 agreement is resolved; Check the led state pilot lamp, and utilize the system software of Raid card collocation to check the state of each hard disk, and compare two observationss.
In said method embodiment, step 150 judges through the observation of following state whether the SGPIO bus of Raid card sends the corresponding synchronous signal at the appointed time:
Adopt two SGPIO lines of Raid card connection of supporting 8 hard disk modes to hard disk backboard; Through the PLD on the hard disk backboard SFF-8485 agreement is resolved; Check the led state pilot lamp; And the system software that utilizes the collocation of Raid card is checked the state of each hard disk, relatively two observationss.
Adopt any SGPIO line of Raid card connection of supporting 8 hard disk modes to hard disk backboard; Through the PLD on the hard disk backboard SFF-8485 agreement is resolved; Check the led state pilot lamp; And the system software that utilizes the collocation of Raid card is checked the state of each hard disk, relatively two observationss.
Adopt the Raid card of supporting 8 hard disk modes; Its two SGPIO lines all are free of attachment to hard disk backboard; Through the PLD on the hard disk backboard SFF-8485 agreement is resolved; Check the led state pilot lamp, and the system software that utilizes the Raid card to arrange in pairs or groups is checked the state of each hard disk, two observationss of comparison.
The present invention provides general feasible method through SGPIO bus carry-out bit stream mode for detecting starting outfit Raid card automatically through the observation of above six kinds of states, has strengthened the compatibility of system thus, thereby has realized effective management of hard-disk system.
The present invention is directed to said method embodiment; A kind of starting outfit recognition device of realizing the hard-disk system management also correspondingly is provided; Operate on the target device and (for example carry out the software of this device) by the chip on the hard disk backboard; Its structure is as shown in Figure 2, and this device comprises interconnective starting outfit connection judgment module 210 and starting outfit type identification module 220, wherein:
Starting outfit connection judgment module 210 is used in official hour if judge that starting outfit is connected to hard-disk system, then to the 220 output device type decision instructions of starting outfit type judging module;
Starting outfit type identification module 220 is used for the device type decision instruction according to input, to synchronizing signal identification and the output starting outfit type of in the corresponding time of bus regulation, sending corresponding starting outfit type.
In said apparatus embodiment, also comprise the display alarm module 230 that is connected with starting outfit connection judgment module 210, wherein:
Starting outfit connection judgment module 210 then connects exceptional instructions to display alarm module 230 output starting outfits if judge that in official hour starting outfit is not connected in the hard-disk system;
In said apparatus embodiment, display alarm module 230 also is connected with starting outfit type identification module 220, wherein:
Starting outfit type identification module 220 is exported to display alarm module 230 with the starting outfit type of identification, and wherein the starting outfit type comprises first pattern of supporting 4 hard disks and second pattern of supporting 8 hard disks;
In said apparatus embodiment, starting outfit comprises Raid card or HBA card, and target device is a hard disk backboard;
Starting outfit type identification module 220 is not sent the synchronizing signal of first pattern or second pattern if judge the SGPIO bus in the time in relevant provisions, then to the 230 output starting outfit operation irregularity instructions of display alarm module;
Claims (10)
1. a method that realizes the hard-disk system management relates to starting outfit and target device, it is characterized in that this method comprises:
Target device if judge that starting outfit is connected in the hard-disk system, then according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, is discerned the starting outfit type in official hour.
2. according to the described method of claim 1, it is characterized in that, also comprise:
Said target device is if judge that in official hour said starting outfit is not connected in the hard-disk system, and the starting outfit of then reporting to the police connects anomalous event.
3. according to the described method of claim 1, it is characterized in that starting outfit is the Raid card or is the host bus adaptor card that target device is a hard disk backboard; Target device is according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, and identification starting outfit type specifically comprises:
Said target device supposes that said starting outfit is for supporting first pattern of 4 hard disks; Send the synchronizing signal of first pattern if judge the general IO bus line of this serial in time in relevant provisions, then export and show that starting outfit is first pattern of supporting 4 hard disks.
4. according to the described method of claim 3, it is characterized in that target device is according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, identification starting outfit type also specifically comprises:
Said target device does not send the synchronizing signal of first pattern if judge the general IO bus line of said serial in the corresponding stipulated time; Suppose that then said starting outfit is for supporting second pattern of 8 hard disks; Send the synchronizing signal of second pattern if judge the general IO bus line of this serial in time in relevant provisions, then export and show that starting outfit is second pattern of 8 hard disks of said support.
5. according to the described method of claim 4, it is characterized in that target device is according to the synchronizing signal of in the corresponding time of bus regulation, sending corresponding starting outfit type, identification starting outfit type also specifically comprises:
Said target device does not send the synchronizing signal of second pattern, the incident of the starting outfit operation irregularity of then reporting to the police if judge the general IO bus line of said serial in the corresponding stipulated time.
6. realize the starting outfit recognition device of method according to claim 1 for one kind, comprise interconnective starting outfit connection judgment module and starting outfit type identification module, wherein:
Starting outfit connection judgment module is used in official hour if judge that starting outfit is connected to hard-disk system, then to the decision instruction of starting outfit type judging module output device type;
Starting outfit type identification module is used for the said device type decision instruction according to input, to synchronizing signal identification and the output starting outfit type of in the corresponding time of bus regulation, sending corresponding starting outfit type.
7. according to the described device of claim 6, it is characterized in that, also comprise the display alarm module that is connected with said starting outfit connection judgment module, wherein:
Said starting outfit connection judgment module then connects exceptional instructions to display alarm module output starting outfit if judge that in said official hour said starting outfit is not connected in the hard-disk system;
The display alarm module is used for connecting exceptional instructions according to the said starting outfit of input, and the said starting outfit of reporting to the police connects unusual incident.
8. according to the described device of claim 7, it is characterized in that said display alarm module also is connected with said starting outfit type identification module, wherein:
The said starting outfit type that said starting outfit type identification module will be discerned is exported to the display alarm module, and wherein, said starting outfit type comprises first pattern of supporting 4 hard disks and second pattern of supporting 8 hard disks;
Said display alarm module shows according to the said starting outfit type of input.
9. according to the described device of claim 8, it is characterized in that,
Said starting outfit type identification module is not sent the synchronizing signal of first pattern or second pattern if judge the general IO bus line of said serial in the corresponding stipulated time, then to the instruction of said display alarm module output starting outfit operation irregularity;
Said display alarm module is according to the incident of the said starting outfit operation irregularity of starting outfit operation irregularity instruction warning of input.
10. according to each described device of claim 6 to 9, it is characterized in that said starting outfit comprises Raid card or host bus adaptor card, said target device is a hard disk backboard.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210260001.0A CN102831086B (en) | 2012-07-25 | 2012-07-25 | Method and device for managing hard disk system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210260001.0A CN102831086B (en) | 2012-07-25 | 2012-07-25 | Method and device for managing hard disk system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102831086A true CN102831086A (en) | 2012-12-19 |
CN102831086B CN102831086B (en) | 2015-06-24 |
Family
ID=47334231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210260001.0A Active CN102831086B (en) | 2012-07-25 | 2012-07-25 | Method and device for managing hard disk system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102831086B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110895502A (en) * | 2018-12-24 | 2020-03-20 | 研祥智能科技股份有限公司 | Hard disk state indicating device control method and device, electronic equipment and storage medium |
CN113391689A (en) * | 2021-05-20 | 2021-09-14 | 浙江大华技术股份有限公司 | Hard disk electrifying method and device, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5875457A (en) * | 1996-10-08 | 1999-02-23 | Mylex Corporation | Fault-tolerant preservation of data integrity during dynamic raid set expansion |
US20050076260A1 (en) * | 2003-10-07 | 2005-04-07 | Ching-Hai Hung | Raid consistency initialization method |
CN101359309A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Status indication apparatus for hard disc of serial connection small computer system interface and method |
CN101408833A (en) * | 2007-10-10 | 2009-04-15 | 英业达股份有限公司 | Method for initializing synchronous course omitting RAID1 equipment |
CN101996128A (en) * | 2009-08-17 | 2011-03-30 | 英业达股份有限公司 | Hard disk state indicator lamp control system |
CN102541473A (en) * | 2011-12-31 | 2012-07-04 | 曙光信息产业股份有限公司 | Method for setting storage equipment of blade server and blade server by utilizing method |
-
2012
- 2012-07-25 CN CN201210260001.0A patent/CN102831086B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5875457A (en) * | 1996-10-08 | 1999-02-23 | Mylex Corporation | Fault-tolerant preservation of data integrity during dynamic raid set expansion |
US20050076260A1 (en) * | 2003-10-07 | 2005-04-07 | Ching-Hai Hung | Raid consistency initialization method |
CN101359309A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Status indication apparatus for hard disc of serial connection small computer system interface and method |
CN101408833A (en) * | 2007-10-10 | 2009-04-15 | 英业达股份有限公司 | Method for initializing synchronous course omitting RAID1 equipment |
CN101996128A (en) * | 2009-08-17 | 2011-03-30 | 英业达股份有限公司 | Hard disk state indicator lamp control system |
CN102541473A (en) * | 2011-12-31 | 2012-07-04 | 曙光信息产业股份有限公司 | Method for setting storage equipment of blade server and blade server by utilizing method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110895502A (en) * | 2018-12-24 | 2020-03-20 | 研祥智能科技股份有限公司 | Hard disk state indicating device control method and device, electronic equipment and storage medium |
CN110895502B (en) * | 2018-12-24 | 2024-02-20 | 深圳市亿万克数据设备科技有限公司 | Control method and device for hard disk state indicating device, electronic equipment and storage medium |
CN113391689A (en) * | 2021-05-20 | 2021-09-14 | 浙江大华技术股份有限公司 | Hard disk electrifying method and device, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102831086B (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101996128B (en) | Hard disk state indicator lamp control system | |
US8830611B1 (en) | Working states of hard disks indicating apparatus | |
US8832347B2 (en) | Automatic detection device, system and method for inter-integrated circuit and serial general purpose input/output | |
US8996775B2 (en) | Backplane controller for managing serial interface configuration based on detected activity | |
US7921233B2 (en) | Signal converter for an all-in-one USB connector that includes USB 2.0, USB 3.0 and eSATA | |
US9164861B2 (en) | Drive mapping using a plurality of connected enclosure management controllers | |
US7715450B2 (en) | Sideband bus setting system and method thereof | |
US20160147628A1 (en) | Detecting and sparing of optical pcie cable channel attached io drawer | |
US20120133520A1 (en) | Computer chassis system and hard disk status display method thereof | |
US10311003B2 (en) | Detection and identifcation of supported connection protocols in a multi-purpose storage bay | |
US10013369B2 (en) | Server system with BMC having hard disk drive monitoring function | |
CN104516802A (en) | Method and system for indicating statuses of different types of hard disks | |
CN109164884B (en) | Design method of hard disk backboard, hard disk backboard and server | |
US20110191573A1 (en) | Multi-motherboard server system | |
CN105529045A (en) | Lamp signal control system for nonvolatile memory solid state disk | |
US20140344482A1 (en) | Electronic device and method for monitoring temperature of hard disk drives | |
CN102331959A (en) | Server system | |
CN104375923A (en) | Hard disk drive (HDD) running state detection system | |
CN102236378A (en) | Method of monitoring connection status of an electronic device and related electronic device | |
CN108595356B (en) | Hard disk backboard compatible with RSSD hard disk and NVMe hard disk and method | |
US20130304999A1 (en) | Electronic device and serial data communication method | |
CN101620580A (en) | Computer system and control method of the same | |
CN102831086B (en) | Method and device for managing hard disk system | |
CN104090833B (en) | Server and signal resolver thereof | |
CN105740116B (en) | The detection method of hard disk backboard and its serial universal input output signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |