Hard disk temperature acquisition method, server and substrate management controller

By sending request-aware commands to the hard disk to obtain temperature information using the substrate management controller in the server, the problem of timely acquisition of hard disk temperature information is solved and the reliability guarantee of hard disk work is achieved.

CN119537134APending Publication Date: 2025-02-28XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411551075.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the server, it is difficult for the existing technology to effectively solve this problem in how to obtain the temperature information of the hard disk in a timely manner to ensure the reliability of the hard disk's work.

Method used

The BMC sends a request perception command to an independent redundant disk array (Raid) card through the substrate management controller (BMC), and the Raid card then obtains perception data from the hard disk, including the temperature information of the hard disk. The BMC regulates the temperature based on this information.

Benefits of technology

It realizes that the hard disk timely feedbacks temperature information when temperature abnormalities occur, so that the server can perform relevant temperature control and ensures the reliability of the hard disk operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537134A_ABST
    Figure CN119537134A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a hard disk temperature obtaining method, a server and a baseboard management controller, the method is applied to the server, the server comprises a Raid card and a hard disk, and the method comprises the steps that a BMC sends a request sensing command to the hard disk through the Raid card; the request sensing command is used for acquiring sensing data of the hard disk; the BMC obtains sensing data of the hard disk for the request sensing command through the Raid card, the sensing data comprises a first field, and the first field is configured to indicate temperature information of the hard disk; and the BMC obtains the temperature information of the hard disk based on the sensing data of the hard disk. The temperature information of the hard disk when the temperature is abnormal can be obtained in time, and the working reliability of the hard disk is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to computer technology, and specifically to a method for obtaining hard disk temperature, a server, and a baseboard management controller. Background Art

[0002] In a server, storage devices are indispensable. They are used to store system applications and user data. Whether the hard disk can work stably will directly affect the reliability of the entire server.

[0003] Among the many factors that affect the stability of hard disk operation, hard disk temperature plays an important role. When the server is working, the hard disk needs to report its own temperature information in time, so that when the hard disk temperature is abnormal, the hard disk temperature can be reasonably adjusted according to the temperature information reported by the hard disk to ensure the stable operation of the hard disk.

[0004] Therefore, how to obtain the temperature information of the hard disk in time to ensure the reliability of the hard disk operation is an urgent problem to be solved. Summary of the invention

[0005] The hard disk temperature acquisition method, server, and baseboard management controller provided in the embodiments of the present application enable the server to promptly acquire the hard disk temperature information when an abnormal temperature occurs, thereby performing relevant temperature control based on the acquired hard disk temperature information to ensure the reliability of the hard disk operation.

[0006] In a first aspect, an embodiment of the present application provides a method for obtaining hard disk temperature, which is applied to a server, wherein the server includes a baseboard management controller BMC, an independent redundant disk array Raid card, and a hard disk; the BMC is connected to the Raid card, and the Raid card is connected to the hard disk; the method includes:

[0007] The BMC sends a request perception command to the hard disk through the Raid card; the request perception command is used to obtain perception data of the hard disk;

[0008] The BMC obtains, through the Raid card, sensing data of the hard disk in response to the request sensing command, wherein the sensing data includes a first field, and the first field is configured to indicate temperature information of the hard disk;

[0009] The BMC obtains temperature information of the hard disk based on the sensing data of the hard disk.

[0010] In this embodiment, the BMC controls the Raid card to send a request sensing command to the hard disk, and the hard disk can feedback sensing data indicating the temperature information of the hard disk after responding to the request sensing command. In this way, when the temperature of the hard disk is abnormal, the hard disk can timely feedback its own temperature information to the server, so that the server can perform relevant temperature control according to the temperature information of the hard disk, thereby ensuring the reliability of the hard disk operation.

[0011] In some embodiments, before the BMC sends a request sense command to the hard disk through the Raid card, the method further includes:

[0012] The BMC sends a query command to the hard disk through the Raid card;

[0013] If the BMC fails to obtain the temperature information of the hard disk, the BMC sends a request sensing command to the hard disk through the Raid card.

[0014] By implementing this embodiment, when it is determined that the hard disk has not responded to the temperature query command to feedback the current temperature information, a request sensing instruction is sent to the hard disk. On the one hand, it can ensure that the current temperature information of the hard disk can be obtained in time, and on the other hand, it can avoid the waste of resources caused by sending the request sensing instruction at will.

[0015] In some embodiments, detecting a status of the hard disk;

[0016] If the hard disk is in a formatted state, the BMC sends a request sensing command to the hard disk through the Raid card.

[0017] By implementing this embodiment, the hard disk can still feedback the current temperature information when it is in the formatting state, thereby ensuring the reliability of the hard disk operation.

[0018] In some embodiments, the first field is a Sense data descriptor field, and the Sense data descriptor field is configured to indicate a temperature value of the hard disk, and the method further includes:

[0019] The BMC controls the fan based on the temperature value of the hard disk.

[0020] By implementing this embodiment, the hard disk can also feed back the current temperature value to the BMC, so that the BMC can accurately control the hard disk temperature according to the current temperature value of the hard disk, which can not only ensure the reliability of the hard disk operation, but also avoid increasing the power consumption of the fan.

[0021] In some embodiments, the server further includes a fan, the fan is connected to the BMC, the sensing data further includes a second field and a third field, the second field is an additional detection code ASC field, and the third field is an additional detection code qualifier ASCQ field;

[0022] The ASC is configured as a first value, and the ASCQ is configured as a second value, and the first value and the second value are used to indicate a temperature threshold for triggering the fan to perform speed regulation; the method further includes:

[0023] If the temperature value of the hard disk reaches the temperature threshold for triggering the fan to perform speed regulation, the BMC starts the fan to dissipate heat for the hard disk;

[0024] Or, the ASC is configured as a third value, and the ASCQ is configured as a fourth value, and the third value and the fourth value are used to indicate an upper threshold value of the hard disk operating temperature; and the method further includes:

