Hard disk state positioning method and system
By adding the SGPIO signal decoding module to the CPLD, the load signal fall edge determines whether the hard disk status signal is the last piece of data, discards the invalid information, solves the problem of misjudgment caused by the loss of the hard disk status signal, and improves the accuracy of the hard disk status information and the fault processing efficiency.
Patent Information
- Application Number
- CN202510421315.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-08-05
AI Technical Summary
In the prior art, data loss is prone to data loss when the CPU platform is sent periodically, causing operation and maintenance personnel to misjudgment the health status of the hard disk, which may lead to data loss or hard disk damage.
By adding the SGPIO signal decoding module to the CPLD, the number of falling edges of the load signal is used to determine whether the hard disk status signal is the last data of the current cycle, and discard the invalid status information to ensure the accurate analysis of the hard disk status information.
It improves the accuracy of hard disk status information, reduces the possibility of misjudgment, optimizes fault processing efficiency, and reduces the risk of data loss or hard disk damage.
Smart Images

Figure CN120429174A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of storage device detection, and in particular to a hard disk status positioning method and system. Background Art
[0002] In modern data centers and server architectures, the rapid development of information technology and the growing demand for data storage necessitate connecting servers to multiple hard drives for efficient data access and management. Multi-drive architectures not only increase storage capacity but also enhance data redundancy and availability, ensuring rapid recovery in the event of a failure.
[0003] However, the hard drive backplane transmits drive status information via SGPIO (Serial General Purpose Input / Output) signals. Operations and maintenance personnel rely on this information for troubleshooting and drive replacement to ensure data security and system operation. However, related technologies can result in data loss when the CPU platform periodically sends SGPIO signals. Incorrect status indications can cause maintenance personnel to misjudge the drive's health, believing a drive is functioning properly when, in fact, it may have failed. More seriously, replacing a drive at the wrong time can result in data loss or damage, causing significant financial losses and reputational risks to the enterprise. Summary of the Invention
[0004] The embodiments of the present disclosure provide a hard disk status positioning method and system, aiming to solve the problems existing in the above-mentioned background technologies.
[0005] In order to solve the above technical problems, the present disclosure is implemented as follows: In a first aspect, an embodiment of the present disclosure provides a method for locating a hard disk status, the method comprising: Obtaining a hard disk status signal, wherein the hard disk status signal is generated according to the status of multiple hard disks connected to the hard disk backplane; If it is determined that the hard disk status signal originates from the motherboard, determining whether the hard disk status signal is the last data entry in the current cycle based on the number of falling edges of the load signal corresponding to the hard disk status signal; the number of falling edges of the load signal indicates the number of data entries to which the hard disk status signal belongs in a cycle; In the case that the hard disk status signal is the last piece of data in the current cycle, the hard disk status signal is discarded, and the status of the multiple hard disks is determined based on the remaining hard disk status signals except the last piece of data in the current cycle.
[0006] Optionally, when it is determined that the hard disk status signal comes from a RAID card, the method further includes: Filtering the hard disk status signal, and parsing the filtered hard disk status signal based on the SFF-8485 protocol; The status of the multiple hard disks is determined based on the parsed hard disk status signals.
[0007] Optionally, the method further includes: Determine the hard disk type of the hard disk connected to the hard disk backplane, where the hard disk type is the first hard disk or the second hard disk, the hard disk status signal of the first hard disk is parsed based on the VPP protocol, and the hard disk status signal of the second hard disk is parsed based on the SFF-8485 protocol; In a case where the hard disk type is the first hard disk, parsing the hard disk status signal based on the VPP protocol, and determining the status of the multiple hard disks based on the parsed hard disk status signal; In the case that the hard disk type is the second hard disk, the source of the hard disk status signal is determined, and the source of the hard disk status signal includes a mainboard or a RAID card.
[0008] Optionally, when the hard disk status signal is not the last piece of data in the current cycle, the method further includes: Parsing the hard disk status signal based on the SFF-8485 protocol; The status of the multiple hard disks is determined based on the parsed hard disk status signals.
[0009] Optionally, when it is determined that the hard disk status signal comes from a mainboard, the method further includes: determining whether the hard disk status signal has data missing according to the number of falling edges of the load signal corresponding to the hard disk status signal; In the case that there is data missing in the hard disk status signal, the current cycle is recorded as a data missing group, and the data content of the previous hard disk status signal is read from the reserved register; The data content of the previous hard disk status signal is used as the data content of the hard disk status signal, and the status of the multiple hard disks is determined based on the hard disk status signal.
[0010] Optionally, the method further includes: Count the number of hard disk status signals with data loss; When the number of the data missing groups is greater than a preset threshold, based on the negative feedback mechanism of the logic device, a data missing prompt is sent to the central processing unit deployed on the mainboard through a register interacting with the baseboard management controller.
[0011] Optionally, judging whether the hard disk status signal is the last piece of data in the current cycle according to the number of falling edges of the load signal corresponding to the hard disk status signal includes: Obtaining a count value of a counter corresponding to the load signal, the counter being configured to increment the count value by 1 when detecting that the load signal drops from a high level to a low level, and to reset the count value to zero when the count value is equal to n, where n is the number of data entries of the hard disk status signal transmitted in one cycle; Determine the count value of the counter: When the count value is equal to n, determining that the hard disk status signal is the last data of the current cycle; When the count value is less than n, determining that the hard disk status signal is not the last data of the current cycle; When the hard disk status signal is the last piece of data in the current cycle, discarding the hard disk status signal includes: In the case that the hard disk status signal is the last piece of data in the current cycle, the processing of the hard disk status signal is stopped, and the current cycle is marked as the end state.
[0012] In a second aspect, an embodiment of the present disclosure provides a hard disk status positioning system, which is used to perform the steps of a hard disk status positioning method described in the first aspect, the system comprising: a hard disk mainboard and a hard disk backplane, the hard disk backplane being equipped with a logic device, the logic device comprising a decoding module; The hard disk backplane is connected to a plurality of hard disks; The hard disk mainboard is used to send a hard disk status signal to the logic device, wherein the hard disk status signal is generated according to the status of multiple hard disks connected to the hard disk backplane; The logic device is connected to the hard disk mainboard, and determines whether the hard disk status signal is the last data of the current cycle through the decoding module. The loading signal represents the number of data items to which the hard disk status signal belongs in a cycle. When the hard disk status signal is the last data of the current cycle, the hard disk status signal is discarded, and the status of the multiple hard disks is determined based on the remaining hard disk status signals except the last data of the current cycle.
[0013] Optionally, the system further includes a RAID card; The RAID card is connected to the logic device and is used to send a hard disk status signal to the logic device; The logic device is used to determine the source of the hard disk status signal; when it is determined that the hard disk status signal comes from a RAID card, the hard disk status signal is filtered and the filtered hard disk status signal is parsed based on the SFF-8485 protocol; and the status of the multiple hard disks is determined based on the parsed hard disk status signal.
[0014] Optionally, the logic device is further configured to determine a hard disk type of a hard disk connected to the hard disk backplane, where the hard disk type is the first hard disk or the second hard disk, a hard disk status signal of the first hard disk is parsed based on a VPP protocol, and a hard disk status signal of the second hard disk is parsed based on an SFF-8485 protocol; if the hard disk type is the first hard disk, the hard disk status signal is parsed based on the VPP protocol; and the status of the multiple hard disks is determined based on the parsed hard disk status signals; The logic device is used to stop processing the hard disk status signal when the hard disk status signal is the last data of the current cycle, and mark the current cycle as the end state.
[0015] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects: The present disclosure obtains the hard disk status signal, and when it is determined that the signal comes from the mainboard, uses the number of falling edges of the loading signal to determine whether the signal is the last data of the current cycle, thereby effectively filtering out invalid status information caused by signal loss or erroneous transmission. The accuracy of the hard disk status information is significantly improved, so that operation and maintenance personnel can obtain more reliable data when locating faults, and greatly reduces the possibility of misjudgment due to erroneous information. The present disclosure not only optimizes the efficiency of fault handling, allowing operation and maintenance personnel to identify and solve problems more quickly, but also reduces the complexity of operation and maintenance work to a certain extent. By discarding status signals that are judged to be erroneous, operation and maintenance personnel can make more accurate hard disk replacement decisions based on verified and reliable information, thereby effectively reducing the risk of data loss or hard disk damage due to misjudgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 This is a schematic diagram of the architecture of a hard disk status positioning system in the related art; Figure 2 It is an SGPIO signal diagram based on the SFF-8485 protocol in the related art; Figure 3 This is a schematic diagram of missing SGPIO signal data on the CPU platform; Figure 4 This is a flowchart of a method for locating a hard disk status provided by an embodiment of the present disclosure; Figure 5This is a schematic diagram of the overall process of hard disk status signal processing in one embodiment of the present disclosure; Figure 6 This is a schematic diagram of the architecture of a hard disk status positioning system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure. In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In the present disclosure, "at least one" refers to one or more, and "more than one" refers to two or more. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0019] Figure 1 This is a schematic diagram of the architecture of the hard disk status positioning system in the related art, such as Figure 1 As shown, the motherboard contains a central processing unit (CPU) and a baseboard management controller (BMC), which are jointly responsible for system management and control. The CPU sends SGPIO signals to the Slimline portion of the backplane through the Slimline and SGPIO header interfaces. SGPIO signals are used to transmit hard drive status information and include Active, Locate, and Error status indications. When the CPU sends an SGPIO signal, the SGPIO signal is transmitted to the backplane through the Slimline interface. The complex programmable logic device (CPLD) on the backplane is responsible for parsing these signals. The CPLD parses the received SGPIO signals according to the SFF-8485 protocol and identifies the specific meaning of each signal. For example, the Active signal indicates that the hard drive is working, the Locate signal is used to indicate the location of a specific hard drive, and the Error signal indicates that there is a problem with the hard drive.
[0020] Figure 2 This is the SGPIO signal diagram based on the SFF-8485 protocol in the related technology, please refer to Figure 2sClock is a clock signal used to synchronize data transmission. Whenever the rising edge of the sClock signal arrives, the status of the sDataOut or sDataIn signal is read. The frequency of sClock determines the speed of data transmission, ensuring that each data bit is correctly read at the appropriate time. sLoad is used to indicate the loading status of the data. When the sLoad signal is high (1), it means that the data of the current cycle is ready to be loaded into the CPLD for parsing. sDataOut is a status data output signal sent from the motherboard to the backplane. The sDataOut signal carries the status information of each hard disk, including active status, positioning status, and fault status. The status information of each HDD is transmitted via 24-bit data, where every three signals correspond to the status of one hard disk. sDataIn is a signal returned from the backplane to the motherboard for feedback or confirmation information. During the data transmission process, starting from the sLoad signal being 1, the system transmits the status information of each HDD. If there are 8 HDDs in the system, 24 bits of data (8 HDDs × 3 bits of status information) will be transmitted. DATA0 indicates whether the HDD is inserted and active. If this bit is 1, it means an HDD is plugged in and operating. The corresponding LED will light green, indicating normal operation. As shown in Table 1, DATA1 is used to identify the HDD bit currently transmitting, also known as the location status. When this bit is 1, it indicates the HDD location corresponding to the current signal, and the corresponding LED will light blue, helping maintenance personnel identify the specific hard drive. DATA2 indicates whether the HDD is faulty. If this bit is 1, it means the HDD may be damaged. The corresponding LED will light red, alerting maintenance personnel to the drive's status. After parsing the SGPIO signal, the CPLD turns the corresponding hard drive indicator on and off according to the status. Specifically, when the CPLD receives the Active signal, the green indicator lights up, indicating that the hard drive is operating normally. When it receives the Locate signal, the blue indicator lights up, helping maintenance personnel quickly locate the specific hard drive. When it receives the Error signal, the red indicator lights up, alerting maintenance personnel to a drive failure.
[0021] Table 1
[0022] This architecture enables the entire system to monitor the status of hard drives in real time and provide intuitive feedback to maintenance personnel through indicator light changes. This design not only improves fault location efficiency but also enhances system maintainability, allowing maintenance personnel to take timely measures to ensure data security and stable system operation.
[0023] Figure 3This is a schematic diagram of missing SGPIO signal data on the CPU platform. Figure 3 The waveform in the figure represents the cyclic transmission of the SGPIO signal, with each cycle consisting of five data entries. These data entries are sent cyclically, and theoretically, each entry contains 24 bits of information, corresponding to the status of eight drives (activity, location, and fault). In each cycle, one bit of data is lost in the fifth entry. This means that during the transmission process, a specific bit (usually the bit associated with the eighth drive's failure information) fails to be successfully sent or received, resulting in missing status information for that drive, which directly affects the system's judgment of the drive's status. During the fifth data entry, the sDataOut signal becomes unstable or missing, appearing as a low level or discontinuous signal. This abnormal waveform change is a direct indicator of data loss. Because the CPLD receives erroneous SGPIO signals, the parsed data is inaccurate. Customers or maintenance engineers cannot visually determine the actual drive status from the drive indicators, and may mistakenly believe that a drive is functioning properly or failing, impacting drive usage and management. The returned drive status value on the web interface may also be erroneous, causing false system alarms and, in turn, affecting CPU operation, potentially leading to system instability or malfunction. Furthermore, if the signal is lost during a rebuild command, the operator may mistakenly believe the rebuild is complete and prematurely move the hard drive, causing damage to the hard drive hardware. This issue stems from a chip design flaw in the CPU platform. Fixing this issue requires complex hardware design, simulation verification, and production processes (such as chip etching, exposure, and development), which consumes significant time and resources and severely impacts project development progress.
[0024] In order to solve the problems existing in the above-mentioned related technologies, the core idea of the present disclosure is to filter out the lost data transmitted by the CPU platform by adding an SGPIO signal decoding module in the CPLD, thereby ensuring accurate analysis and feedback of the hard disk status information.
[0025] Figure 4 This is a flowchart of a method for locating a hard disk status according to an embodiment of the present disclosure. Figure 4 As shown, the method includes: Step S101 : obtaining a hard disk status signal, wherein the hard disk status signal is generated according to the status of multiple hard disks connected to the hard disk backplane.
[0026] The hard disk status signal is generated by multiple hard disks connected to the hard disk backplane, and can effectively reflect the working status of the hard disk and provide necessary status information. In this embodiment, the hard disk status signal can be an SGPIO signal. SGPIO (Serial General Purpose Input / Output) is a serial general-purpose input and output signal used to transmit hard disk status information between the server and the storage device. The SGPIO signal is transmitted through a specific protocol (such as the SFF-8485 protocol) and can effectively feedback the working status of each hard disk. After the SGPIO signal is parsed, the status information of each hard disk can be obtained and converted into a hard disk status signal that can be used for subsequent processing. The obtained hard disk status signal will be used to determine the health status of the hard disk, perform fault processing, or perform status indication operations.
[0027] Step S102, when it is determined that the hard disk status signal comes from the motherboard, judge whether the hard disk status signal is the last data of the current cycle based on the number of falling edges of the loading signal corresponding to the hard disk status signal; the number of falling edges of the loading signal represents the number of data items belonging to the hard disk status signal in one cycle.
[0028] The load signal is a control signal synchronized with the SGPIO signal, which can be a Load signal, used to indicate the validity of the SGPIO signal and the transmission status of the data. The falling edge of the load signal (i.e., the moment when the signal changes from a high level to a low level) represents the end of a data bit. When the signal source is confirmed to be the motherboard, the falling edges of the load signal are counted. Whenever a falling edge appears in the load signal, it means that a new data has been received in the current cycle. Therefore, the number of falling edges can be used to determine how many SGPIO data have been received in the current cycle. Based on the number of falling edges of the load signal, it is determined whether the currently received hard disk status signal is the last data in the current cycle.
[0029] In an optional implementation, step S102 includes steps S1021 to S1023: Step S1021, obtain the count value of the counter corresponding to the loading signal, the counter is configured to add 1 to the count value when detecting that the loading signal drops from a high level to a low level, and to clear the count value when the count value is equal to n, where n is the number of data items of the hard disk status signal transmitted in one cycle.
[0030] The counter is a dedicated hardware or software counter corresponding to the load signal and is intended to monitor changes in the load signal.
[0031] The counter is configured to perform a specific action upon detecting the falling edge of the load signal. Specifically, when the load signal falls from a high level (logic 1) to a low level (logic 0), the counter increments by 1. This indicates that a new SGPIO data entry has been received during the current cycle. The counter is also configured to reset to zero when the count reaches n. n represents the number of hard drive status signal data entries transmitted during a cycle. For example, if five data entries are to be transmitted during a cycle, the counter is reset to zero when the count reaches 5, preparing for data reception during the next cycle. The counter tracks changes in the load signal in real time and accurately records the number of data entries received during the current cycle.
[0032] Read the current count value of the counter for subsequent determination. Based on the counter value, determine how many SGPIO data entries have been received in the current cycle. In this embodiment, the counter can be implemented using hardware logic circuitry (such as an FPGA or CPLD) or using a software timer and interrupt mechanism. The specific choice depends on the system design and performance requirements.
[0033] Step S1022, determining the count value of the counter: when the count value is equal to n, determining that the hard disk status signal is the last data of the current cycle.
[0034] The count value of the counter obtained in step S1021 is judged and compared with a preset n. If the count value of the counter is equal to n, it is determined that the currently received hard disk status signal is the last data of the current cycle.
[0035] Step S1023: When the count value is less than n, determine that the hard disk status signal is not the last data of the current cycle.
[0036] Step S103 , when the hard disk status signal is the last piece of data in the current cycle, discard the hard disk status signal, and determine the status of the multiple hard disks based on the remaining hard disk status signals except the last piece of data in the current cycle.
[0037] If the current hard disk status signal is confirmed to be the last piece of data, this piece of data will be discarded. Specifically, the last piece of data is unreliable due to signal loss or transmission error and cannot provide valid information for current status judgment.
[0038] After discarding the last data entry, the status of multiple drives is determined based on the remaining drive status signals in the current cycle, excluding the last data entry. All valid SGPIO signals in the current cycle (i.e., all data except the last data entry) are collected. This data effectively reflects the status of each drive. The collected valid data is parsed to extract the status information for each drive. The health status of each drive is determined based on the parsed valid data. As shown in Table 2, if the Active LED (green) is off, it indicates that no drive is currently in place or the system is powered off. This means the drive is not detected or the system is not powered. If it is solid on, it indicates that the drive is in place and powered on, but is not currently reading or writing data. This means the drive is in standby mode, ready for data transfer, but currently inactive. If it is flashing, it indicates that the drive is currently reading or writing data. The flashing frequency is 1Hz (on and off once every second). This indicates that the drive is processing data requests, and users can see the LED flashing to confirm activity. If the Fail LED is off, it indicates that no drive is currently in place or that the drive is not faulty. If it is solid on, it indicates a drive fault alarm. This means the drive has detected a fault or error and may need to be replaced or repaired. This status alerts the user to possible serious problems with the hard disk.
[0039] Table 2
[0040] In an optional implementation, step S103 includes: when the hard disk status signal is the last piece of data in the current cycle, stopping processing the hard disk status signal and marking the current cycle as an end state.
[0041] Since the current hard disk status signal is marked as the last piece of data, further parsing and processing of the signal will be stopped, and no status judgment, error detection, or any other form of processing will be performed on the signal. The purpose of stopping processing is to avoid redundant operations on the last piece of data and ensure efficient use of system resources. Because the last piece of data has been discarded, no judgment or operation is required on it. A status flag is set to mark the end of the current data processing cycle. The status flag can be a Boolean value or a status code, indicating that the processing of the current cycle is complete. By marking the current cycle as the end state, preparations are made for entering the next data processing cycle. Before entering the next cycle, the value of the aforementioned counter is cleared to restart counting new SGPIO data. Other internal states or variables related to the current cycle are reset to ensure that the processing of the new cycle is not affected by old data.
[0042] The present disclosure obtains the hard disk status signal, and when it is determined that the signal comes from the mainboard, uses the number of falling edges of the loading signal to determine whether the signal is the last data of the current cycle, thereby effectively filtering out invalid status information caused by signal loss or erroneous transmission. The accuracy of the hard disk status information is significantly improved, so that operation and maintenance personnel can obtain more reliable data when locating faults, and greatly reduces the possibility of misjudgment due to erroneous information. The present disclosure not only optimizes the efficiency of fault handling, allowing operation and maintenance personnel to identify and solve problems more quickly, but also reduces the complexity of operation and maintenance work to a certain extent. By discarding status signals that are judged to be erroneous, operation and maintenance personnel can make more accurate hard disk replacement decisions based on verified and reliable information, thereby effectively reducing the risk of data loss or hard disk damage due to misjudgment.
[0043] In an optional embodiment, when it is determined that the hard disk status signal comes from a RAID card, the method further includes: filtering the hard disk status signal and parsing the filtered hard disk status signal based on the SFF-8485 protocol; and determining the status of the multiple hard disks based on the parsed hard disk status signal.
[0044] When drive status signals originate from the motherboard, they may be affected by missing data bits or noise, leading to parsing errors. Motherboard signal transmission may not be as stable as that from a RAID card, necessitating the aforementioned error handling and data reconstruction to ensure signal accuracy. RAID cards, on the other hand, are designed to manage multiple drives and are often more reliable in signal transmission and processing. RAID cards effectively process and filter noise from signals, allowing direct filtering and parsing based on the SFF-8485 protocol when the signal originates from the RAID card.
[0045] When the hard drive status signal is determined to be coming from the RAID card, the card performs necessary filtering and signal shaping before transmitting the signal. Therefore, the filtered signal can be directly analyzed to ensure compliance with the SFF-8485 protocol. Filtering further removes noise from the signal, ensuring clarity and accuracy. The RAID card's built-in processing mechanism effectively eliminates most interference, allowing analysis to proceed directly according to the SFF-8485 protocol. By analyzing the filtered hard drive status signal, the status of multiple hard drives can be accurately determined. This helps maintenance personnel quickly identify faulty drives, enabling timely maintenance and replacement, and preventing data loss and drive damage.
[0046] In an optional embodiment, the method further includes: Determine the hard disk type of the hard disk connected to the hard disk backplane, where the hard disk type is the first hard disk or the second hard disk, the hard disk status signal of the first hard disk is parsed based on the VPP protocol, and the hard disk status signal of the second hard disk is parsed based on the SFF-8485 protocol; In a case where the hard disk type is the first hard disk, parsing the hard disk status signal based on the VPP protocol, and determining the status of the multiple hard disks based on the parsed hard disk status signal; In the case that the hard disk type is the second hard disk, the source of the hard disk status signal is determined, and the source of the hard disk status signal includes a mainboard or a RAID card.
[0047] Different types of hard drives use different protocols to transmit and parse status signals. NVMe drives and SATA / SAS drives differ significantly in data transfer rates, signal formats, and control methods. Therefore, you need to select the appropriate parsing method based on the drive type to ensure accurate acquisition of drive status information.
[0048] The first hard drive is an NVMe (Non-Volatile Memory Express) hard drive. The second hard drive is a SATA (Serial Advanced Technology Attachment) or SAS (Serial Attached SCSI) hard drive. The status signal of the first hard drive is parsed based on the Vendor Specific Protocol (VPP). The VPP protocol is designed for hard drives from specific vendors to provide more efficient communication and status monitoring. If the hard drive type is determined to be the first hard drive, the VPP protocol is used to parse the hard drive status signal. This includes reading specific status registers and obtaining information such as temperature and health status to determine the operating status of the NVMe hard drive.
[0049] For the secondary hard drive, its status signal is parsed based on the SFF-8485 protocol. If the hard drive is identified as a secondary drive, further determination is needed regarding whether the signal originates from the motherboard or the RAID controller card. Depending on the source, different processing strategies are employed, such as the aforementioned filtering and parsing steps.
[0050] In an optional embodiment, when the hard disk status signal is not the last data of the current cycle, the method further includes: parsing the hard disk status signal based on the SFF-8485 protocol; and determining the status of the multiple hard disks based on the parsed hard disk status signal.
[0051] For example, if five SGPIO signals are sent within a cycle, the last data entry is the fifth data entry sent within the cycle. If the currently processed data is not the last entry, i.e., the first four SGPIO signals, then the previous data will continue to be parsed normally. If the received data is not the last entry of the current cycle, it is equivalent to valid data, and then the hard drive status signal will continue to be parsed normally based on the SFF-8485 protocol.
[0052] In an optional embodiment, when it is determined that the hard disk status signal comes from the motherboard, the method further includes: judging whether there is data missing in the hard disk status signal based on the number of falling edges of the loading signal corresponding to the hard disk status signal; when there is data missing in the hard disk status signal, recording the current cycle as a data missing group, and reading the data content of the previous hard disk status signal from a reserved register; using the data content of the previous hard disk status signal as the data content of the hard disk status signal, and determining the status of the multiple hard disks based on the hard disk status signal.
[0053] When the received hard drive status signal is determined to be from the motherboard, the number of falling edges of the load signal is monitored to determine the number of data records received in the current cycle. For example, if the load signal's falling edge occurs four times in a cycle, it means that four valid data records should have been received. If five data records were expected but only four falling edges were detected, it is determined that data is missing in the current cycle.
[0054] If data is missing, the current cycle is recorded as a data missing group to provide a basis for subsequent fault analysis and system debugging. The reserved registers are used to store the data content of the last valid hard disk status signal. When data missing is detected, the data content of the last hard disk status signal is read from these reserved registers. For example, suppose that in the current cycle, only four data (data 1, data 2, data 3, data 4) are received, and the fifth data is missing. At this time, the previous data stored in the register is read (assuming it is data 5). The data content of the previous hard disk status signal read (data 5) is used as the data content of the current hard disk status signal.
[0055] The updated data content is used to determine the status of multiple hard drives. Assume that Data 5 contains the following information: "Hard Drive 1 is normal, Hard Drive 2 is normal, Hard Drive 3 is faulty, and Hard Drive 4 is normal." Data 5 is used as the hard drive status signal for the current cycle, and the hard drive status is determined based on this data.
[0056] The above steps effectively process the hard drive status signal from the motherboard and, in the event of data loss, use the last valid data to recover. Even if problems occur during signal transmission, normal operation and management can still be maintained.
[0057] In an optional embodiment, the method further includes: counting the number of hard disk status signals in which data is missing; and when the number of data missing groups is greater than a preset threshold, based on a negative feedback mechanism of the logic device, sending a data missing prompt to a central processing unit deployed on the mainboard through a register that interacts with a baseboard management controller.
[0058] In this embodiment, the data missing situations that occur in each cycle are continuously monitored and recorded. Whenever data missing is detected in a certain cycle, the number of hard disk status signals with data missing is counted. Assume that in multiple cycles, the following data missing situations are detected respectively: cycle 1: data missing; cycle 2: data missing; cycle 3: normal; cycle 4: data missing; cycle 5: normal; cycle 6: data missing. In this case, the number of data missing is counted as 4. According to the preset threshold, it is determined whether the number of data missing reaches a critical point. The preset threshold can be adjusted according to the specific application scenario and system requirements. After the number of data missing is counted, it is determined whether the number is greater than the preset threshold. If the number of data missing exceeds the threshold, the corresponding negative feedback mechanism will be activated.
[0059] The negative feedback mechanism is that when the number of data missing groups exceeds a preset threshold, it is triggered by a logic device (such as a CPLD) to issue a warning to other components of the system (such as the central processing unit) to indicate the existence of a potential problem. The data missing prompt information is sent to the central processing unit (CPU) on the motherboard through a register that interacts with the baseboard management controller (BMC). Specifically, the data missing status is written to a specific register. After the BMC detects the change in the register, it sends a prompt information to the CPU according to the set logic. The prompt information sent to the CPU includes at least: the number of hard disks with data missing, the number of cycles in which data missing occurs, and the identification of the possible faulty hard disk (if known). Suppose that during a monitoring cycle, the number of missing data counted is 4, while the preset threshold is 3. At this point, the negative feedback mechanism is triggered. Data missing information is written to the registers that interact with the BMC. Upon detecting the register change, the BMC sends a data missing notification to the CPU, stating, "4 missing data detected. It is recommended that you check the hard drive connection or status." This ensures a quick response to abnormal hard drive status, avoiding more serious issues caused by missing data, and thus improving overall system reliability and stability.
[0060] In an optional embodiment, the method further includes dynamically adjusting the processing period of the hard disk status signals based on the real-time load and operating status of the multiple hard disks. When the hard disk load is high, the hard disk status signal collection period is extended; when the hard disk load is low, the hard disk status signal collection period is shortened.
[0061] In this embodiment, by flexibly adjusting the acquisition cycle based on changes in hard drive load, system resources are effectively conserved and processing efficiency is improved. Specifically, the acquisition cycle is extended when the hard drive load is high, and shortened when the load is low. This improves system efficiency without compromising hard drive health monitoring. When the hard drive is under high load (for example, during large amounts of data transfer or heavy I / O operations), the acquisition cycle for hard drive status signals is extended. Frequent acquisition of status signals is meaningless and wastes processing resources. By monitoring indicators such as the hard drive's read / write performance, temperature, and usage time, the load is assessed and the acquisition frequency is automatically adjusted. When the hard drive is under low load (for example, when idle or in a low-load state), the acquisition cycle is shortened, allowing for more frequent acquisition of hard drive status, proactively identifying any potential issues and ensuring hard drive reliability. Under low load, the hard drive may experience issues such as elevated temperatures or fluctuating status. By intensively acquiring signals, potential hard drive hazards can be promptly identified.
[0062] The present disclosure can also use statistical analysis of historical hard drive status data, combined with machine learning algorithms, to predict future trends in hard drive status, issue early warnings, and prevent hard drive failures. This includes dynamically adjusting the collection and processing strategies for hard drive status signals based on the hard drive's health, temperature fluctuations, and workload. Specifically, historical data includes data on temperature, operating time, number of I / O operations, health status, and the number of bad sectors. Based on this historical data, a model is constructed and statistical analysis is performed to identify characteristic patterns that precede hard drive failure. For example, a long-term hard drive temperature within a certain range may indicate impending hard drive failure. Machine learning algorithms (such as regression analysis, time series prediction, and neural networks) can be used to analyze hard drive operating data and predict potential hard drive failures or performance degradation. For example, if a hard drive's temperature has gradually increased over a period of time while the load has also increased, the machine learning model can identify this trend and issue a failure warning. Based on the machine learning prediction results, if a downward trend in hard drive health is detected (such as an increase in temperature or an increase in read / write errors), an early warning can be issued to enable preventive maintenance. Based on the prediction results, the collection period of hard drive status signals can be adjusted appropriately. For example, if an increased risk of hard drive failure is detected, the data collection frequency can be increased to monitor real-time changes in the drive's status. If historical data analysis and predictive analysis indicate that certain hard drives may be experiencing degradation (e.g., increasing bad sectors or rising temperatures), the data collection cycle for that drive can be proactively adjusted, increasing the sampling frequency to promptly monitor changes in the drive's status. High temperatures or high loads can increase the risk of failure. The system can intelligently decide whether to shorten the sampling cycle based on the drive's temperature and load. If the drive's health is approaching a threshold, not only will the sampling frequency be increased, but a health check mechanism can also be activated to automatically assess its status and initiate repairs. By dynamically adjusting data collection and processing strategies based on factors such as drive health, load, and temperature, this helps optimize operational decisions, reduce unnecessary resource consumption, and proactively detect drive issues, thereby avoiding unplanned downtime or data loss. For example, if machine learning predicts that a drive is about to fail and is under heavy workload, the drive can be removed from the primary workload for replacement or repair.
[0063] Figure 5 FIG. 1 is a schematic diagram of the overall flow of hard disk status signal processing in one embodiment of the present disclosure. Figure 5As shown, power on the hardware and start the device. At this point, all hardware components begin initialization, preparing to receive and process signals. First, the system determines the type of hard drive currently connected so that appropriate action can be taken. These are categorized into three main types: SATA, SAS, and NVME. If a SATA or SAS drive is identified, the system proceeds to determine the source of the hard drive status signal. The hard drive status signal originates from the motherboard or RAID card. If the source is the motherboard, the system monitors the number of falling edges of the load signal to determine whether the hard drive status signal in the current cycle represents the last data entry. If so, the last data entry is discarded. If not, the hard drive indicator lights up normally based on the SFF-8485 protocol. If the source is the RAID card, the hard drive status signal received from the card is filtered to remove any noise or invalid signals. After filtering out the noise, the system analyzes the valid hard drive status signal, updates the hard drive status indicator, and records the relevant status information.
[0064] If it is determined that an NVME disk is connected, it is parsed based on the VPP protocol to control the lighting of the hard disk status indicator.
[0065] Figure 6 FIG. 1 is a schematic diagram of the architecture of a hard disk status positioning system provided by an embodiment of the present disclosure. Figure 6 As shown, the system is applied to a hard disk status positioning method as described above, and the system includes: a hard disk mainboard and a hard disk backplane, the hard disk backplane is deployed with a logic device, and the logic device includes a decoding module; The hard disk backplane is connected to a plurality of hard disks; The hard disk mainboard is used to send a hard disk status signal to the logic device, wherein the hard disk status signal is generated according to the status of multiple hard disks connected to the hard disk backplane; The logic device is connected to the hard disk mainboard, and determines whether the hard disk status signal is the last data of the current cycle through the decoding module. The loading signal represents the number of data items to which the hard disk status signal belongs in a cycle. When the hard disk status signal is the last data of the current cycle, the hard disk status signal is discarded, and the status of the multiple hard disks is determined based on the remaining hard disk status signals except the last data of the current cycle.
[0066] The hard drive motherboard manages and controls multiple connected hard drives and sends drive status signals to the logic device. These signals are generated based on the status of the multiple hard drives connected to the hard drive backplane and reflect the operating status of each drive (e.g., normal, faulty, disconnected, etc.).
[0067] The hard drive backplane is a component that connects multiple hard drives, enabling storage capacity expansion. The backplane houses logic devices, including decoding modules.
[0068] The logic device can be a CPLD. Its primary function is to receive, parse, and process drive status signals from the drive motherboard. The logic device includes a decoding module, responsible for determining the validity and integrity of the signals, and a control module, responsible for controlling the drive indicators. As you can see, the control module updates the drive indicator status in real time based on the decoding module's output, allowing maintenance personnel to intuitively understand each drive's operating status (e.g., normal, faulty, disconnected, etc.).
[0069] In the implementation process of this embodiment, the hard drive motherboard sends a hard drive status signal containing status information for multiple hard drives to the logic device. The logic device analyzes the received hard drive status signal through a decoding module to determine whether the currently received hard drive status signal is the last data entry in the current cycle. The load signal represents the number of data entries corresponding to the hard drive status signal within a cycle, that is, the number of status signals received within a signal cycle. By monitoring changes in the load signal, the logic device can confirm whether the current signal is the last data entry. If the hard drive status signal is the last data entry in the current cycle, the system discards this data entry, as the last data entry may be invalid due to signal loss or other reasons, potentially affecting the accuracy of the hard drive status. The status of multiple hard drives is determined based on the remaining hard drive status signals in the current cycle, excluding the last data entry. In other words, the system relies only on valid data to determine the operating status of the hard drives. After discarding the last data entry, the logic device analyzes the remaining valid hard drive status signals to comprehensively determine the status of each hard drive.
[0070] In an optional embodiment, the system further includes a RAID card; The RAID card is connected to the logic device and is used to send a hard disk status signal to the logic device.
[0071] The logic device is used to determine the source of the hard disk status signal; when it is determined that the hard disk status signal comes from a RAID card, the hard disk status signal is filtered and the filtered hard disk status signal is parsed based on the SFF-8485 protocol; and the status of the multiple hard disks is determined based on the parsed hard disk status signal.
[0072] When drive status signals originate from the motherboard, they may be affected by missing data bits or noise, leading to parsing errors. Motherboard signal transmission may not be as stable as that from a RAID card, necessitating the aforementioned error handling and data reconstruction to ensure signal accuracy. RAID cards, on the other hand, are designed to manage multiple drives and are often more reliable in signal transmission and processing. RAID cards effectively process and filter noise from signals, allowing direct filtering and parsing based on the SFF-8485 protocol when the signal originates from the RAID card.
[0073] When the hard drive status signal is determined to be coming from the RAID card, the card performs necessary filtering and signal shaping before transmitting the signal. Therefore, the filtered signal can be directly analyzed to ensure compliance with the SFF-8485 protocol. Filtering further removes noise from the signal, ensuring clarity and accuracy. The RAID card's built-in processing mechanism effectively eliminates most interference, allowing analysis to proceed directly according to the SFF-8485 protocol. By analyzing the filtered hard drive status signal, the status of multiple hard drives can be accurately determined. This helps maintenance personnel quickly identify faulty drives, enabling timely maintenance and replacement, and preventing data loss and drive damage.
[0074] In an optional embodiment, the logic device is also used to determine the hard disk type of the hard disk connected to the hard disk backplane, the hard disk type is the first hard disk or the second hard disk, the hard disk status signal of the first hard disk is parsed based on the VPP protocol, and the hard disk status signal of the second hard disk is parsed based on the SFF-8485 protocol; when the hard disk type is the first hard disk, the hard disk status signal is parsed based on the VPP protocol; and the status of the multiple hard disks is determined based on the parsed hard disk status signal.
[0075] Different types of hard drives use different protocols to transmit and parse status signals. NVMe drives and SATA / SAS drives differ significantly in data transfer rates, signal formats, and control methods. Therefore, you need to select the appropriate parsing method based on the drive type to ensure accurate acquisition of drive status information.
[0076] The first hard drive is an NVMe (Non-Volatile Memory Express) hard drive. The second hard drive is a SATA (Serial Advanced Technology Attachment) or SAS (Serial Attached SCSI) hard drive. The status signal of the first hard drive is parsed based on the Vendor Specific Protocol (VPP). The VPP protocol is designed for hard drives from specific vendors to provide more efficient communication and status monitoring. If the hard drive type is determined to be the first hard drive, the VPP protocol is used to parse the hard drive status signal. This includes reading specific status registers and obtaining information such as temperature and health status to determine the operating status of the NVMe hard drive.
[0077] For the secondary hard drive, its status signal is parsed based on the SFF-8485 protocol. If the hard drive is identified as a secondary drive, further determination is needed regarding whether the signal originates from the motherboard or the RAID controller card. Depending on the source, different processing strategies are employed, such as the aforementioned filtering and parsing steps.
[0078] In an optional embodiment, the decoding module includes a counter unit; The counter unit is configured to increase the count value by 1 when detecting that the load signal drops from a high level to a low level, and to clear the count value when the count value is equal to n, where n is the number of data entries of the hard disk status signal transmitted in one cycle; The decoding module is configured to obtain a count value of the counter unit; determine the count value of the counter unit: if the count value is equal to n, determine that the hard disk status signal is the last data of the current cycle; if the count value is less than n, determine that the hard disk status signal is not the last data of the current cycle; The logic device is used to stop processing the hard disk status signal when the hard disk status signal is the last data of the current cycle, and mark the current cycle as the end state.
[0079] The counter unit is a dedicated hardware unit configured in the decoder module, corresponding to the load signal, and is designed to monitor changes in the load signal. The counter unit is configured to perform specific operations upon detecting a falling edge of the load signal. Specifically, when the load signal falls from a high level (logic 1) to a low level (logic 0), the counter unit's count value increases by 1, indicating that a new SGPIO data entry has been received within the current cycle. The counter unit is also configured to reset the count value to zero when the count value reaches n. n represents the number of hard drive status signal data entries transmitted within a cycle. For example, if five data entries are expected to be transmitted within a cycle, the counter is reset to zero when the count value reaches 5, preparing for data reception within the next cycle. The counter unit can track changes in the load signal in real time and accurately record the number of data entries received within the current cycle.
[0080] Read the current count value of the counter unit for subsequent judgment. According to the count value of the counter unit, determine how many SGPIO data have been received in the current cycle. In this embodiment, the counter unit can be implemented by a hardware logic circuit (such as FPGA or CPLD), or by a software timer and interrupt mechanism. The specific choice depends on the design requirements and performance requirements of the system. Judge the count value of the obtained counter unit. Compare the count value of the counter unit with the preset n. If the count value of the counter unit is equal to n, determine that the currently received hard disk status signal is the last data of the current cycle. When the count value is less than n, determine that the hard disk status signal is not the last data of the current cycle.
[0081] As can be seen, the present disclosure can accurately identify the last data entry in the current cycle by determining the number of falling edges of the load signal corresponding to the hard drive status signal. If the hard drive status signal is the last data entry in the cycle, the signal is discarded, thus avoiding erroneous signal interference and misjudgment of the hard drive status, thereby ensuring that maintenance personnel do not make incorrect hard drive replacements based on inaccurate signals. When the hard drive status signal comes from a RAID card, filtering is performed and parsed based on the SFF-8485 protocol, reducing signal noise and improving signal reliability. Furthermore, the present disclosure can select different parsing protocols based on the hard drive type (first or second hard drive), ensuring accurate determination of the hard drive status. When the hard drive status signal contains missing data, the present disclosure supplements it by reading the hard drive status signal content from the previous cycle and inferring the correct hard drive status based on this content. Furthermore, by calculating the frequency of missing data and triggering a prompt mechanism when it exceeds a threshold, maintenance personnel are promptly alerted to missing data, further avoiding erroneous judgments and operations, overcoming the shortcomings of the related art in the hard drive status location process.
[0082] Those skilled in the art will appreciate that the embodiments of the present disclosure can be provided as methods, apparatuses, electronic devices, and storage media. Therefore, the embodiments of the present disclosure can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, the embodiments of the present disclosure can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to magnetic disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.
[0083] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods and systems according to the embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer readable memory that can guide a computer or other programmable data processing terminal device to work in a specific way, so that the instructions stored in the computer readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0084] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present disclosure.
[0085] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used solely to distinguish one entity or operation from another, and do not necessarily require or imply any actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variant thereof is intended to encompass non-exclusive inclusion, such that a process, method, article, or terminal device comprising a list of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, article, or terminal device. Without further limitation, elements qualified by the phrase "comprising..." do not preclude the presence of additional identical elements in the process, method, article, or terminal device comprising the recited elements. The above detailed description of a hard disk status locating method and system provided by the present disclosure has been used. Specific examples have been used herein to illustrate the principles and implementation methods of the present disclosure. The description of the above examples is intended only to facilitate understanding of the method and its core concepts. Furthermore, those skilled in the art will appreciate that variations in the specific implementation and scope of application are possible based on the principles of the present disclosure. In summary, the contents of this specification should not be construed as limiting the present disclosure.
Claims
1. A method for locating hard disk status, characterized in that: The method comprises: Obtaining a hard disk status signal, wherein the hard disk status signal is generated according to the status of multiple hard disks connected to the hard disk backplane; If it is determined that the hard disk status signal originates from the motherboard, determining whether the hard disk status signal is the last data entry in the current cycle based on the number of falling edges of the load signal corresponding to the hard disk status signal; the number of falling edges of the load signal indicates the number of data entries to which the hard disk status signal belongs in a cycle; In the case that the hard disk status signal is the last piece of data in the current cycle, the hard disk status signal is discarded, and the status of the multiple hard disks is determined based on the remaining hard disk status signals except the last piece of data in the current cycle.
2. The method according to claim 1, characterized in that When it is determined that the hard disk status signal comes from a RAID card, the method further includes: Filtering the hard disk status signal, and parsing the filtered hard disk status signal based on the SFF-8485 protocol; The status of the multiple hard disks is determined based on the parsed hard disk status signals.
3. The method according to claim 1, characterized in that The method further comprises: Determine the hard disk type of the hard disk connected to the hard disk backplane, where the hard disk type is the first hard disk or the second hard disk, the hard disk status signal of the first hard disk is parsed based on the VPP protocol, and the hard disk status signal of the second hard disk is parsed based on the SFF-8485 protocol; In a case where the hard disk type is the first hard disk, parsing the hard disk status signal based on the VPP protocol, and determining the status of the multiple hard disks based on the parsed hard disk status signal; In the case that the hard disk type is the second hard disk, the source of the hard disk status signal is determined, and the source of the hard disk status signal includes a mainboard or a RAID card.
4. The method according to claim 1, wherein In a case where the hard disk status signal is not the last piece of data in the current cycle, the method further includes: Parsing the hard disk status signal based on the SFF-8485 protocol; The status of the multiple hard disks is determined based on the parsed hard disk status signals.
5. The method according to any one of claims 1 to 4, characterized in that: When it is determined that the hard disk status signal comes from the mainboard, the method further includes: determining whether the hard disk status signal has data missing according to the number of falling edges of the load signal corresponding to the hard disk status signal; In the case that there is data missing in the hard disk status signal, the current cycle is recorded as a data missing group, and the data content of the previous hard disk status signal is read from the reserved register; The data content of the previous hard disk status signal is used as the data content of the hard disk status signal, and the status of the multiple hard disks is determined based on the hard disk status signal.
6. The method according to claim 5, characterized in that The method further comprises: Count the number of hard disk status signals with data loss; When the number of the data missing groups is greater than a preset threshold, based on the negative feedback mechanism of the logic device, a data missing prompt is sent to the central processing unit deployed on the mainboard through a register interacting with the baseboard management controller.
7. The method according to claim 1, characterized in that The step of determining whether the hard disk status signal is the last piece of data in the current cycle according to the number of falling edges of the load signal corresponding to the hard disk status signal includes: Obtaining a count value of a counter corresponding to the load signal, the counter being configured to increment the count value by 1 when detecting that the load signal drops from a high level to a low level, and to reset the count value to zero when the count value is equal to n, where n is the number of data entries of the hard disk status signal transmitted in one cycle; Determining the count value of the counter: if the count value is equal to n, determining that the hard disk status signal is the last data of the current cycle; When the count value is less than n, determining that the hard disk status signal is not the last data of the current cycle; When the hard disk status signal is the last piece of data in the current cycle, discarding the hard disk status signal includes: In the case that the hard disk status signal is the last piece of data in the current cycle, the processing of the hard disk status signal is stopped, and the current cycle is marked as the end state.
8. A hard disk status positioning system, characterized in that: Applied to the steps of the method according to any one of claims 1 to 7, the system comprises: a hard disk mainboard and a hard disk backplane, the hard disk backplane is deployed with a logic device, and the logic device includes a decoding module; The hard disk backplane is connected to a plurality of hard disks; The hard disk mainboard is used to send a hard disk status signal to the logic device, wherein the hard disk status signal is generated according to the status of multiple hard disks connected to the hard disk backplane; The logic device is connected to the hard disk mainboard, and determines whether the hard disk status signal is the last data of the current cycle through the decoding module. The loading signal represents the number of data items to which the hard disk status signal belongs in a cycle. When the hard disk status signal is the last data of the current cycle, the hard disk status signal is discarded, and the status of the multiple hard disks is determined based on the remaining hard disk status signals except the last data of the current cycle.
9. The system according to claim 8, characterized in that The system also includes a RAID card; The RAID card is connected to the logic device and is used to send a hard disk status signal to the logic device; The logic device is used to determine the source of the hard disk status signal; when it is determined that the hard disk status signal comes from a RAID card, the hard disk status signal is filtered and the filtered hard disk status signal is parsed based on the SFF-8485 protocol; and the status of the multiple hard disks is determined based on the parsed hard disk status signal.
10. The system according to claim 8, wherein: The logic device is also used to determine the hard disk type of the hard disk connected to the hard disk backplane, where the hard disk type is the first hard disk or the second hard disk, the hard disk status signal of the first hard disk is parsed based on the VPP protocol, and the hard disk status signal of the second hard disk is parsed based on the SFF-8485 protocol; when the hard disk type is the first hard disk, the hard disk status signal is parsed based on the VPP protocol; and the status of the multiple hard disks is determined based on the parsed hard disk status signal.
11. The system according to claim 8, wherein: The decoding module includes a counter unit; The counter unit is configured to increase the count value by 1 when detecting that the load signal drops from a high level to a low level, and to clear the count value when the count value is equal to n, where n is the number of data entries of the hard disk status signal transmitted in one cycle; The decoding module is configured to obtain a count value of the counter unit; determine the count value of the counter unit: if the count value is equal to n, determine that the hard disk status signal is the last data of the current cycle; if the count value is less than n, determine that the hard disk status signal is not the last data of the current cycle; The logic device is used to stop processing the hard disk status signal when the hard disk status signal is the last data of the current cycle, and mark the current cycle as the end state.