CN109032900B - Control method and system compatible with multiple types of hard disk indicator lamps - Google Patents

Control method and system compatible with multiple types of hard disk indicator lamps Download PDF

Info

Publication number
CN109032900B
CN109032900B CN201810620951.7A CN201810620951A CN109032900B CN 109032900 B CN109032900 B CN 109032900B CN 201810620951 A CN201810620951 A CN 201810620951A CN 109032900 B CN109032900 B CN 109032900B
Authority
CN
China
Prior art keywords
hard disk
signal
indicator lamp
state
controlled
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.)
Active
Application number
CN201810620951.7A
Other languages
Chinese (zh)
Other versions
CN109032900A (en
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810620951.7A priority Critical patent/CN109032900B/en
Publication of CN109032900A publication Critical patent/CN109032900A/en
Application granted granted Critical
Publication of CN109032900B publication Critical patent/CN109032900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a control method and a control system compatible with various types of hard disk indicating lamps, and relates to the field of hard disk indicating lamp control. The method comprises the following steps: the server determines an accessed hard disk according to the in-place signal and the type identification signal sent by the hard disk; the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the accessed hard disk and controls the Locate/Fault indicator lamp accessed to the hard disk; the server controls the Active indicator light accessed into the hard disk according to the in-place signal and the read-write activity signal sent by the accessed hard disk. The invention can simply, reliably and uniformly control and manage different types of hard disks, and is very suitable for popularization.

Description

Control method and system compatible with multiple types of hard disk indicator lamps
Technical Field
The invention relates to the field of hard disk indicating lamp control, in particular to a control method and a control system compatible with various types of hard disk indicating lamps.
Background
With the development of communication technology, the storage performance requirement of a server is higher and higher, and the hard disk speed is often the performance bottleneck of the whole server system; with the evolution of solid state disk Technology, Non-Volatile Memory express (solid state disk based on the specification of Non-Volatile Memory host controller interface) NVME hard disks based on PCIE bus (peripheral component interconnect express, high speed Serial computer expansion bus) are becoming the mainstream to replace SATA/SAS hard disks (Serial Advanced Technology Attachment/Serial Attached SCSI, Serial hard disk/server hard disk). The transmission bandwidth of the NVME hard disk can reach more than 5 times of that of a SATA/SAS hard disk, and the NVME hard disk has more advantages in access delay.
Although the NVME hard disk has high performance, the SAS/SATA hard disk (the SAS hard disk and the SATA hard disk) has larger capacity and lower cost; therefore, in an actual application scenario, the server storage backplane is generally required to support both NVME hard disks and SAS/SATA hard disks: the NVME hard disk is used as a high-speed Cache to store hot spot data, and the SAS/SATA disk stores cold data which is not frequently called. Therefore, the perfect combination of high performance and large capacity can be realized, and the optimized data storage effect is achieved.
Generally, each hard disk has two status indicators, one is an Active indicator (read/write Active indicator) controlled by a signal sent by an Active pin of the hard disk itself, and the other is a Locate/Fault indicator (location status indicator and Fault status indicator) decoded by an indicator protocol. Taking NVME hard disk and SAS/SATA hard disk as examples, the traditional server storage back plate has the following defects when controlling different types of indicator lamps:
(1) the location/Fault indicator lamp protocols of the NVME hard disk and the SAS/SATA hard disk are different, the NVME hard disk is a VPP (Virtual Pin Port) protocol, and the SAS/SATA hard disk is an SGPIO (Serial General Purpose Input/Output) protocol. The traditional server storage back plate only supports the indicator light protocol, namely only an NVME hard disk or an SAS/SATA hard disk can be decoded, so that the location/Fault indicator light of the hard disk of the indicator light protocol which is not supported by the server cannot be controlled; for example: decoding a Locate/Fault indicator lamp of the SAS/SATA hard disk through an SGPIO protocol, and not decoding the Locate/Fault indicator lamp of the NVME hard disk; this can result in the loss of control of the Locate/Fault indicator light of the NVME hard disk.
(2) The Active pins of the Active indicator lamps of the NVME hard disk and the SAS/SATA hard disk are different in effective level, the Active pins of the NVME/SAS hard disk are effective in low level, and the Active pins of the SATA hard disk are effective in high level. When the Active indicator light is controlled by the traditional server storage back plate, only the Active indicator light can be controlled by designing a high level or a low level, and the Active indicator light with the level different from that of the design can not be controlled.
For example, the designed level is a low level, and at this time, the Active indicator light of the effective NVME/SAS hard disk of the low level can be normally controlled, so that whether the hard disk is in place or not can be known through the Active indicator light. However, when the SATA hard disk with high level being effective is in place and there is no read/write activity, the Active indicator light is turned off, which is the same as the state where the hard disk is not inserted (the Active indicator light is normally on in the in-place state), so that it is impossible to determine whether the SATA hard disk is in place.
Therefore, the traditional server stores an Active indicator light and a Locate/Fault indicator light which can only control one type of hard disk, and the requirement of the server for being compatible with different types of hard disks cannot be met.
Disclosure of Invention
Aiming at the defects in the prior art, the invention solves the technical problems that: how to control Active indicator lamps and Locate/Fault indicator lamps of different types of hard disks.
In order to achieve the above purpose, the control method of the hard disk indicator lamp compatible with various types provided by the invention comprises the following steps:
s1: the server determines the accessed hard disk according to the in-place signal and the type identification signal sent by the hard disk, and then the step goes to S2;
s2: the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the accessed hard disk and controls the Locate/Fault indicator lamp accessed to the hard disk; the server controls the Active indicator light accessed into the hard disk according to the in-place signal and the read-write activity signal sent by the accessed hard disk.
On the basis of the technical scheme, the accessed hard disk in the S1 is one of an NVME hard disk, an SAS hard disk and an SATA hard disk, the NVME hard disk and the SAS hard disk are different in type, and the SAS hard disk and the SATA hard disk are the same in type; the flow of S1 is: when the server monitors that the in-place signal and the type identification signal are both low levels, determining the accessed hard disk as an NVME hard disk; and when the server monitors that the in-place signal is at a low level and the type identification signal is at a high level, determining that the accessed hard disk is an SAS hard disk or an SATA hard disk.
On the basis of the above technical solution, the server in S2 selects the Locate/Fault indicator protocol decoding program corresponding to the accessed hard disk, and the process of controlling the Locate/Fault indicator protocol decoding program accessed to the hard disk includes: when the access hard disk is an SAS hard disk or an SATA hard disk, the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the SAS hard disk or the SATA hard disk, and when the decoding program receives a signal sent by a hard disk controller, the 1 st bit and the 2 nd bit in the signal are determined:
when the 1 st data in the signal represents high level and the 2 nd data represents low level, the state of the Locate indicator lamp is controlled to be normally on, and the state of the Fault indicator lamp is controlled to be off;
when the 1 st data in the signal represents low level and the 2 nd data represents high level, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to be normally on;
when the 1 st and 2 nd data in the signal represent high level, the state of the Locate/Fault indicator lamp is controlled to be normally on;
when the conversion frequency of the 2 nd bit data in the signal is 1Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 1 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 2Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 2 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 4Hz, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to flash at the frequency of 4 Hz.
On the basis of the above technical solution, the server in S2 selects the Locate/Fault indicator protocol decoding program corresponding to the accessed hard disk, and the process of controlling the Locate/Fault indicator protocol decoding program accessed to the hard disk includes: when the accessed hard disk is an NVME hard disk, the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the NVME hard disk, and when the decoding program receives a signal sent by a hard disk controller, the state of the Fault indicator lamp is controlled to be normally on when the 0 th data in the signal represents a hard disk Fault, and the state of the Locate indicator lamp is controlled to be normally on when the 1 st data in the signal represents hard disk positioning.
On the basis of the above technical solution, the process of controlling the Active indicator light accessed to the hard disk by the server in S2 according to the in-place signal and the read-write activity signal sent by the accessed hard disk includes: when the on-site signal is at low level and the reading and writing activity signal is stable, the state of the Active indicator light is controlled to be normally on; when the on-bit signal is at low level and the read-write Active signal is unstable, the state of the Active indicator light is controlled to flash at the frequency of 4 Hz.
The invention provides a control system compatible with various types of hard disk indicator lamps, which comprises a CPLD; the CPLD comprises a gate module and hard disk indicator lamp decoding modules corresponding to each hard disk controller, wherein the gate module and all the hard disk indicator lamp decoding modules are virtual software modules;
the gate module is to: determining an accessed hard disk according to the in-place signal and the type identification signal sent by the hard disk, and sending hard disk decoding information to a hard disk indicator lamp decoding module corresponding to the accessed hard disk;
the CPLD is used for: controlling an Active indicator light accessed to the hard disk according to an in-place signal and a read-write activity signal sent by the accessed hard disk;
the hard disk indicator lamp decoding module is used for: and after the decoding information of the hard disk is received, controlling a Locate/Fault indicator lamp accessed to the hard disk.
On the basis of the technical scheme, the hard disks of the system are NVME hard disks, SAS hard disks and SATA hard disks, the NVME hard disks are different from the SAS hard disks in type, and the SAS hard disks are the same as the SATA hard disks in type; the hard disk indicator lamp decoding module is an NVME indicator lamp decoding module corresponding to the NVME hard disk and an SAS/SATA indicator lamp decoding module corresponding to the SAS/SATA hard disk; the work flow of the gating module comprises the following steps: when the in-place signal and the type identification signal are both low levels, determining that the accessed hard disk is an NVME hard disk; and when the in-place signal is monitored to be in a low level and the type identification signal is monitored to be in a high level, determining that the accessed hard disk is an SAS hard disk or an SATA hard disk.
On the basis of the technical scheme, the SAS/SATA indicator lamp decoding module is used for: after receiving the hard disk decoding information, receiving a signal sent by a hard disk controller, and determining the 1 st bit and the 2 nd bit in the signal:
when the 1 st data in the signal represents high level and the 2 nd data represents low level, the state of the Locate indicator lamp is controlled to be normally on, and the state of the Fault indicator lamp is controlled to be off;
when the 1 st data in the signal represents low level and the 2 nd data represents high level, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to be normally on;
when the 1 st and 2 nd data in the signal represent high level, the state of the Locate/Fault indicator lamp is controlled to be normally on;
when the conversion frequency of the 2 nd bit data in the signal is 1Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 1 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 2Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 2 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 4Hz, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to flash at the frequency of 4 Hz.
On the basis of the above technical solution, the NVME indicator lamp decoding module is configured to: after receiving the hard disk decoding information, receiving a signal sent by a hard disk controller, controlling the state of a Fault indicator lamp to be normally on when the 0 th bit data in the received signal represents the hard disk Fault, and controlling the state of a Locate indicator lamp to be normally on when the 1 st bit data in the received signal represents the hard disk positioning.
On the basis of the above technical solution, the work flow of the CPLD includes: when the on-site signal is at low level and the reading and writing activity signal is stable, the state of the Active indicator light is controlled to be normally on; when the on-bit signal is at low level and the read-write Active signal is unstable, the state of the Active indicator light is controlled to flash at the frequency of 4 Hz.
Compared with the prior art, the invention has the advantages that:
(1) the invention can determine the type of the accessed hard disk by sending the in-place signal and the type identification signal through the hard disk, and selects the corresponding decoding program to control the Locate/Fault indicator lamp accessed to the hard disk; the Active indicator light accessed to the hard disk can be controlled through the in-place signal and the read-write activity signal sent by the hard disk. Therefore, the invention automatically matches the corresponding decoding protocol through the discrimination mechanism of different types of hard disks, thereby realizing simple and reliable unified control and management of different types of hard disks.
(2) As can be seen from the system of the invention, the invention only needs to use CPLD, the decoding module required by the Locate/Fault indicator light and the gate module of the decoding module of the selective indicator light on the hardware, which are simulation software on the CPLD; therefore, the invention has fewer devices and lower cost, and is very suitable for popularization
Drawings
Fig. 1 is a connection block diagram of a hard disk indicator light control system compatible with multiple types in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
The control method of the hard disk indicating lamp compatible with various types in the embodiment of the invention comprises the following steps:
s1: the server determines the accessed hard disk according to the on-site signal and the type identification signal sent by the hard disk (when the hard disk works, the on-site signal, the type identification signal and the read-write activity signal are sent to the server), and the step goes to S2.
S2: the server selects a Locate/Fault indicator protocol decoding program (preset by the program) corresponding to the accessed hard disk, and controls a Locate/Fault indicator (a positioning state indicator and a Fault state indicator) accessed to the hard disk; the server controls the Active indicator light accessed into the hard disk according to the in-place signal and the read-write activity signal sent by the accessed hard disk.
The control method and system for the hard disk indicator lamp compatible with various types are described in detail by six embodiments.
The first embodiment is as follows:
the accessed hard disk in the S1 is one of an NVME hard disk, an SAS hard disk and an SATA hard disk, the types of the NVME hard disk and the SAS hard disk are different, and the types of the SAS hard disk and the SATA hard disk are the same. On this basis, the flow of S1 is: when the server monitors that the in-place signal and the type identification signal are both low levels, determining the accessed hard disk as an NVME hard disk; and when the server monitors that the in-place signal is at a low level and the type identification signal is at a high level, determining that the accessed hard disk is an SAS hard disk or an SATA hard disk. Because the SAS hard disk and the SATA hard disk are of the same type, on the basis that the control flow of the indicator lamps of the hard disks of the same type is the same, the SAS hard disk or the SATA hard disk does not need to be distinguished specifically; and when the server monitors that the in-place signal is at a high level, determining that no hard disk is accessed.
Example two:
on the basis of the first embodiment, in S2, the server selects a Locate/Fault indicator protocol decoding program corresponding to the accessed hard disk, and the process of controlling the Locate/Fault indicator protocol decoding program accessed to the hard disk includes: when the accessed hard disk is an SAS hard disk or an SATA hard disk, the server selects a Locate/Fault indicator protocol decoding program corresponding to the SAS hard disk or the SATA hard disk, and the program refers to the rule in the table 1 to control the Locate/Fault indicator.
TABLE 1 location/Fault indicator decoding rules for SAS hard disks or SATA hard disks
Figure BDA0001697933060000081
Figure BDA0001697933060000091
Referring to table 1, the decoding program controls the Locate/Fault indicator according to a signal sent by a hard disk controller (1 hard disk controller controls all hard disks of the same type, and all the hard disks send data signals to the hard disk controller), specifically:
when the signal sent by the hard disk controller is not received, the state of the Locate/Fault indicator lamp is controlled to be closed (corresponding to the second row of the table 1);
when a signal transmitted by a hard disk controller is received (the signal is continuously transmitted), determining the 0 th, 1 st and 2 nd data in the signal:
when the 0 th bit data in the signal is stable 0 (stable 0 represents low level, and the stable judgment standard is that the data does not change within 1 second), the signal is proved to be that the hard disk is in place, no read-write activity exists, and the signal is irrelevant to the Locate/Fault indicator light, and at this time, the state of the Locate/Fault indicator light is controlled to be closed no matter what the 1 st and 2 nd bit data exist (corresponding to the third row of the table 1);
when the 0 th bit data in the signal is stable 1 (stable 1 represents high level) or the conversion frequency is 4Hz, the signal is proved to be that the hard disk is in place and has read-write activity, and the signal is not related to the Locate/Fault indicator light, and the state of the Locate/Fault indicator light is controlled to be closed no matter the 1 st and 2 nd bit data (corresponding to the fourth row of the table 1);
when the 1 st bit data in the signal is stable 1 and the 2 nd bit data in the signal is stable 0, the signal is proved to be a hard disk positioning signal, and at this time, the state of a Locate indicator lamp is controlled to be normally on and the state of a Fault indicator lamp is controlled to be off no matter what the 0 th bit data is;
when the 1 st bit data in the signal is stable 0 and the 2 nd bit data is stable 1, the signal is proved to be a hard disk Fault signal, and at this time, the state of the Locate indicator lamp is controlled to be off and the state of the Fault indicator lamp is controlled to be normally on no matter what the 0 th bit data is;
when the 1 st and 2 nd bit data in the signal are both stable 1s, the signal is proved to be a hard disk reconstruction signal, and the state of the Locate/Fault indicator lamp is controlled to be normally on no matter what the 0 th bit data is (corresponding to the seventh row of the table 1);
when the conversion frequency of the 2 nd bit data in the signal is 1Hz, the signal is proved to be a hard disk Fault reconstruction signal, at the moment, the state of a Locate indicator lamp is controlled to be closed no matter what the 0 th bit data and the 1 st bit data are, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 1Hz (corresponding to the eighth row of the table 1);
when the conversion frequency of the 2 nd bit data in the signal is 2Hz, the signal is proved to be a hard disk Fault early warning signal, at the moment, the state of a Locate indicator lamp is controlled to be closed no matter what the 0 th bit data and the 1 st bit data are, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 2Hz (corresponding to the ninth row of the table 1);
when the conversion frequency of the 2 nd bit data in the signal is 4Hz, the signal is proved to be a hard disk hot backup signal, at this time, the state of the Locate indicator lamp is controlled to be off no matter what the 0 th bit data and the 1 st bit data are, and the state of the Fault indicator lamp is controlled to flash at the frequency of 4Hz (corresponding to the tenth row of table 1).
Example three:
on the basis of the first embodiment, in S2, the server selects a Locate/Fault indicator protocol decoding program corresponding to the accessed hard disk, and the process of controlling the Locate/Fault indicator protocol decoding program accessed to the hard disk includes: when the accessed hard disk is an NVME hard disk, the server selects a Locate/Fault indicator protocol decoding program corresponding to the NVME hard disk, as shown in table 2, and when the decoding program controls the Locate/Fault indicator according to a signal sent by the hard disk controller, the signal contains 8-Bit data, bits 0-7, data of 0, 1, 2, 3, and 7 bits are data output to the program by the hard disk controller (an O identifier for output), and data of 4, 5, and 6 bits are data input to the hard disk controller by the program (an I identifier for output). For the hard disk indicator, the program only needs to extract two bits of data (namely, Bit0 and Bit 1) of Bit0 and Bit1, when the data of Bit0 in the received signal represents a hard disk Fault, the state of the Fault indicator is controlled to be normally on (corresponding to the second row of table 2), and when the data of Bit1 in the received signal represents a hard disk location, the state of the Locate indicator is controlled to be normally on (corresponding to the third row of table 2).
TABLE 2 location/failure indicator decoding rules for NVME hard disks
Bit O/I Hard disk controller data Status of indicator light
0 O Hard disk failure FAULT indicator lamp is normally on
1 O Hard disk positioning The Locate indicator lamp is always on
2 O Not Used Not Used
3 I Not Used Not Used
4 I Not Used Not Used
5 I Not Used Not Used
6 I Not Used Not Used
7 O Not Used Not Used
Example four:
on the basis of the first embodiment, the process of controlling the Active indicator light accessed to the hard disk by the server in S2 according to the in-place signal and the read-write activity signal sent by the accessed hard disk includes:
when the on-site signal is at high level, no hard disk is accessed, and the state of the Active indicator light is controlled to be closed no matter what the read-write activity signal is; when the on-site signal is at low level and the read-write activity signal is stable (the signal is not changed in 1S), the state of the Active indicator light is controlled to be normally on; when the bit signal is at low level and the read-write activity signal is unstable (the signal changes in 1S), the state of the Active indicator light is controlled to flash at the frequency of 4 Hz.
Example five: the hard disk types on the server are 2, NVME hard disks, SAS hard disks of the same type and SATA hard disks, and on the basis, the flow of the control method compatible with the hard disk indicator lamps of various types comprises the following steps:
the server determines to access the hard disk: when the server monitors that the in-place signal and the type identification signal are both low levels, determining the accessed hard disk as an NVME hard disk; and when the server monitors that the in-place signal is at a low level and the type identification signal is at a high level, determining that the accessed hard disk is an SAS hard disk or an SATA hard disk.
The server controls a Locate/Fault indicator lamp accessed to the hard disk:
when the access hard disk is an SAS hard disk or an SATA hard disk, the server selects a Locate/Fault indicator protocol decoding program corresponding to the SAS hard disk or the SATA hard disk, and the decoding program controls the Locate/Fault indicator according to a signal sent by a hard disk controller (1 hard disk controller controls all hard disks of the same type), specifically: when receiving the signal transmitted by the hard disk controller, determining the 1 st and 2 nd bit data in the signal:
when the 1 st data in the signal is stable 1 and the 2 nd data in the signal is stable 0, controlling the state of a Locate indicator lamp to be normally on and controlling the state of a Fault indicator lamp to be off; when the 1 st data in the signal is stable 0 and the 2 nd data is stable 1, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to be normally on; when the 1 st and 2 nd data in the signal are both stable 1, controlling the state of the Locate/Fault indicator lamp to be normally on; when the conversion frequency of the 2 nd data in the signal is 1Hz, 2Hz or 4Hz, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to flicker with the same frequency (1Hz, 2Hz or 4Hz) as the conversion frequency of the 2 nd data.
When the accessed hard disk is an NVME hard disk, the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the NVME hard disk, and when the decoding program controls the Locate/Fault indicator lamp according to a signal sent by the hard disk controller, the specific steps are as follows: and when the data of the Bit0 in the received signal represents the hard disk Fault, controlling the state of the Fault indicator light to be normally on, and when the data of the Bit1 in the received signal represents the hard disk location, controlling the state of the Locate indicator light to be normally on.
The server root controls the Active indicator light of the access hard disk: when the on-site signal is at a high level, no hard disk is accessed, and the state of the Active indicator light is controlled to be closed; when the on-site signal is at low level and the reading and writing activity signal is stable, the state of the Active indicator light is controlled to be normally on; when the on-bit signal is at low level and the read-write Active signal is unstable, the state of the Active indicator light is controlled to flash at the frequency of 4 Hz.
Example six:
the system is compatible with various types of hard disk indicator lamps and comprises hard disk controllers arranged on a server, hard disks (one hard disk controller corresponds to all hard disks of one type) and a CPLD (complex programmable logic device); the CPLD comprises a gate module and hard disk indicator lamp decoding modules corresponding to each hard disk controller, the CPLD is hardware, and the gate module and all the hard disk indicator lamp decoding modules are virtual software modules which are virtually formed by the CPLD through a simulation program.
Referring to fig. 1, in this embodiment, the hard disk is an NVME hard disk, an SAS hard disk, and an SATA hard disk, where the NVME hard disk and the SAS hard disk are of different types, and the SAS hard disk and the SATA hard disk are of the same type; namely, the hard disk has 2 types of non-stop types, the hard disk controller is an NVME hard disk controller and an SAS/SATA hard disk controller, and correspondingly, the hard disk indicator lamp decoding module is an NVME indicator lamp decoding module (specifically, a VPP indicator lamp decoding module) corresponding to the NVME hard disk and an SAS/SATA indicator lamp decoding module (specifically, an SGPIO indicator lamp decoding module) corresponding to the SAS/SATA hard disk.
The gate module is to: determining an accessed hard disk according to the in-place signal and the type identification signal sent by the hard disk, and sending hard disk decoding information to a hard disk indicator lamp decoding module corresponding to the accessed hard disk; the specific process is as follows: when the in-place signal and the type identification signal are both low levels, determining that the accessed hard disk is an NVME hard disk; and when the in-place signal is monitored to be in a low level and the type identification signal is monitored to be in a high level, determining that the accessed hard disk is an SAS hard disk or an SATA hard disk.
The CPLD is used for: according to the on-site signal and the read-write activity signal sent by the access hard disk, the Active indicator light of the access hard disk is controlled, and the specific flow is as follows: when the on-site signal is at low level and the read-write activity signal is stable (the stable judgment standard is that the signal is not changed in 1S), the state of the Active indicator light is controlled to be normally on; when the bit signal is at low level and the read-write activity signal is unstable (the signal changes in 1S), the state of the Active indicator light is controlled to flash at the frequency of 4 Hz.
The hard disk indicator lamp decoding module is used for: after receiving the hard disk decoding information, controlling a Locate/Fault indicator lamp accessed to the hard disk; specifically, the method comprises the following steps:
the SAS/SATA indicator lamp decoding module is used for: after receiving the hard disk decoding information, receiving a signal sent by an SAS/SATA hard disk controller, and determining the 1 st and 2 nd bit data in the signal:
when the 1 st data in the signal is stable 1 and the 2 nd data in the signal is stable 0, controlling the state of a Locate indicator lamp to be normally on and controlling the state of a Fault indicator lamp to be off;
when the 1 st data in the signal is stable 0 and the 2 nd data is stable 1, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to be normally on;
when the 1 st and 2 nd data in the signal are both stable 1, controlling the state of the Locate/Fault indicator lamp to be normally on;
when the conversion frequency of the 2 nd bit data in the signal is 1Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 1 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 2Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 2 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 4Hz, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to flash at the frequency of 4 Hz.
NVME pilot lamp decoding module is used for: after receiving the hard disk decoding information, receiving a signal sent by an NVME hard disk controller, controlling the state of a Fault indicator lamp to be normally on when the 0 th bit data in the received signal represents the hard disk Fault, and controlling the state of a Locate indicator lamp to be normally on when the 1 st bit data in the received signal represents the hard disk positioning.
It should be noted that: in the system provided in the embodiment of the present invention, when performing inter-module communication, only the division of each functional module is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the system is divided into different functional modules to complete all or part of the above described functions.
Further, the present invention is not limited to the above-mentioned embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (2)

1. A control method for a hard disk indicator lamp compatible with multiple types is characterized by comprising the following steps:
s1: the server determines the accessed hard disk according to the in-place signal and the type identification signal sent by the hard disk, and then the step goes to S2;
s2: the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the accessed hard disk and controls the Locate/Fault indicator lamp accessed to the hard disk; the server controls an Active indicator light accessed to the hard disk according to an in-place signal and a read-write activity signal sent by the accessed hard disk;
the accessed hard disk in the S1 is one of an NVME hard disk, an SAS hard disk and an SATA hard disk, the NVME hard disk and the SAS hard disk are different in type, and the SAS hard disk and the SATA hard disk are the same in type;
the flow of S1 is: when the server monitors that the in-place signal and the type identification signal are both low levels, determining the accessed hard disk as an NVME hard disk; when the server monitors that the in-place signal is at a low level and the type identification signal is at a high level, determining that the accessed hard disk is an SAS hard disk or an SATA hard disk;
the process that the server controls the Active indicator light accessed to the hard disk according to the in-place signal and the read-write activity signal sent by the accessed hard disk in the S2 comprises the following steps: when the on-site signal is at low level and the reading and writing activity signal is stable, the state of the Active indicator light is controlled to be normally on; when the on-site signal is at low level and the reading and writing activity signal is unstable, the state of the Active indicator light is controlled to flash at the frequency of 4 Hz;
in S2, the server selects a Locate/Fault indicator protocol decoding program corresponding to the accessed hard disk, and the process of controlling the Locate/Fault indicator accessed to the hard disk includes: when the access hard disk is an SAS hard disk or an SATA hard disk, the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the SAS hard disk or the SATA hard disk, and when the decoding program receives a signal sent by a hard disk controller, the 1 st bit and the 2 nd bit in the signal are determined:
when the 1 st data in the signal represents high level and the 2 nd data represents low level, the state of the Locate indicator lamp is controlled to be normally on, and the state of the Fault indicator lamp is controlled to be off;
when the 1 st data in the signal represents low level and the 2 nd data represents high level, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to be normally on;
when the 1 st and 2 nd data in the signal represent high level, the state of the Locate/Fault indicator lamp is controlled to be normally on;
when the conversion frequency of the 2 nd bit data in the signal is 1Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 1 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 2Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 2 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 4Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 4 Hz;
in S2, the server selects a Locate/Fault indicator protocol decoding program corresponding to the accessed hard disk, and the process of controlling the Locate/Fault indicator accessed to the hard disk includes: when the accessed hard disk is an NVME hard disk, the server selects a Locate/Fault indicator lamp protocol decoding program corresponding to the NVME hard disk, and when the decoding program receives a signal sent by a hard disk controller, the state of the Fault indicator lamp is controlled to be normally on when the 0 th data in the signal represents a hard disk Fault, and the state of the Locate indicator lamp is controlled to be normally on when the 1 st data in the signal represents hard disk positioning.
2. The utility model provides a compatible multiple type's hard disk pilot lamp control system which characterized in that: the system includes a CPLD; the CPLD comprises a gate module and hard disk indicator lamp decoding modules corresponding to each hard disk controller, wherein the gate module and all the hard disk indicator lamp decoding modules are virtual software modules;
the gate module is to: determining an accessed hard disk according to the in-place signal and the type identification signal sent by the hard disk, and sending hard disk decoding information to a hard disk indicator lamp decoding module corresponding to the accessed hard disk;
the CPLD is used for: controlling an Active indicator light accessed to the hard disk according to an in-place signal and a read-write activity signal sent by the accessed hard disk;
the hard disk indicator lamp decoding module is used for: after receiving the hard disk decoding information, controlling a Locate/Fault indicator lamp accessed to the hard disk;
the hard disk compatible with the multiple types of hard disk indicator light control systems is an NVME hard disk, an SAS hard disk and an SATA hard disk, wherein the NVME hard disk and the SAS hard disk are different in type, and the SAS hard disk and the SATA hard disk are the same in type; the hard disk indicator lamp decoding module is an NVME indicator lamp decoding module corresponding to the NVME hard disk and an SAS/SATA indicator lamp decoding module corresponding to the SAS/SATA hard disk; the work flow of the gating module comprises the following steps: when the in-place signal and the type identification signal are both low levels, determining that the accessed hard disk is an NVME hard disk; when the in-place signal is monitored to be in a low level and the type identification signal is monitored to be in a high level, determining the accessed hard disk to be an SAS hard disk or an SATA hard disk;
the work flow of the CPLD comprises the following steps: when the on-site signal is at low level and the reading and writing activity signal is stable, the state of the Active indicator light is controlled to be normally on; when the on-site signal is at low level and the reading and writing activity signal is unstable, the state of the Active indicator light is controlled to flash at the frequency of 4 Hz;
the SAS/SATA indicator lamp decoding module is used for: after receiving the hard disk decoding information, receiving a signal sent by a hard disk controller, and determining the 1 st bit and the 2 nd bit in the signal:
when the 1 st data in the signal represents high level and the 2 nd data represents low level, the state of the Locate indicator lamp is controlled to be normally on, and the state of the Fault indicator lamp is controlled to be off;
when the 1 st data in the signal represents low level and the 2 nd data represents high level, the state of the Locate indicator lamp is controlled to be closed, and the state of the Fault indicator lamp is controlled to be normally on;
when the 1 st and 2 nd data in the signal represent high level, the state of the Locate/Fault indicator lamp is controlled to be normally on;
when the conversion frequency of the 2 nd bit data in the signal is 1Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 1 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 2Hz, the state of a Locate indicator lamp is controlled to be closed, and the state of a Fault indicator lamp is controlled to flicker at the frequency of 2 Hz;
when the conversion frequency of the 2 nd bit data in the signal is 4Hz, the state of the Locate indicator lamp is controlled to be closed, the state of the Fault indicator lamp is controlled to flash at the frequency of 4Hz, and the NVME indicator lamp decoding module is used for: after receiving the hard disk decoding information, receiving a signal sent by a hard disk controller, controlling the state of a Fault indicator lamp to be normally on when the 0 th bit data in the received signal represents the hard disk Fault, and controlling the state of a Locate indicator lamp to be normally on when the 1 st bit data in the received signal represents the hard disk positioning.
CN201810620951.7A 2018-06-15 2018-06-15 Control method and system compatible with multiple types of hard disk indicator lamps Active CN109032900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810620951.7A CN109032900B (en) 2018-06-15 2018-06-15 Control method and system compatible with multiple types of hard disk indicator lamps

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810620951.7A CN109032900B (en) 2018-06-15 2018-06-15 Control method and system compatible with multiple types of hard disk indicator lamps

Publications (2)

Publication Number Publication Date
CN109032900A CN109032900A (en) 2018-12-18
CN109032900B true CN109032900B (en) 2022-07-08

Family

ID=64609473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810620951.7A Active CN109032900B (en) 2018-06-15 2018-06-15 Control method and system compatible with multiple types of hard disk indicator lamps

Country Status (1)

Country Link
CN (1) CN109032900B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933498A (en) * 2019-03-21 2019-06-25 浪潮商用机器有限公司 A kind of mixing lighting system, control device and the server of hard disk
CN110096417B (en) * 2019-04-11 2023-07-18 苏州浪潮智能科技有限公司 Method and system for solving false lighting of hard disk in non-reconstruction state
CN110377546A (en) * 2019-06-26 2019-10-25 苏州浪潮智能科技有限公司 A kind of storage expansion board and server storage architecture
CN110377551A (en) * 2019-07-19 2019-10-25 苏州浪潮智能科技有限公司 A kind of hot-plug method and relevant apparatus of SAS hard disk backboard
CN113360351A (en) * 2020-03-06 2021-09-07 烽火通信科技股份有限公司 Hard disk indicator lamp control method and device
CN112328457B (en) * 2020-11-20 2023-02-28 浪潮电子信息产业股份有限公司 Hard disk RAID type display device, display method and server
CN114185721B (en) * 2022-02-17 2022-05-06 浪潮(山东)计算机科技有限公司 Thermal storage backup system and method for server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516802A (en) * 2015-01-08 2015-04-15 浪潮(北京)电子信息产业有限公司 Method and system for indicating statuses of different types of hard disks
CN105955898A (en) * 2016-05-25 2016-09-21 浪潮电子信息产业股份有限公司 SAS hard disk and NVMe hard disk compatible hard disk backplane
WO2016196766A2 (en) * 2015-06-03 2016-12-08 Diamanti, Inc. Enabling use of non-volatile media - express (nvme) over a network
CN107729220A (en) * 2017-09-27 2018-02-23 郑州云海信息技术有限公司 A kind of design method for realizing more NVMe hard disk backboards lightings

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166612A (en) * 2013-05-17 2014-11-26 鸿富锦精密电子(天津)有限公司 Hard disk indicting system
KR102211126B1 (en) * 2014-04-17 2021-02-02 삼성전자주식회사 Memory System controlling an operation performance and Operating Method thereof
CN105912076A (en) * 2016-04-20 2016-08-31 浪潮电子信息产业股份有限公司 Hard disk backplane and hard disk indicating light control method and system
CN207301862U (en) * 2017-05-27 2018-05-01 郑州云海信息技术有限公司 A kind of hard disk Active instructions driving lamp in place
CN107622002A (en) * 2017-09-14 2018-01-23 郑州云海信息技术有限公司 A kind of the server hard disc indicator lamp design system and method for compatible NVME hard disks
CN107656857A (en) * 2017-10-12 2018-02-02 郑州云海信息技术有限公司 A kind of NVMeSSD hard disks ignition method and device
CN108021493A (en) * 2017-12-11 2018-05-11 郑州云海信息技术有限公司 A kind of system and method for the control hard disk indication lamp of simplification

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516802A (en) * 2015-01-08 2015-04-15 浪潮(北京)电子信息产业有限公司 Method and system for indicating statuses of different types of hard disks
WO2016196766A2 (en) * 2015-06-03 2016-12-08 Diamanti, Inc. Enabling use of non-volatile media - express (nvme) over a network
CN105955898A (en) * 2016-05-25 2016-09-21 浪潮电子信息产业股份有限公司 SAS hard disk and NVMe hard disk compatible hard disk backplane
CN107729220A (en) * 2017-09-27 2018-02-23 郑州云海信息技术有限公司 A kind of design method for realizing more NVMe hard disk backboards lightings

Also Published As

Publication number Publication date
CN109032900A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109032900B (en) Control method and system compatible with multiple types of hard disk indicator lamps
CN105608027B (en) Non-volatile memory apparatus and the method for accessing non-volatile memory apparatus
US20170249191A1 (en) Adjustable priority ratios for multiple task queues
US9927999B1 (en) Trim management in solid state drives
US8131892B2 (en) Storage apparatus and a data management method employing the storage apparatus
US8719495B2 (en) Concatenating a first raid with a second raid
US10372371B2 (en) Dynamic data relocation using cloud based ranks
MX2012005934A (en) Multi-interface solid state disk (ssd), processing method and system thereof.
US20150134880A1 (en) Apparatus and method for routing information in a non-volatile memory-based storage device
CN107357753B (en) Method and system for realizing automatic matching of PCIE port and hard disk address
WO2021098485A1 (en) Method and system for power-on and power-off control of pcie device
CN103838676B (en) Data-storage system, date storage method and PCM bridges
CN103576835A (en) Data manipulation method and device for sleep disk
CN107194257B (en) Trusted system based on domestic TCM chip
CN105529045A (en) Lamp signal control system for nonvolatile memory solid state disk
CN111831233B (en) Hybrid memory drive, computer system and related method for operating a multi-mode hybrid drive
CN111400121B (en) Server hard disk slot positioning and maintaining method
US8140724B1 (en) SATA pass through port
CN107506290B (en) Control system for standard solid state disk state indicator lamp of nonvolatile memory
CN204347834U (en) A kind of server cluster storage system based on FPGA
CN105045336A (en) JBOD (Just Bunch of Disks)
US9507744B2 (en) Handling two SGPIO channels using single SGPIO decoder on a backplane controller
CN108205478B (en) Intelligent sequential SCSI physical layer power management
US20180088860A1 (en) Pervasive drive operating statistics on sas drives
US11507307B2 (en) Storage system including a memory controller that enables each storage controller of a plurality of storage controllers to exclusively read and write control information of the memory

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
GR01 Patent grant
GR01 Patent grant