[0025] If the temperature value of the hard disk reaches the upper threshold of the hard disk operating temperature, the BMC controls the fan to increase the speed;

[0026] Or, the ASC is configured as a fifth value, and the ASCQ is configured as a sixth value, and the fifth value and the sixth value are used to indicate a temperature threshold at which the hard disk stops working; and the method further includes:

[0027] If the temperature value of the hard disk reaches the temperature threshold at which the hard disk stops working, the BMC determines that the hard disk has stopped working.

[0028] By implementing this embodiment, after the hard disk feeds back temperature information to the Raid card, the BMC can determine the current working condition of the hard disk based on the temperature information of the hard disk, thereby controlling the temperature of the hard disk according to the current working condition of the hard disk and ensuring the reliability of the hard disk operation.

[0029] In some embodiments, the sense data further includes a fourth field, the fourth field being an error class code sensekey field.

[0030] The ASC is a first value, the ASCQ is a second value, and the sense key field is used to indicate that attention should be paid to the hard disk temperature; the method further includes:

[0031] The BMC determines that the temperature of the hard disk is abnormal;

[0032] Or, the ASC is a third value, the ASCQ is a fourth value, and the sense key field is used to indicate that a recoverable error has occurred; and the method further includes:

[0033] The BMC determines that a recoverable error occurs in the hard disk;

[0034] Or, the ASC is a fifth value, the ASCQ is a sixth value, and the sense key field is used to indicate a hardware error; and the method further includes:

[0035] The BMC determines that an unrecoverable error occurs in the hard disk.

[0036] By implementing this embodiment, by setting different values ​​of the sense key field, the error condition of the hard disk can also be reflected, so that the server can determine the error condition of the hard disk according to the value reflected by the acquired sense key field, thereby controlling the temperature of the hard disk and ensuring the reliability of the hard disk operation.

[0037] In some embodiments, the hard disk obtains a temperature value and writes the temperature value into the first field.

[0038] In implementing this embodiment, a temperature value is written in the first field of the sensing data fed back by the hard disk, and the BMC can control the temperature of the hard disk according to the obtained hard disk temperature value to ensure the reliability of the hard disk operation.

[0039] In a second aspect, an embodiment of the present application provides a method for obtaining hard disk temperature, which is applied to a baseboard management controller BMC; the method comprises:

[0040] The BMC sends a sense data acquisition instruction to the Raid card, and the sense data acquisition instruction is used to instruct the Raid card to send a request sense command to the hard disk; the request sense command is used to obtain sense data of the hard disk;

[0041] The BMC receives the sensing data for the request sensing command sent by the Raid card, wherein the sensing data includes a first field, and the first field is configured to indicate the temperature information of the hard disk;

[0042] The BMC obtains temperature information of the hard disk based on the sensing data of the hard disk.

[0043] In a third aspect, an embodiment of the present application provides a server, which includes a baseboard management controller BMC, an independent redundant disk array Raid card, and a hard disk; the BMC is connected to the Raid card, and the Raid card is connected to the hard disk, and the server is used to execute the hard disk temperature acquisition method described in any one of the above embodiments.

[0044] In a fourth aspect, an embodiment of the present application provides a baseboard management controller BMC, and the baseboard management controller BMC is used to execute the method for obtaining the hard disk temperature as described in the above embodiment. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0046] Figure 1 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of the structure of another server provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of the structure of another server provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of the implementation flow of a method for obtaining hard disk temperature provided in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of a process flow for implementing the feedback of temperature information by a hard disk in response to a temperature query command provided in an embodiment of the present application;

[0051] Figure 6 A schematic diagram of the location of each field in the perception data provided in an embodiment of the present application;

[0052] Figure 7 A schematic diagram for describing the first field in a SCSI protocol provided in an embodiment of the present application;

[0053] Figure 8 A schematic diagram of the composition of a first field provided in an embodiment of the present application;

[0054] Fig. 9 A schematic diagram of description information of an ASC field and an ASCQ field provided in an embodiment of the present application;

[0055] Fig.10 A schematic diagram of description information of a sense key field provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0058] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0059] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0060] In a server, storage devices are indispensable. They are used to store system applications and user data. Servers can be as large as servers, as small as computer hosts, or other portable servers. Taking a server as an example, when the server is working, the memory, hard disk, motherboard and other electronic components installed in it will bring a lot of power consumption, which will cause the internal temperature of the server to rise. The operating reliability of each electronic component in the server is strongly related to the temperature of the server. Therefore, it is necessary to consider the heat dissipation problem of the server when it is working, to ensure that each electronic component works within the temperature range declared in the specification, so as to further ensure the reliability of each electronic component and the server as a whole.

[0061] When achieving heat dissipation for a server, it can generally be achieved from two aspects. First, the structure of the server can be optimized; second, the heat dissipation components in the server, such as fans, can be used to dissipate heat for each electronic component. Among them, the optimization of the server structure is achieved during the design of the hardware structure during the server development phase. Once the design is completed, it is difficult to change it during later use. By using the heat dissipation components in the server to dissipate heat for each electronic component, when the server is working, the temperature can be collected from each electronic component or sensor in the server, and the working condition of the heat dissipation components can be adjusted according to the collected temperature, thereby achieving temperature regulation of each electronic component.

[0062] An embodiment of the present application provides a hard disk management method, which is applied to a server.

[0063] Figure 1 A schematic diagram of the structure of a server provided in an embodiment.

[0064] like Figure 1 As shown, the server may include a Redundant Array of Independent Disks (Raid) card and multiple hard disks.

[0065] The hard disk is the main storage device in the server. In the embodiments of the present application, the type of the hard disk is not limited. For example, the hard disk may include a mechanical hard disk HDD and a solid-state hard disk SSD. Among them, the HDD hard disk may include a serial attached SCSI (SAS) hard disk, a serial ATA (SATA) hard disk, etc.; the SSD hard disk may include a non-volatile memory host controller interface specification (NVME) hard disk, etc.

