BMC out-of-band hard disk management method
Direct reading of NVME hard disk information through BMC's I2C interface solves the problem that BMC cannot promptly reflect NVME hard disk information, and realizes timely update and reliable management of NVME hard disk information.
Patent Information
- Application Number
- CN202311753852.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
Currently, the server BMC only collects VPD information for NVME hard disk management, and cannot promptly reflect the information of hot-swap NVME hard disk. The accuracy of the information depends on the BIOS acquisition and the stability of the BIOS communication with BMC, increasing the chance of failure.
The NVME hard disk information is directly read through the BMC's I2C interface, and the status of the NVME hard disk, including the in-bit status, hard disk information, etc., and update this information to the local storage and Dbus object for display on the web page.
It reduces the communication loss between BIOS and BMC, improves the timeliness and reliability of BMC for NVME information updates, and supports BMC's perception of NVME hard disk hot plugging.
Smart Images

Figure CN120179472A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer firmware, and particularly relates to a method for out-of-band management of hard disks by BMC. Background Art
[0002] Currently, most servers use BMC (Baseboard Management Controller) to remotely manage and monitor server hardware, including the monitoring and management of NVME (Non-Volatile Memory Express) hard disks. Currently, most BMC manufacturers manage NVME hard disks in an in-band manner, which requires the BIOS (basic input / output system) or the OS (Operating System) to identify the NVME hard disk information and then forward the information to the BMC.
[0003] Currently, the server BMC only collects and displays VPD information for NVME hard disks. The NVME hard disk information is sent from the BIOS to the BMC after the server boots up, and the display includes static information such as presence, manufacturer, and serial number information. Limited to the fact that the basic information of the NVME hard disk can only be viewed through the web interface after the BIOS starts up, the information of the hot-pluggable NVME hard disk after the BIOS starts up cannot be reflected in the BMC management interface in a timely manner. Only after restarting the BIOS can the status of the NVME hard disk be updated. At the same time, the accuracy of the information depends on the accuracy of the information obtained by the BIOS and the stability of the communication between the BIOS and the BMC, increasing the chance of faults. Summary of the Invention
[0004] The present invention provides a method for out-of-band management of hard disks by BMC to solve the technical problem that the information of hot-pluggable NVME hard disks cannot be reflected in the BMC management interface in a timely manner.
[0005] An embodiment of the present invention provides a method for out-of-band management of hard disks by BMC, including:
[0006] The BMC obtains the management configuration information of the NVME hard disk that needs to be monitored currently, and uses the management configuration information of the NVME hard disk to determine whether the NVME hard disk is currently in the present state;
[0007] If it is determined that the NVME hard disk is currently in the present state, the BMC obtains the current hard disk information of the NVME hard disk through the I2C interface;
[0008] The BMC updates the current hard disk information of the NVMe hard disk to the previously stored hard disk information locally, and updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, so as to display the current hard disk information of the NVMe on the web page;
[0009] Wherein, the BMC refers to the Baseboard Management Controller; the NVMe refers to the Non-Volatile Memory Host Controller Interface Specification.
[0010] Preferably, it further includes:
[0011] If it is determined that the NVMe hard disk is currently in the not-in-place state, the BMC clears the previously stored hard disk information of the NVMe hard disk locally and deletes each attribute in the Dbus object corresponding to the NVMe hard disk.
[0012] Preferably, it further includes:
[0013] The BMC is connected to each NVMe hard disk through the I2C interface, and generates and saves the management configuration information of each NVMe hard disk according to the I2C interface of each NVMe hard disk; wherein, the management configuration information includes the NVMe hard disk number, the I2C bus number used for the NVMe hard disk to connect to the BMC, the in-position GPIO detection pin number, the LED light control pin number, and the temperature threshold value;
[0014] The BMC generates a Dbus object for storing the NVMe hard disk information according to the management configuration information of each NVMe hard disk.
[0015] Preferably, the BMC obtains the management configuration information of the NVMe hard disk that needs to be monitored currently, including:
[0016] The BMC starts a timing service, and when the timing time arrives, determines the NVMe hard disk that needs to be monitored currently;
[0017] The BMC obtains the management configuration information of the NVMe hard disk according to the determined NVMe hard disk that needs to be monitored currently.
[0018] Preferably, determining whether the NVMe hard disk is currently in the in-position state by using the management configuration information of the NVMe hard disk includes:
[0019] The BMC checks whether the in-position state information is configured for the in-position GPIO detection pin in the management configuration information of the NVMe hard disk;
[0020] If the in-position status information is configured for the in-position GPIO detection pin in the management configuration information of the NVMe hard disk, and the in-position status information indicates in-position, the BMC determines that the NVMe hard disk is currently in the in-position state;
[0021] If the in-position status information is configured for the in-position GPIO detection pin in the management configuration information of the NVMe hard disk, and the in-position status information indicates not in-position, the BMC determines that the NVMe hard disk is currently in the not in-position state.
[0022] Preferably, using the management configuration information of the NVMe hard disk to determine whether the NVMe hard disk is currently in the in-position state further includes:
[0023] If the in-position status information is not configured for the in-position GPIO detection pin in the management configuration information of the NVMe hard disk, the BMC determines whether the NVMe hard disk can be accessed;
[0024] If it is determined that the NVMe hard disk can be accessed, the BMC determines that the NVMe hard disk is currently in the in-position state;
[0025] If it is determined that the NVMe hard disk cannot be accessed, the BMC determines that the NVMe hard disk is currently in the not in-position state.
[0026] Preferably, the current hard disk information of the NVMe hard disk includes: hard disk firmware version, hard disk serial number, product model, manufacturer, hard disk temperature value, power consumption value, estimated service life, and health status; among them, the health status includes hard disk temperature alarm status, hard disk capacity alarm status, hard disk degradation alarm status, media alarm status, and hard disk backup alarm status.
[0027] Preferably, after the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, it includes:
[0028] The BMC updates the hard disk temperature value in the current hard disk information of the NVMe hard disk to the NVMe management bus in the Dbus object, and at the same time updates the hard disk firmware version, hard disk serial number, product model, manufacturer, power consumption value, estimated service life, and health status in the current hard disk information of the NVMe hard disk to the Inventory management bus in the Dbus object.
[0029] Preferably, after the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, it further includes:
[0030] The BMC compares the hard disk temperature value in the current hard disk information of the NVMe hard disk with the temperature threshold value in the NVMe hard disk management configuration information. If the hard disk temperature value is greater than the temperature threshold value, the LED corresponding to the LED lamp control pin number is lit to indicate that there is an alarm for the NVMe hard disk;
[0031] The BMC detects the health status in the current hard disk information of the NVMe hard disk, and when it detects that the health status is abnormal, it lights the LED corresponding to the LED lamp control pin number to indicate that there is an alarm for the NVMe hard disk.
[0032] Preferably, after the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, it further includes:
[0033] If the hard disk temperature value is not greater than the temperature threshold value and when it is detected that the health status is normal, the LED corresponding to the LED lamp control pin number is turned off to indicate that there is no alarm for the NVMe hard disk.
[0034] The beneficial effect of the present invention is that by directly reading the NVMe hard disk information through the I2C interface of the BMC to obtain the NVMe hard disk status, the communication loss between the BIOS and the BMC is reduced, the timeliness and reliability of the BMC to update the NVMe information are increased, and the BMC's perception of the hot plugging of the NVMe hard disk is supported. Description of the Drawings
[0035] Figure 1 is a flowchart of a method for the BMC to manage the hard disk out of band provided by the present invention;
[0036] Figure 2 is a schematic diagram of a device for the server BMC to monitor and display the NVMe hard disk status provided by the present invention;
[0037] Figure 3 is a detailed flowchart of a method for the BMC to manage the hard disk out of band provided by the present invention. Detailed Embodiments
[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. In the subsequent descriptions, the use of suffixes such as "module", "component" or "unit" to represent elements is only for the convenience of explaining the present invention, and it has no specific meaning by itself. Therefore, "module", "component" or "unit" can be used interchangeably.
[0039] Figure 1 is a flowchart of a method for the BMC to manage the hard disk out of band provided by the present invention, asFigure 1 As shown in
[0040] Step S101: The BMC obtains the management configuration information of the NVME hard disk that needs to be monitored currently, and determines whether the NVME hard disk is currently in the in-position state by using the management configuration information of the NVME hard disk;
[0041] Step S102: If it is determined that the NVME hard disk is currently in the in-position state, the BMC obtains the current hard disk information of the NVME hard disk through the I2C interface;
[0042] Step S103: The BMC updates the current hard disk information of the NVME hard disk to the previously stored hard disk information in local storage, and updates the current hard disk information of the NVME hard disk to each attribute in the Dbus object corresponding to the NVME hard disk, so as to display the current hard disk information of the NVME on the web page.
[0043] The embodiment of the present invention further includes: If it is determined that the NVME hard disk is currently not in the in-position state, the BMC clears the previously stored hard disk information of the NVME hard disk in local storage, and deletes each attribute in the Dbus object corresponding to the NVME hard disk.
[0044] The embodiment of the present invention further includes: The BMC is connected to each NVME hard disk through the I2C interface, and generates and saves the management configuration information of each NVME hard disk according to the I2C interface of each NVME hard disk; wherein, the management configuration information includes the NVME hard disk number, the I2C bus number used for the NVME hard disk to connect to the BMC, the in-position GPIO detection pin number, the LED light control pin number, and the temperature threshold value; the BMC generates a Dbus object for storing the NVME hard disk information according to the management configuration information of each NVME hard disk.
[0045] Wherein, the BMC obtains the management configuration information of the NVME hard disk that needs to be monitored currently, including: The BMC starts a timing service, and determines the NVME hard disk that needs to be monitored currently when the timing time arrives; the BMC obtains the management configuration information of the NVME hard disk according to the determined NVME hard disk that needs to be monitored currently.
[0046] Specifically, determining whether the NVMe hard disk is currently in place by using the management configuration information of the NVMe hard disk includes: the BMC checks whether the in-place status information is configured for the in-place GPIO detection pin in the management configuration information of the NVMe hard disk; if the in-place status information is configured for the in-place GPIO detection pin in the management configuration information of the NVMe hard disk and the in-place status information indicates in place, the BMC determines that the NVMe hard disk is currently in place; if the in-place status information is configured for the in-place GPIO detection pin in the management configuration information of the NVMe hard disk and the in-place status information indicates not in place, the BMC determines that the NVMe hard disk is currently not in place.
[0047] Specifically, determining whether the NVMe hard disk is currently in place by using the management configuration information of the NVMe hard disk further includes: if the in-place status information is not configured for the in-place GPIO detection pin in the management configuration information of the NVMe hard disk, the BMC determines whether it can access the NVMe hard disk; if it is determined that the NVMe hard disk can be accessed, the BMC determines that the NVMe hard disk is currently in place; if it is determined that the NVMe hard disk cannot be accessed, the BMC determines that the NVMe hard disk is currently not in place.
[0048] Furthermore, the current hard disk information of the NVMe hard disk includes: hard disk firmware version, hard disk serial number, product model, manufacturer, hard disk temperature value, power consumption value, estimated service life, and health status; where the health status includes hard disk temperature warning status, hard disk capacity warning status, hard disk degradation warning status, media warning status, and hard disk backup warning status.
[0049] Among them, the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, including: the BMC updates the hard disk temperature value in the current hard disk information of the NVMe hard disk to the NVMe management bus in the Dbus object, and at the same time updates the hard disk firmware version, hard disk serial number, product model, manufacturer, power consumption value, estimated service life, and health status in the current hard disk information of the NVMe hard disk to the Inventory management bus in the Dbus object.
[0050] After the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, it further includes: the BMC compares the hard disk temperature value in the current hard disk information of the NVMe hard disk with the temperature threshold value in the NVMe hard disk management configuration information. If the hard disk temperature value is greater than the temperature threshold value, it lights up the LED corresponding to the LED lamp control pin number to indicate that there is an alarm for the NVMe hard disk; the BMC detects the health status in the current hard disk information of the NVMe hard disk, and when it detects that the health status is abnormal, it lights up the LED corresponding to the LED lamp control pin number to indicate that there is an alarm for the NVMe hard disk.
[0051] Further, after the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, it further includes: if the hard disk temperature value is not greater than the temperature threshold value and when it detects that the health status is normal, it turns off the LED corresponding to the LED lamp control pin number to indicate that there is no alarm for the NVMe hard disk.
[0052] As Figure 2 shown, an embodiment of the present invention provides a schematic diagram of a device for a server BMC to monitor and display the status of an NVMe hard disk. The BMC connects multiple NVMe hard disks through an I2C expansion device to implement a hardware channel for the BMC to manage all NVMe hard disks in the hard disk enclosure.
[0053] The NVMe hard disk is connected through an I2C interface and an I2C expansion chip, and the I2C expansion chip and the BMC are connected through an I2C interface. The BMC periodically obtains the status information of the NVMe hard disk through the I2C interface. It judges whether the NVMe hard disk is in place. If it is in place, it updates the status information of the NVMe, and at the same time obtains the temperature information of the NVMe hard disk to check whether it exceeds the alarm threshold value; if it is detected that it is not in place, it clears the original NVMe hard disk information and generates a log to inform the user that the hard disk has been removed. The obtained NVMe hard disk information supports Dbus interfaces and redfish interfaces for external devices to query and obtain.
[0054] As Figure 3 shown, in the present invention, the BMC directly manages the NVMe hard disk by sending NVMe-MI commands through the I2C interface, supports the display of VPD information and status alarm information of the NVMe hard disk, and at the same time supports supervising the temperature of the NVMe hard disk as a continuous sensor of the BMC. The specific execution process is as follows:
[0055] Step 1: Obtain NVME hard drive management configuration information (configuration information includes I2C bus number, in-position GPIO detection pin, LED control object path, temperature threshold, etc.). The NVME hard drive management configuration is generated during firmware customization (stored in the BMC local file system in the form of a configuration file). Fill in the NVME hard drive management configuration information according to the BMC interface to which the NVME hard drive to be detected is connected (such as the BMC I2C bus number to which the NVME hard drive is connected, and the BMC GPIO numbers corresponding to the in-position GPIO and LED control).
[0056] NVME hard drive management configuration file description: The NVME hard drive management configuration file is generated based on the hardware interface. All NVME hard drives that need to be monitored should be configured in the configuration file. The information included in the configuration file for each hard drive is the hard drive number, the BMC I2C bus number to which the hard drive is connected, and the GPIO pin numbers corresponding to the in-position GPIO and LED light control; after the hardware is determined, the corresponding configuration file can be generated. For example Figure 2 in, the configuration example of NVME hard drive 1 is as follows:
[0057] config
[0058] ·NVMEDriveIndex:1 / / NMVE hard drive number 1, displayed in the management object, mandatory.
[0059] ·NVMEDriveBusID:2 / / I2C bus number 2 used for NVME hard drive management, mandatory.
[0060] ·NVMEDriveFaultLEDGroupPath: " / xyz / openbmc_project / led / groups / led_u2
[0061] _0_fault" / / Dbus management path for hard drive management hard drive alarm led control, optional whether to configure.
[0062] ·NVMEDriveLocateLEDGroupPath:
[0063] " / xyz / openbmc_project / led / groups / led_u2_0_locate" / / Dbus management path for hard drive management hard drive in-position led control, optional whether to configure according to whether the hardware is connected.
[0064] ·NVMEDrivePresentPin:m / / Number in the BMC corresponding to the NVME hard drive in-position detection pin, optional whether to configure according to whether the hardware is connected.
[0065] ·TempSensorName: NVME1_temp / / Name of the NVME hard drive temperature sensor. Whether to configure it is optional according to customer requirements. When not configured, the default name is NVME + number.
[0066] Step 2: Generate corresponding Dbus objects for the NVME hard drives in the configuration file to store NVME hard drive information. Each NVME hard drive corresponds to one Dbus object, and the subsequent obtained NVME hard drive information is updated to each attribute in the corresponding Dbus object; the Dbus object name corresponds to the hardware number in the configuration file (if the number of hard drive 1 in the configuration file is 1, the generated Dbus object name is / xyz / openbmc_project / inventory / system / chassis / motherboard / NVME1);
[0067] Step 3: Register a Dbus bus service to manage NVME hard drive temperature sensor information;
[0068] Dbus bus description: The Dbus bus is a bus for inter - process communication in the BMC system. An application program registers a Dbus service and puts the data that needs to be shared into the attributes of this Dbus service; other application programs need to obtain the shared data, and they can obtain it as long as they send a request to the Dbus bus;
[0069] Step 4: Register a software timer service to periodically scan, query, and update NVME hard drive information (including hard drive firmware version, hard drive serial number, product model, manufacturer, device temperature, power consumption, available life, health status, etc.);
[0070] Step 5: Check whether the target hard drive is present according to the configuration file (if the presence GPIO information is configured in the configuration file, judge whether the NVME hard drive is present through the presence GPIO status; if the presence GPIO is not configured, judge through whether the hard drive can be accessed by I2C. If the hard drive can be accessed by I2C, it means the NVME hard drive is present, and if the hard drive cannot be accessed, it means the NVME hard drive is not present). If it is true, it means the hard drive already exists, and execute the next step. Otherwise, it means the hard drive does not exist. Delete the attributes of the Dbus object corresponding to the hard drive and directly proceed to the next loop to detect other hard drives in the configuration;
[0071] Step 6: Send an NVME-MI message to obtain hard disk information (firmware version, serial number, product model, manufacturer, standby temperature, power consumption, remaining life, health status, etc.) from the hard disk, and control the warning LED of the hard disk according to the health status information (if there is any warning on the hard disk, the warning LED must be lit to indicate that there is a warning on the hard disk that needs to be processed; if there is no warning, the warning LED is turned off); the health status is represented by SmartWarnings information (1 byte in length), and each bit of the SmartWarnings information indicates a warning status (1 indicates an abnormal warning, 0 indicates normal). The health status includes hard disk temperature warning status, hard disk capacity warning status, hard disk degradation warning status, hard disk backup warning status, etc.
[0072] NVME-MI Explanation: NVME-MI (NVME Management Interface) defines a complete set of NVMESSD management methods, which is independent of the NVME protocol and serves NVME; the in-band management of NVME hard disks can be completed through the NVME protocol, and NVME-MI focuses more on out-of-band management of NVME hard disks.
[0073] Step 7: Update the obtained hard disk information to the Dbus interface attributes in the Dbus object corresponding to the hard disk (the temperature is updated to the NVME management bus, and other hard disk information (all other hard disk information except temperature) is updated to the Inventory management bus);
[0074] The NVME management bus manages the temperature information of NVME hard disks, generates temperature sensors, and monitors the status in real time according to the sensor specifications, and compares it with the set threshold. If the threshold is exceeded, corresponding warning processing is performed.
[0075] The Inventory management bus manages the FRU information and health status information of NVME, and it also manages the information of other FRU units.
[0076] The Inventory management service provides a management object / xyz / openbmc_project / inventory / system / chassis / motherboard / NVME(index) corresponding to an NVME hard disk (where index corresponds to the hard disk number), and each management object includes 3 interfaces;
[0077] xyz.openbmc_project.Inventory.Item
[0078] xyz.openbmc_project.Inventory.Decorator.Asset
[0079] xyz.openbmc_project.NVME.Status
[0080] Each interface corresponds to several Dbus properties for storing hard disk information. The Dbus properties of each interface are shown in the following table:
[0081] Table 1 Property Description of Interface xyz.openbmc_project.NVME.Status
[0082] Property Type Description SmartWarnings string Indicates the health status of the hard drive DriveLifeUsed string Estimated useful life of the hard drive (%) TemperatureFault Bool Temperature warning, parsed through SmartWarnings BackupdrivesFaul Bool Backup warning, parsed through SmartWarnings CapacityFault Bool Capacity warning, parsed through SmartWarnings DegradesFault Bool Degradation warning, parsed through SmartWarnings MediaFault Bool Media warning, parsed through SmartWarnings Power String Power consumption value
[0083] Table 2 Property Description of Interface xyz.openbmc_project.Inventory.Item
[0084] Property Type Description Present Bool Hard drive presence status
[0085] Table 3 Property Description of Interface xyz.openbmc_project.Inventory.Decorator.Asset
[0086] Property Type Description SerialNumber string Device serial number Manufacturer string Manufacturer SoftwateVersion string Firmware version Model string Product model
[0087] Step 8: As an interface for managing and displaying NVME hard disk information, the Web service can visually view and set the information of NVME hard disks; the NVME hard disks are obtained or set by calling the above Dbus interfaces.
[0088] The Web page displays the NVME device list, that is, all NVME devices are displayed, and the information displayed for each device is as follows:
[0089] a) Product model;
[0090] b) Device serial number;
[0091] c) Manufacturer name;
[0092] d) Firmware version;
[0093] e) Health status;
[0094] f) Device temperature value;
[0095] g) Estimated remaining life percentage;
[0096] h) Power consumption.
[0097] The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. However, the scope of the present invention is not limited thereby. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present invention shall fall within the scope of the present invention.
Claims
1. A method for out-of-band management of a BMC hard disk, characterized in that, The method includes: The BMC obtains the management configuration information of the NVME hard disk that needs to be monitored currently, and determines whether the NVME hard disk is currently in the inserted state by using the management configuration information of the NVME hard disk; If it is determined that the NVME hard disk is currently in the inserted state, the BMC obtains the current hard disk information of the NVME hard disk through the I2C interface; The BMC updates the current hard disk information of the NVME hard disk to the previous hard disk information stored locally, and updates the current hard disk information of the NVME hard disk to each attribute in the Dbus object corresponding to the NVME hard disk, so as to display the current hard disk information of the NVME on the web page; Wherein, the BMC refers to the baseboard management controller; the NVME refers to the Non-Volatile Memory Host Controller Interface Specification.
2. The method according to claim 1, characterized in that, It further includes: If it is determined that the NVME hard disk is currently not in the inserted state, the BMC clears the previous hard disk information of the NVME hard disk stored locally, and deletes each attribute in the Dbus object corresponding to the NVME hard disk.
3. The method according to claim 1 or 2, characterized in that, It further includes: The BMC is connected to each NVME hard disk through the I2C interface, and generates and saves the management configuration information of each NVME hard disk according to the I2C interface of each NVME hard disk; wherein, the management configuration information includes the NVME hard disk number, the I2C bus number used for the NVME hard disk to connect to the BMC, the on-site GPIO detection pin number, the LED light control pin number, and the temperature threshold value; The BMC generates a Dbus object for storing the NVME hard disk information according to the management configuration information of each NVME hard disk.
4. The method according to claim 3, characterized in that, The BMC obtaining the management configuration information of the NVME hard disk that needs to be monitored currently includes: The BMC starts a timing service, and determines the NVME hard disk that needs to be monitored currently when the timing time arrives; The BMC obtains the management configuration information of the NVME hard disk according to the determined NVME hard disk that needs to be monitored currently.
5. The method according to claim 4, characterized in that, Determining whether the NVME hard disk is currently in the inserted state by using the management configuration information of the NVME hard disk includes: The BMC checks whether the on-site state information is configured for the on-site GPIO detection pin in the management configuration information of the NVME hard disk; If the on-site state information is configured for the on-site GPIO detection pin in the management configuration information of the NVME hard disk, and the on-site state information is in the inserted state, the BMC determines that the NVME hard disk is currently in the inserted state; If the on-site state information is configured for the on-site GPIO detection pin in the management configuration information of the NVME hard disk, and the on-site state information is not in the inserted state, the BMC determines that the NVME hard disk is currently not in the inserted state.
6. The method according to claim 5, characterized in that, Determining whether the NVME hard disk is currently in the inserted state by using the management configuration information of the NVME hard disk further includes: If the in-position status information is not configured for the in-position GPIO detection pin in the management configuration information of the NVMe hard disk, the BMC determines whether it can access the NVMe hard disk; If it is determined that the NVMe hard disk can be accessed, the BMC determines that the NVMe hard disk is currently in the in-position state; If it is determined that the NVMe hard disk cannot be accessed, the BMC determines that the NVMe hard disk is currently in the out-of-position state.
7. The method according to claim 6, characterized in that, The current hard disk information of the NVMe hard disk includes: hard disk firmware version, hard disk serial number, product model, manufacturer, hard disk temperature value, power consumption value, estimated service life, and health status; among them, the health status includes hard disk temperature warning status, hard disk capacity warning status, hard disk degradation warning status, media warning status, and hard disk backup warning status.
8. The method according to claim 7, characterized in that, The BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, including: The BMC updates the hard disk temperature value in the current hard disk information of the NVMe hard disk to the NVMe management bus in the Dbus object, and at the same time updates the hard disk firmware version, hard disk serial number, product model, manufacturer, power consumption value, estimated service life, and health status in the current hard disk information of the NVMe hard disk to the Inventory management bus in the Dbus object.
9. The method according to claim 8, characterized in that, After the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, it further includes: The BMC compares the hard disk temperature value in the current hard disk information of the NVMe hard disk with the temperature threshold value in the NVMe hard disk management configuration information. If the hard disk temperature value is greater than the temperature threshold value, it lights up the LED corresponding to the LED lamp control pin number to indicate that there is an alarm for the NVMe hard disk; The BMC detects the health status in the current hard disk information of the NVMe hard disk, and when it detects that the health status is abnormal, it lights up the LED corresponding to the LED lamp control pin number to indicate that there is an alarm for the NVMe hard disk.
10. The method according to claim 9, characterized in that, After the BMC updates the current hard disk information of the NVMe hard disk to each attribute in the Dbus object corresponding to the NVMe hard disk, it further includes: If the hard disk temperature value is not greater than the temperature threshold value and it is detected that the health status is normal, it turns off the LED corresponding to the LED lamp control pin number to indicate that there is no alarm for the NVMe hard disk.