[0066] Among them, the Raid card can be used to manage multiple hard disks in the server to meet the needs of actual business. The Raid card can establish a connection with at least one hard disk, and at least one hard disk can form a Raid group under the Raid card. The Raid group can be used to improve the performance of the server or reduce redundancy.

[0067] Raid groups can be divided into two categories: one is non-redundant Raid-level Raid groups, such as Raid 0, etc.; the other is redundant Raid-level Raid groups, such as Raid 1, Raid 5, etc. Among them, Raid 0 improves the read and write speed through striping technology, but does not provide data redundancy; Raid 1 provides complete data redundancy through mirroring technology, but the disk utilization is low; Raid 5 combines striping and parity checking to provide better data protection and performance balance.

[0068] The combined use of Raid cards and hard disks can improve data reliability, security, read and write performance, storage capacity, and server availability and stability.

[0069] Figure 2 FIG. 1 is a schematic diagram of the structure of a server provided in another embodiment. Figure 2 As shown, the server may include a Raid card, a hard disk and a management controller.

[0070] Among them, the management controller is a dedicated microcontroller that is independent of the server's operating system and main processor. It can be an independent hardware module or software or firmware integrated on the server motherboard.

[0071] The management controller may include a baseboard management controller (BMC), a service processor (SP), an integrated management module (IMM), an integrated Dell remote access (IDRAC), an integrated lightsout (iLO), hardware device management (HDM), etc.

[0072] Taking the management controller as BMC as an example, BMC can interact with the Raid card through a specific interface or protocol. For example, the Raid card can be connected to the motherboard of the server through a bus interface such as Peripheral Component Interconnect (PCI), and the BMC may also communicate with other components on the motherboard through similar interfaces or other dedicated interfaces (such as Intelligent Platform Management Bus, IPMB). Alternatively, in addition to the hardware interface, the BMC and the Raid card may also communicate through a software interface. These software interfaces may include drivers, APIs (application programming interfaces) or specific management protocols. Alternatively, the BMC can send instructions to the Raid card through an open standard protocol (Intelligent Platform Management Interface, IPMI) to obtain its status information, perform configuration changes, etc.

[0073] BMC can also be used for equipment information management, such as recording the server model, manufacturer, date, and component generation information, etc.; or, BMC can monitor and manage the status of the server, such as detecting the temperature, voltage and other health status of each component of the server; or, BMC can also remotely control and manage the server, such as managing the server's power on and off, restart, maintenance, firmware update, system installation, etc., which is not limited to the embodiments of the present application.

[0074] In the server, the Raid card, management controller and hard disk together form an efficient and stable data storage and management platform. The Raid card can improve the reliability, performance and capacity of data storage by combining multiple hard disks; the management controller ensures the stable operation of the system by monitoring and managing the hardware components of the server; and the hard disk, as the medium for data storage, is the most basic and important component of the entire system. The three interact and depend on each other, and together provide a solid guarantee for the stable operation of the server and data security.

[0075] Figure 3 FIG. 1 is a schematic diagram of a server structure provided in yet another embodiment. Figure 3 As shown, the server may include a Raid card, a management controller, a processor, a cooling system, a motherboard, a backplane, and at least one hard disk.

[0076] Among them, the motherboard is one of the core components of the server, providing hardware support and connection, controlling and managing resources, and completing data transmission and processing. The motherboard integrates various interfaces and slots for connecting components such as processors, memory, hard disks, and Raid cards.

[0077] The backplane may include multiple slots, and the backplane may be connected to components such as a mainboard, a hard disk, and a power supply through the slots and interfaces to ensure data transmission and power supply between them.

[0078] The processor may be a central processing unit (CPU), which is the computing core of the server and is responsible for executing program instructions and processing data.

[0079] The processor can be connected to the motherboard through the processor socket on the motherboard, and perform high-speed data transmission with other components (such as memory, hard disk, etc.) through the bus on the motherboard.

[0080] The processor may also interact with a management controller, such as through an Intelligent Platform Management Interface (IPMI).

[0081] The management controller can also interact with the Raid card in a variety of ways. For example, the management controller can be connected to the Raid card through an interface, such as a physical connection through the server's internal bus (such as PCIe, I2C or GPIO, etc.) to achieve data transmission; or, the management controller can also transmit data with the Raid card through a specific communication protocol, and the communication protocol may include the IPMI protocol, the System Management Interrupt (SMI) protocol, etc.; or, the management controller can also realize data transmission with the Raid card by running dedicated firmware or software. These software provide interfaces and tools for interacting with the Raid card. Through these tools, administrators can query the status of the Raid card, configure the Raid level, monitor the health of the disk, etc.

[0082] The RAID card can be set on a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIe) slot of the motherboard and electrically connected to the motherboard.

[0083] The RAID card interacts with the processor upstream through the PCIe protocol; the RAID card can interact with the backplane and hard disk downstream through the Serial Attached SCSI (SAS) protocol to manage the hard disk connected to the RAID card.

[0084] The cooling system may include fans, radiators or other cooling devices. Taking the cooling system as a fan as an example, the fan is connected to the motherboard through the fan interface on the motherboard. When the management controller obtains abnormal temperature of components inside the server, such as abnormal hard disk temperature or too high hard disk temperature, it can control the fan to dissipate heat from the hard disk.

[0085] The embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0086] Figure 4 The following is a schematic diagram of the implementation process of a method for obtaining hard disk temperature provided in an embodiment of the present application. The hard disk management method can be applied to Figures 1 to 3 Any server shown. Figure 4 As shown, the method may include the following steps:

[0087] Step 401: The BMC sends a request perception command to the hard disk through the Raid card. The request perception command is used to obtain perception data of the hard disk.

[0088] In some embodiments, before the BMC sends a request sensing command to the hard disk through the Raid card, the BMC may also send a query command to the hard disk through the Raid card, and the query command is used to instruct to query the temperature information of the hard disk; if the BMC does not obtain the temperature information of the hard disk, the BMC sends a request sensing command to the hard disk through the Raid card again.

[0089] In the embodiment of the present application, it is not limited to what kind of command the query command is. For example, in the SCSI protocol, the temperature query command may be an INQUIRY command (12h), which can be used to query the temperature information of the hard disk. In other protocols, the query command may also be other types of commands, which will not be described one by one here.

[0090] In some embodiments, the temperature information of the hard disk may be detected by a sensor, and the sensor may include a temperature sensor. The temperature sensor may be a sensor of the hard disk itself or a sensor in a server, and there is no limitation on this.

[0091] In the embodiment of the present application, the BMC sends a query command to the hard disk through the Raid card, which may be a query command to a single hard disk or to multiple hard disks, without limitation.

[0092] In the embodiment of the present application, the time for the BMC to send the query command to the hard disk through the Raid card is not limited. For example, the BMC can send the query command to the hard disk at a fixed time interval through the Raid card.

[0093] It can be understood that the BMC sends a query command to the hard disk through the Raid card, and the hard disk may respond to the query command to feed back temperature information to the BMC, or may not respond to the query command and not feed back temperature information to the BMC.

[0094] There are many possible reasons why the hard disk receives the query command but does not report the temperature information. For example, the hard disk itself may be faulty, such as physical damage or firmware damage. It may also be that the hard disk is in the formatting state. For example, in the description of the query command FORMAT UNIT in the SCSI protocol, it is not clear how to handle the received command when the hard disk is in the formatting state. In this way, the hard disk cannot respond to the temperature query command sent by the upper layer to report its own temperature information when it is in the formatting state.

[0095] That is, in some embodiments, the server may first detect the status of the hard disk, and if the hard disk is in a formatted state, execute the step of the BMC sending a request sensing command to the hard disk through the Raid card.

[0096] Therefore, different processing methods may be performed based on whether the hard disk responds to the query command.

[0097] For example, in some embodiments, if the hard disk responds to the query command and feeds back temperature information to the BMC, the following operations may be performed: Figure 5 The processing method shown.

[0098] like Figure 5 As shown, if the BMC sends a query command to the hard disk through the Raid card and receives the temperature information fed back by the hard disk, the BMC can execute the temperature control method corresponding to the temperature information according to the pre-set multiple temperature control methods after receiving the temperature information.

[0099] For example, it can be determined whether the temperature condition fed back in the temperature information of the hard disk reaches the control threshold; if the current temperature condition of the hard disk does not reach the control threshold, no processing is performed and the system continues to wait for the next hard disk temperature report; if the current temperature condition of the hard disk reaches the control threshold, the working mode of the cooling system in the server can be adaptively adjusted according to the temperature control method to cool the hard disk.

[0100] Here, the cooling system is a fan as an example. If it is determined that the working temperature of the hard disk is greater than the upper working temperature limit, the fan speed can be controlled to 1; if it is determined that the working temperature of the hard disk reaches the upper temperature limit indicating that the hard disk stops working, the fan speed can be controlled to 2, and speed 1 is less than speed 2.

[0101] In some embodiments, when a drop in hard disk temperature is detected, such as when the hard disk temperature information is lower than a control threshold, the fan speed may be restored to a low power consumption speed mode to avoid wasting fan power consumption.

[0102] In some embodiments, if the hard disk receives the query command but does not feed back the temperature information to the BMC, the BMC may send a request sensing command to the hard disk through the Raid card.

[0103] In the embodiments of the present application, there is no limitation on the timing of the BMC sending the request sensing command to the hard disk through the Raid card. For example, in some embodiments, the BMC may send the request sensing command to the hard disk through the Raid card when the hard disk receives the query command but does not feedback the temperature information. That is, when the hard disk fails to execute the query command, the BMC sends the request sensing command to the hard disk through the Raid card.

[0104] Alternatively, the BMC can also send a request sense command to the hard disk through the Raid card when the hard disk executes the query command and has fed back temperature information. In this way, the request sense command can be used to query the status information of the hard disk after the last normal execution of the query command.

[0105] In the embodiment of the present application, there is no limitation on the time when the BMC sends the request perception command to the hard disk through the Raid card. For example, the BMC may periodically send the request perception instruction to the hard disk through the Raid card; or, the BMC may send the request perception instruction to the hard disk through the Raid card after receiving the error information fed back by the hard disk; or, the BMC may send the request perception instruction to the hard disk through the Raid card when the BMC does not receive the relevant information fed back by the hard disk in response to the query command within a period of time.

[0106] The above-mentioned request sense command may implement the same function but may have different names due to different protocols or different versions of the protocol. Therefore, in the embodiments of the present application, it is not limited to what kind of command the request sense command is. For example, in the SCSI protocol, the request sense command may be the Request Sense command command, and the Request Sense command command may also be referred to as the Request Sense command or the Sense command. For example, in the "SCSI Block Commands-5 (SBS-5)" protocol, the Request Sense command command can be used to obtain detailed information about the device's previous command execution failure, thereby helping the device to debug or troubleshoot. In other protocols, the request sense command may also be other types of commands, which will not be described one by one here.

[0107] Step 402: The BMC obtains, through the Raid card, the sensed data of the hard disk in response to the sensed command requested, wherein the sensed data includes a first field, and the first field is configured to indicate the temperature information of the hard disk.

[0108] It should be noted that in the embodiment of the present application, the Raid card does not parse the sensed data, but the Raid card sends the sensed data to the BMC, which parses the sensed data to obtain the temperature information of the hard disk contained in the sensed data.

[0109] In the embodiment of the present application, the temperature information of the hard disk may be the temperature information detected by the hard disk when receiving a query command, or may be the temperature information detected by the hard disk when receiving a request sensing command, and there is no limitation on this.

[0110] Step 403: The BMC obtains temperature information of the hard disk based on the sensing data of the hard disk.

[0111] In the embodiment of the present application, the type of hard disk temperature information included in the sensed data is not limited. For example, the hard disk temperature information may include the hard disk temperature range, the hard disk temperature value, the hard disk temperature abnormality type, etc. The temperature abnormality type may be one or more of the temperature being too high, requiring a warning, etc. The temperature information will be introduced in detail later.

[0112] In some embodiments, the sense data includes a first field, which may be a Sense data descriptor field. The Sense data descriptor field may be configured to indicate a temperature value of the hard disk.

[0113] In some embodiments, the first field may include a first byte, a second byte, and a third byte, the first byte being used to indicate a descriptor type, the second byte being used to indicate a temperature value information length, and the third byte being used to indicate a current temperature value of the hard disk.

[0114] That is, the hard disk can obtain the temperature value, and can write the temperature value into the first field, such as writing the temperature value into the third byte of the first field.

[0115] In this way, the BMC can control the connected fans based on the temperature value of the hard disk.

[0116] In the embodiment of the present application, the type of the first field is not limited. For example, in the SCSI protocol, the first field may be a Sense data descriptor field. Of course, in other protocols, the first field may also be other types of fields, which will not be described one by one here.

[0117] Please continue to refer to Figure 6 ,like Figure 6 As shown, the 8th byte to the nth byte are where the first field is located.

[0118] Figure 7 A schematic diagram of describing the first field in the SCSI protocol is given. Figure 7 As shown, the first field can be described by a descriptor type field (Descriptor type field), and in order to describe the current temperature value of the hard disk, you can choose to use the value in the range of 80h to FFh in the descriptor type field list to customize the content of the first field.

[0119] Figure 8 A schematic diagram of the composition of the first field is given below. Figure 8 As shown, in some embodiments, the first byte may be a descriptor type (80h to FFh), the second byte may be an additional information length (ADDITIONALLENGTH(n-1), and the third byte may be a byte with customizable content. For example, after the temperature sensor detects the temperature value of the hard disk, it can write the temperature value of the hard disk into the third byte.

[0120] In some embodiments, the perception data further includes a fifth field, and the fifth field is used to indicate the length of the first field, that is, to indicate the length of subsequent bytes.

[0121] Please continue to refer to Figure 6 ,like Figure 6As shown, the 7th byte is the location of the fifth field, and the fifth field can be expressed as additional information length ADDITIONAL SENSE LENGTH (n-1), that is, the fifth field can be used to indicate the byte length occupied by the first field.

[0122] For example, if the current temperature value of the hard disk written in the first field is 1 byte, the total number of bytes of the first field is 1 byte for the information indicating the descriptor type and 1 byte for the information indicating the length of the temperature value information, which is a total of 3 bytes, that is, the value of the fifth field is 3.

[0123] Of course, in some embodiments, the sensing data may not feedback the specific temperature value of the hard disk, but may selectively feedback the current temperature range of the hard disk, so that the BMC determines the control method for the fan according to the current temperature range of the hard disk.

[0124] As in the first embodiment, in order to make the sensed data reflect the temperature information of the hard disk, the sensed data may further include a second field and a third field. Depending on the different protocols, the second field and the third field may also be different.

[0125] For example, in the SCSI protocol, the second field may be an additional detection code ASC field in the Sense data information, and the third field may be an additional detection code qualifier ASCQ field.

[0126] Of course, in other protocols, the second field and the third field may also be other types of fields, which will not be described here one by one.

[0127] It should be noted that in the SCSI protocol, different values ​​of the ASC field and the ASCQ field are described. Through the description information, it can be identified that some values ​​are open to users for customized descriptions of these values. Subsequently, these values ​​that users can customize the descriptions of are referred to as "custom values", and the values ​​that already have specific description information in the protocol are referred to as "defined values".

[0128] Fig. 9 A schematic diagram of description information of an ASC field and an ASCQ field is provided.

[0129] like Fig. 9 As shown, it can be seen from the content in the dotted box that when the ASC value is any value between 80h and FFh, the ASCQ field can also take any value, such as 01h, 02h, 03h, etc. At this time, the ASC field and the ASCQ field can be combined and described as "VENDOR SPECIFIC", that is, the user defines the relevant content.

[0130] When the ASC field and the ASCQ field both take the value of 00h, the ASC field and the ASCQ field can be described as "NOADDITIONAL SENSE INFORMATION", which is used to indicate additional information that limits the abnormal situation; when the ASC value is 0Ch and the ASCQ field value is 00h, the ASC field and the ASCQ field can be described as "WRITE ERROR", which is used to indicate a write error.

[0131] It can be seen that in the SCSI protocol, both the ASC field and the ASCQ field have values ​​that can be used for customization and values ​​with defined description information. By combining the values ​​that can be used for customization and the values ​​with defined description information, the ASC field and the ASCQ field can be combined to feedback the temperature information of the hard disk.

[0132] Based on this, ASC and ASCQ can be configured as custom values ​​so that the values ​​of ASC and ASCQ can directly reflect the temperature information of the hard disk.

[0133] For example, in some embodiments, ASC is configured as a first value, and ASCQ is configured as a second value, and the first value and the second value are used to indicate a temperature threshold T1 that triggers the fan to perform speed regulation.

[0134] In this way, if ASC in the perception data received by the BMC is configured as the first value and ASCQ is configured as the second value, the BMC can determine that the temperature value of the hard disk reaches the temperature threshold T2 that triggers the fan to perform speed regulation. Based on this, the BMC can start the fan to dissipate heat for the hard disk.

[0135] For example, as shown in Table 1 below, in a feasible embodiment, the additional detection code ASC field value can be 80h, and the additional detection code qualifier ASCQ field value can be 02h. These two fields can be combined to describe "the current temperature of the hard disk is greater than T2".

[0136] Alternatively, in some other embodiments, ASC is configured as a third value, ASCQ is configured as a fourth value, and the third value and the fourth value are used to indicate an upper threshold value of the hard disk operating temperature.

[0137] In this way, if ASC in the perception data received by the BMC is configured as the third value and ASCQ is configured as the fourth value, the BMC can determine that the temperature value of the hard disk reaches the upper limit threshold T1 of the hard disk operating temperature. Based on this, the BMC can control the fan to increase the speed, such as running at the maximum speed.

[0138] For example, as shown in Table 1 below, the additional detection code ASC field value may be 80h, the additional detection code qualifier ASCQ field value may be 01h, and these three fields may be combined to describe "the current temperature of the hard disk is greater than T1".

[0139] Alternatively, in some further embodiments, ASC is configured as the fifth value, and ASCQ is configured as the sixth value, and the fifth value and the sixth value are used to indicate the temperature threshold at which the hard disk stops working. Thus, if the temperature value of the hard disk reaches the temperature threshold T3 at which the hard disk stops working, the BMC can determine that the hard disk has stopped working.

[0140] For example, as shown in Table 1 below, the additional detection code ASC field value may be 80h, the additional detection code qualifier ASCQ field value may be 03h, and these three fields may be combined to describe "the current temperature of the hard disk is greater than T3".

[0141] Table 1

[0142]

[0143] Among them, T1 can be set as the upper threshold of the hard disk operating temperature, T2 can be set as the temperature threshold that triggers the fan to perform speed regulation, and T3 can be set as the upper temperature limit for the hard disk to stop working (shutdown). Here, T2≤T1<T3. Generally speaking, the normal operating temperature of the hard disk is usually between 40-50 degrees, and the extreme operating temperature should be less than 70 degrees.

[0144] By implementing this embodiment, after the hard disk feeds back abnormal temperature information to the BMC, the BMC can determine the fan control method based on the temperature information of the hard disk, thereby completing the control of the abnormal temperature of the hard disk and ensuring the reliability of the hard disk operation.

[0145] In some embodiments, the sense data may further include a fourth field, which is an error class code sense key field.

[0146] Of course, in other protocols, the fourth field may also be other types of fields, which will not be described here one by one.

[0147] Please continue to refer to Figure 6 , Figure 6 A schematic diagram of the composition of perception data is given. Figure 6 As shown in the figure, the dotted box shows the location of the sense key field, ASC field, and ASCQ field.

[0148] The following uses the fourth field as a sense key field, the second field as an ASC field, and the third field as an ASCQ field as an example to describe how to use the second field, the third field, and the fourth field in combination to reflect the temperature information of the hard disk.

[0149] In the SCSI protocol, the sense key field, ASC field, and ASCQ field can be used in combination to reflect the hard disk error condition and specific error information, providing a top-down method for the server to determine the status reported by the hard disk.

[0150] First, in the SCSI protocol, different values ​​of the sense key field are described. Through the description information, it can be identified that some values ​​are open to users to customize the description of these values.

[0151] Fig.10 A schematic diagram of the description information of a sense key field is given.

[0152] like Fig.10 As shown, when the sense key field value is 0h, the field can be used to indicate that there is no error; when the sense key field value is 1h, the field can be described as "RECOVERED ERROR", that is, it is used to indicate that a recoverable error has occurred, and this error usually does not affect the integrity of the data; when the sense key field value is 2h, the field can be described as being used to indicate that the device is not ready, and the error indicates that the target device (such as a hard disk drive) is currently inaccessible; when the sense key field value is 3h, the field can be used to indicate that a medium error has occurred, indicating that an unrecoverable error has been found on the data storage medium during the execution of the command; when the sense key field value is 4h, the field can be described as "HARDWARE ERROR", that is, it is used to indicate that an unrecoverable hardware error has occurred; when the sense key field value is 6h, the field can be described as "UNIT ATTENTION", that is, it is used to indicate that attention is required; when the sense key field value is 9h, the field can be described as "VENDOR SPECIFIC", which can be customized by the user, and the user can set the meaning of the field arbitrarily according to the actual situation.

[0153] Of course, when the sense key field value is a defined value for describing the abnormality type caused by command execution, the sense key field can only reflect that the hard disk has an abnormality, and the BMC cannot know whether the abnormality type of the hard disk is related to the temperature abnormality based on the field.

[0154] Based on this, the ASC field and the ASCQ field are also needed to assist in reflecting the temperature information of the hard disk. In the existing SCSI protocol, there are no defined ASC field and ASCQ field values ​​that can be used to reflect the temperature anomaly information of the hard disk. Therefore, the values ​​of the ASC field and the ASCQ field need to be customized values, and the description of the customized values ​​is used to indicate the scene information of the hard disk temperature anomaly.

[0155] In the existing SCSI protocol, when the ASC field value is specified to be between 80h and FFh, the description content corresponding to the value can be customized.

[0156] It can be seen that in the SCSI protocol, the sense key field, ASC field, and ASCQ field all have customizable values ​​and values ​​with defined descriptive information. By combining the customizable values ​​and the values ​​with defined descriptive information, the sense key field, ASC field, and ASCQ field can be combined to feedback the hard disk temperature information.

[0157] For example, in some embodiments, ASC can be set to a first value, ASCQ can be set to a second value, and the sense key field is used to indicate that attention should be paid to the hard disk temperature. In this way, the BMC can determine that the hard disk temperature is abnormal based on the combined description of the sense key field, the ASC field, and the ASCQ field.

[0158] It should be noted that, in some embodiments, if the temperature of the hard disk is abnormal, but the hard disk temperature does not reach the temperature threshold T2 that triggers the fan to perform speed regulation, the BMC may still not start the fan to dissipate heat for the hard disk.

[0159] For example, the sense key field may be set to a custom value indicating that attention should be paid to the hard disk temperature. As shown in Table 2 below, the sense key field may be set to 6h, and the field may be customized to indicate that attention should be paid to the hard disk temperature.

[0160] In this case, you can also set the values ​​of the ASC field and the ASCQ field to custom values, that is, ASC is the first value and ASCQ is the second value. For example, the ASC field value can be 80h and the ASCQ field value can be 02h. These two fields can be combined to describe "the current temperature of the hard disk is greater than T2".

[0161] In this way, when the sense key field value contained in the sense data received by the BMC is 6h, the ASC field value is 80h, and the ASCQ field value is 02h, the BMC can determine that the current temperature of the hard disk is greater than T2.

[0162] Alternatively, in some other embodiments, ASC is the third value, ASCQ is the fourth value, and the sense key field is used to indicate that a recoverable error has occurred. In this way, the BMC can determine that a recoverable error has occurred in the hard disk based on the combined description of the sense key field, the ASC field, and the ASCQ field.

[0163] For example, as shown in Table 2 below, when selecting the value of the sense key field, the sense key field value can be selected as 1h, and the sense key field value of 1h indicates that a recoverable error has occurred in the hard disk. At the same time, to further illustrate the temperature information of the hard disk, the ASC value can be set to a third value and the ASCQ value can be set to a fourth value, such as the third value is 80h and the fourth value is 01h. The third value and the fourth value are used to indicate the upper limit threshold of the hard disk operating temperature.

[0164] In this way, when the sense key field value contained in the perception data received by the BMC is 1h, the ASC field value is 80h, and the ASCQ field value is 01h, the BMC can know that a recoverable error has occurred in the hard disk and the temperature value of the hard disk has reached the upper limit threshold T1 of the hard disk operating temperature. Based on this, the BMC can control the fan to increase the speed, such as running at the maximum speed.

[0165] Alternatively, in some further embodiments, ASC is the fifth value, ASCQ is the sixth value, and the sense key field is used to indicate a hardware error. In this way, the BMC can determine that an unrecoverable error occurs in the hard disk based on the combined description of the sense key field, the ASC field, and the ASCQ field.

[0166] For example, as shown in Table 2 below, the sense key field of the error code is set to 4h, and the sense key field value is 4h, indicating that an unrecoverable error has occurred in the hard disk. At the same time, to further illustrate the temperature information of the hard disk, the ASC value can be set to the fifth value and the ASCQ value to the sixth value, such as the fifth value is 80h and the sixth value is 03h. The fifth value and the sixth value are used to indicate the temperature threshold at which the hard disk stops working.

[0167] In this way, when the sense key field value contained in the perception data received by the BMC is 4h, the ASC field value is 80h, and the ASCQ field value is 03h, the BMC can know that an unrecoverable error has occurred in the hard disk and the temperature value of the hard disk has reached the temperature threshold T3 at which the hard disk stops working.

[0168] Table 2

[0169]

[0170] Among them, T1 can be set as the upper threshold of the hard disk operating temperature, T2 can be set as the temperature threshold that triggers the fan to perform speed regulation, and T3 can be set as the upper temperature limit for the hard disk to stop working (shutdown). Here, T2≤T1<T3. Generally speaking, the normal operating temperature of the hard disk is usually between 40-50 degrees, and the extreme operating temperature should be less than 70 degrees.

[0171] By implementing this embodiment, the server can obtain the specific temperature range of the hard disk, and thus accurately control the temperature of the hard disk according to the temperature range of the hard disk, thereby ensuring the reliability of the hard disk operation.

[0172] In some embodiments, when the value of the sense key field is a value defined in the protocol for describing the type of exception caused by command execution, the sense key field can only reflect that the hard disk has an abnormality, and the server cannot know whether the type of hard disk abnormality is related to temperature abnormality based on this field.

[0173] Based on this, in some embodiments, the ASC value can be 80h, the ASCQ value can be 00h, and it is pre-defined that these two fields can be combined to describe "the current temperature of the hard disk is greater than T1, or the current temperature of the hard disk is greater than T2, or the current temperature of the hard disk is greater than T3".

[0174] In this way, if the sense key field value contained in the perception data received by the BMC is 6h, the ASC field value is 80h, and the ASCQ field value is 00h, the server can determine that the hard disk has an abnormal situation that requires attention. The abnormal situation may be that the current temperature of the hard disk is greater than T1, or the current temperature of the hard disk is greater than T2, or the current temperature of the hard disk is greater than T3.

[0175] Of course, in some embodiments, the value of the sense key field may also be a custom value indicating the type of abnormality. For example, if the sense key field value is 9h, the field may be customized to indicate that the hard disk is abnormal, or that the hard disk has a temperature abnormality, etc. In this case, the values ​​of the ASC field and the ASCQ field may also be custom values.

[0176] Refer to Table 3 below. For example, if the error class code sense key field value is 9h, the additional detection code ASC field value is 80h, and the additional detection code qualifier ASCQ field value is 00h, these three fields can be combined to describe "the hard disk has a temperature abnormality, and the abnormal situation is that the current temperature of the hard disk is greater than T1, or the current temperature of the hard disk is greater than T2, or the current temperature of the hard disk is greater than T3".

[0177] Table 3

[0178]

[0179] Among them, T1 can be set as the upper threshold of the hard disk operating temperature, T2 can be set as the temperature threshold that triggers the fan to perform speed regulation, and T3 can be set as the upper temperature limit for the hard disk to stop working (shutdown). Here, T2≤T1<T3. Generally speaking, the normal operating temperature of the hard disk is usually between 40-50 degrees, and the extreme operating temperature should be less than 70 degrees.

[0180] It can be understood that for the above embodiment, the server can only determine that the hard disk has a temperature abnormality based on the combination of the fourth field, the second field and the third field, or can only determine that the temperature abnormality of the hard disk may be "the current temperature of the hard disk is greater than T1, or the current temperature of the hard disk is greater than T2, or the current temperature of the hard disk is greater than T3", but cannot accurately determine the range of the current temperature of the hard disk, and therefore cannot control the cooling system for reasonable regulation to ensure the working reliability of the hard disk while reducing the power consumption of the cooling system.

[0181] Based on this, on the basis of the above embodiment, the temperature value of the hard disk provided by the first field in the perception data can also be combined to jointly determine the control method of the fan.

[0182] By implementing the above implementation mode, the hard disk can feed back perception data to the BMC, and the perception data includes the temperature information of the hard disk, such as hard disk abnormality, hard disk temperature value, etc., so that when the hard disk has a temperature abnormality, it can promptly and successfully feed back its own temperature abnormality information, so that the server can perform relevant temperature control according to the temperature abnormality information of the hard disk, thereby ensuring the reliability of the hard disk operation.

[0183] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0184] Based on the above-mentioned embodiments, the present application provides a method for obtaining hard disk temperature, which is applied to a baseboard management controller BMC; the method includes:

[0185] The BMC sends a sense data acquisition instruction to the Raid card, and the sense data acquisition instruction is used to instruct the Raid card to send a request sense command to the hard disk; the request sense command is used to obtain sense data of the hard disk;

[0186] The BMC receives the sensing data for the request sensing command sent by the Raid card, wherein the sensing data includes a first field, and the first field is configured to indicate the temperature information of the hard disk;

[0187] The BMC obtains temperature information of the hard disk based on the sensing data of the hard disk.

[0188] In some embodiments, the baseboard management controller BMC may further execute the method described in the above embodiments.

[0189] The embodiment of the present application provides a server, a baseboard management controller BMC, an independent redundant disk array Raid card, and a hard disk; the BMC is connected to the Raid card, and the Raid card is connected to the hard disk.

[0190] The steps in the method provided in the above method embodiment can be executed through the BMC, Raid card and hard disk in the server.

[0191] An embodiment of the present application provides a baseboard management controller BMC, through which the steps in the method provided in the above method embodiment can be executed.

[0192] It should be understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the embodiments, and the same or similar aspects can refer to each other. For the sake of brevity, this article will not go into details.

[0193] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The above described embodiments are only exemplary, and the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0194] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0195] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0196] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for obtaining hard disk temperature, characterized in that: Applied to a server, the server comprises a baseboard management controller BMC, an independent redundant disk array Raid card, and a hard disk; the BMC is connected to the Raid card, and the Raid card is connected to the hard disk; the method comprises: The BMC sends a request perception command to the hard disk through the Raid card; the request perception command is used to obtain perception data of the hard disk; The BMC obtains, through the Raid card, sensing data of the hard disk in response to the request sensing command, wherein the sensing data includes a first field, and the first field is configured to indicate temperature information of the hard disk; The BMC obtains temperature information of the hard disk based on the sensing data of the hard disk.

2. The method according to claim 1, characterized in that Before the BMC sends a request sensing command to the hard disk through the Raid card, the method further includes: The BMC sends a query command to the hard disk through the Raid card; If the BMC fails to obtain the temperature information of the hard disk, the BMC sends a request sensing command to the hard disk through the Raid card.

3. The method according to claim 1, characterized in that The method further comprises: Detecting the status of the hard disk; If the hard disk is in a formatted state, the BMC sends a request sensing command to the hard disk through the Raid card.

4. The method according to claim 1, characterized in that: The first field is a Sense data descriptor field, and the Sense data descriptor field is configured to indicate a temperature value of the hard disk. The method further includes: The BMC controls the fan based on the temperature value of the hard disk.

5. The method according to any one of claims 1 to 4, characterized in that: The server further includes a fan, the fan is connected to the BMC, the sensing data further includes a second field and a third field, the second field is an additional detection code ASC field, and the third field is an additional detection code qualifier ASCQ field; The ASC is configured as a first value, and the ASCQ is configured as a second value, and the first value and the second value are used to indicate a temperature threshold for triggering the fan to perform speed regulation; the method further includes: If the temperature value of the hard disk reaches the temperature threshold for triggering the fan to perform speed regulation, the BMC starts the fan to dissipate heat for the hard disk; Or, the ASC is configured as a third value, and the ASCQ is configured as a fourth value, and the third value and the fourth value are used to indicate an upper threshold value of the hard disk operating temperature; and the method further includes: If the temperature value of the hard disk reaches the upper threshold of the hard disk operating temperature, the BMC controls the fan to increase the speed; Or, the ASC is configured as a fifth value, and the ASCQ is configured as a sixth value, and the fifth value and the sixth value are used to indicate a temperature threshold at which the hard disk stops working; and the method further includes: If the temperature value of the hard disk reaches the temperature threshold at which the hard disk stops working, the BMC determines that the hard disk has stopped working.

6. The method according to claim 5, characterized in that The sense data further includes a fourth field, which is an error class code sense key field. The ASC is a first value, the ASCQ is a second value, and the sense key field is used to indicate that attention should be paid to the hard disk temperature; the method further includes: The BMC determines that the temperature of the hard disk is abnormal; Or, the ASC is a third value, the ASCQ is a fourth value, and the sense key field is used to indicate that a recoverable error has occurred; and the method further includes: The BMC determines that a recoverable error occurs in the hard disk; Or, the ASC is a fifth value, the ASCQ is a sixth value, and the sense key field is used to indicate a hardware error; and the method further includes: The BMC determines that an unrecoverable error occurs in the hard disk.

7. The method according to claim 4, characterized in that The method further comprises: The hard disk acquires a temperature value and writes the temperature value into the first field.

8. A method for obtaining hard disk temperature, characterized in that: Applied to a baseboard management controller BMC; the method comprises: The BMC sends a sense data acquisition instruction to the Raid card, and the sense data acquisition instruction is used to instruct the Raid card to send a request sense command to the hard disk; the request sense command is used to obtain sense data of the hard disk; The BMC receives the sensing data for the request sensing command sent by the Raid card, wherein the sensing data includes a first field, and the first field is configured to indicate the temperature information of the hard disk; The BMC obtains temperature information of the hard disk based on the sensing data of the hard disk.

9. A server, characterized in that: It includes a baseboard management controller BMC, an independent redundant disk array Raid card, and a hard disk; the BMC is connected to the Raid card, the Raid card is connected to the hard disk, and the server is used to execute the hard disk temperature acquisition method as described in any one of claims 1 to 7.

10. A baseboard management controller BMC, characterized in that: The baseboard management controller BMC is used to execute the method for obtaining hard disk temperature as claimed in claim 8.