Method, device, equipment and storage medium for improving operating reliability of hot plug device
Patent Information
- Application Number
- CN202211026953.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-08-25
AI Technical Summary
[0002]大数据时代的今天,物联网、云计算高速发展导致数据呈爆炸式增长,其中非结构数据更是占据了全球数据的90%,所谓数据无价,在存储领域中,存储系统的高可靠性一直是关注的重点,现在的存储系统无特殊情况下均可24小时不间断运行,而存储涉及到部件众多,加上不可避免的外在因素温度、供电、以及用户运行业务等导致出现极小概率性的高速串行计算机扩展总线设备如网卡、光纤卡、SAS卡故障,导致用户业务异常,因此如何避免或者快速的恢复高速串行计算机扩展总线设备故障是衡量存储稳定性最重要的标准之一
[0027] The aforementioned method, apparatus, device, and storage medium for improving the operational reliability of hot-swappable devices include: determining whether a high-speed serial computer expansion bus device is in normal operating condition; if it is in normal operating condition, then: using a complex programmable logic device to determine whether the high-speed serial computer expansion bus device is present, and uploading the present status to the baseboard management controller; the baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the present status. This application enables automatic processing and repair when bandwidth, speed, or operational service abnormalities occur in the operation of a high-speed serial computer expansion bus hot-swappable device stored in a multi-controller system, minimizing manual on-site handling. Simultaneously, when the high-speed serial computer expansion bus device is hot-swapped, its bandwidth and speed are automatically repaired, greatly improving the availability and reliability of storage. It has advantages such as low cost, high stability, and strong reliability.
Smart Images

Figure CN115480981B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of hot-swappable devices, and in particular to a method, apparatus, device, and storage medium for improving the operational reliability of hot-swappable devices. Background Technology
[0002] In today's era of big data, the rapid development of the Internet of Things and cloud computing has led to an explosive growth in data, with unstructured data accounting for 90% of global data. As the saying goes, data is priceless. In the storage field, the high reliability of storage systems has always been a key focus. Current storage systems can operate 24 hours a day without interruption under special circumstances. However, storage involves many components, and unavoidable external factors such as temperature, power supply, and user operation can lead to the extremely rare failure of high-speed serial computer expansion bus devices such as network cards, fiber optic cards, and SAS cards, resulting in abnormal user operations. Therefore, how to avoid or quickly recover from failures of high-speed serial computer expansion bus devices is one of the most important standards for measuring storage stability.
[0003] When a hot-swappable high-speed serial computer expansion bus device malfunctions, such as experiencing speed reduction or bandwidth reduction, it is generally necessary to manually reseat the device at the customer's site. If the fault is not resolved, the controller must be restarted. This process can lead to problems such as delayed processing, low efficiency of manual handling, and disruption to business operations. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, device, and storage medium that can achieve common automated processing, minimize manual on-site processing, and greatly improve the availability and reliability of storage and the operational reliability of hot-swappable devices, in order to address the above-mentioned technical problems.
[0005] On the one hand, a method for improving the operational reliability of hot-swappable devices is provided, the method comprising:
[0006] Step A: Determine whether the high-speed serial computer expansion bus device is in normal operating condition. If it is in normal operating condition, proceed to the next step.
[0007] Step B: Use complex programmable logic devices to determine whether the high-speed serial computer expansion bus device is in place, and upload the in-place status to the baseboard management controller;
[0008] Step C: The baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0009] In one embodiment, the method further includes: when the high-speed serial computer expansion bus device is in an abnormal operating state, including: the upper-layer operating system stored in the multi-controller system is experiencing service abnormalities while running the high-speed serial computer expansion bus device, and at the same time, no bandwidth and / or rate abnormality alarms are received from the baseboard management controller, then the baseboard management controller sends a power-down and power-on instruction to the high-speed serial computer expansion bus device to restart the high-speed serial computer expansion bus device; if the upper-layer operating system stored in the multi-controller system experiences service abnormalities after restarting, the restarting continues; when the number of restarts reaches a preset value, the baseboard management controller illuminates the device slot fault light through the complex programmable logic device and simultaneously reports alarm information.
[0010] In one embodiment, the method of determining whether the high-speed serial computer expansion bus device is in normal operation includes: when the upper-layer operating system stored in the multi-controller system is running the high-speed serial computer expansion bus device service normally, it is in normal operation; when the upper-layer operating system stored in the multi-controller system is running the high-speed serial computer expansion bus device service abnormally, it is in abnormal operation.
[0011] In one embodiment, the method further includes: determining whether a high-speed serial computer expansion bus device is present using a complex programmable logic device (CPLD) and uploading the presence status to the baseboard management controller. This includes: the CPLD determining whether an external high-speed serial computer expansion bus device is present via a general-purpose input / output (GPIO): when the output signal detected by the GPIO is low, the external high-speed serial computer expansion bus device is determined to be present; when the output signal detected by the GPIO is high, the external high-speed serial computer expansion bus device is determined to be absent. The baseboard management controller communicates with the CPLD via an integrated circuit bus to obtain the online status of the high-speed serial computer expansion bus device.
[0012] In one embodiment, the method further includes: when the external high-speed serial computer expansion bus device is in an in-situ state: the baseboard management controller periodically reads the preset bandwidth and speed and the actual bandwidth and speed of the high-speed serial computer expansion bus device through the general-purpose input / output; when the actual bandwidth and speed are inconsistent with the preset bandwidth and speed, the baseboard management controller instructs the complex programmable logic device to power down and power on the high-speed serial computer expansion bus device in the corresponding slot; the baseboard management controller waits for a preset buffer time and re-detects the actual bandwidth and speed of the high-speed serial computer expansion bus device: if it is consistent with the preset, it notifies the upper-layer operating system to run relevant services; if it is inconsistent with the preset, it performs power down and power on again; when the number of cycles reaches a preset value, the baseboard... The management controller stops the power-on and power-off operations of the high-speed serial computer expansion bus device and reports the failure information of repair bandwidth and speed to the upper-layer operating system. The upper-layer operating system determines whether the multi-controller system is in redundant mode by obtaining the health status information of other controllers: when in non-redundant mode, the upper-layer operating system reports an alarm message and illuminates the device slot fault light to remind the user to handle it in time; when in redundant mode, the upper-layer operating system issues a restart command. After the restart is completed, the baseboard management controller re-enters the step of determining the presence status of the high-speed serial computer expansion bus device. When the number of restarts reaches a preset value and the repair is still not successful, the restart stops, the upper-layer operating system reports an alarm message, and illuminates the device slot fault light to remind the user to replace the high-speed serial computer expansion bus device.
[0013] In one embodiment, the method further includes: when the external high-speed serial computer expansion bus device is in an in-place state: the baseboard management controller notifies the upper-layer operating system via a low-speed bus with few pins; the upper-layer operating system determines whether the corresponding high-speed serial computer expansion bus device slot has a high-speed serial computer expansion bus device based on the operating status; if it does not exist, no processing is performed; if it exists, the fault light of the slot corresponding to the high-speed serial computer expansion bus device is lit, and an alarm message is issued.
[0014] In one embodiment, the method further includes: when the external high-speed serial computer expansion bus device changes from an in-place state to an in-place state within a preset time, determining that the high-speed serial computer expansion bus device has undergone hot-plugging; when hot-plugging occurs, using the baseboard management controller to determine whether the actual bandwidth and speed of the high-speed serial computer expansion bus device are consistent with a preset value; if inconsistent, the high-speed serial computer expansion bus device is repaired; if consistent, the baseboard management controller sends a normal status signal of the high-speed serial computer expansion bus device after hot-plugging to the upper-layer operating system; the upper-layer operating system determines whether the firmware version of the high-speed serial computer expansion bus device is consistent with a preset standard; if consistent, the upper-layer operating system runs relevant services on the high-speed serial computer expansion bus device; if inconsistent, the upper-layer operating system uploads inconsistency information to the baseboard management controller, and the baseboard management controller illuminates the upgrade status indicator light corresponding to the slot of the high-speed serial computer expansion bus device to remind the user that the high-speed serial computer expansion bus device is undergoing firmware upgrade and cannot be hot-plugged; after the upgrade is completed, the upper-layer operating system notifies the baseboard management controller to turn off the upgrade status light.
[0015] On the other hand, an apparatus for improving the reliability of hot-swappable devices is provided, the apparatus comprising:
[0016] The operation status determination module is used to determine whether the high-speed serial computer expansion bus device is in normal operation. If it is in normal operation, the next step is executed.
[0017] The presence status determination module is used to determine whether the high-speed serial computer expansion bus device is in place using complex programmable logic devices, and uploads the presence status to the baseboard management controller.
[0018] The fault repair and early warning module is used to perform fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0019] In another aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:
[0020] Step A: Determine whether the high-speed serial computer expansion bus device is in normal operating condition. If it is in normal operating condition, proceed to the next step.
[0021] Step B: Use complex programmable logic devices to determine whether the high-speed serial computer expansion bus device is in place, and upload the in-place status to the baseboard management controller;
[0022] Step C: The baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0023] In another aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0024] Step A: Determine whether the high-speed serial computer expansion bus device is in normal operating condition. If it is in normal operating condition, proceed to the next step.
[0025] Step B: Use complex programmable logic devices to determine whether the high-speed serial computer expansion bus device is in place, and upload the in-place status to the baseboard management controller;
[0026] Step C: The baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0027] The aforementioned method, apparatus, device, and storage medium for improving the operational reliability of hot-swappable devices include: determining whether a high-speed serial computer expansion bus device is in normal operating condition; if it is in normal operating condition, then: using a complex programmable logic device to determine whether the high-speed serial computer expansion bus device is present, and uploading the present status to the baseboard management controller; the baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the present status. This application enables automatic processing and repair when bandwidth, speed, or operational service abnormalities occur in the operation of a high-speed serial computer expansion bus hot-swappable device stored in a multi-controller system, minimizing manual on-site handling. Simultaneously, when the high-speed serial computer expansion bus device is hot-swapped, its bandwidth and speed are automatically repaired, greatly improving the availability and reliability of storage. It has advantages such as low cost, high stability, and strong reliability. Attached Figure Description
[0028] Figure 1 This is an application environment diagram of a method for improving the operational reliability of hot-swappable devices in one embodiment.
[0029] Figure 2 This is a flowchart illustrating a method for improving the operational reliability of hot-swappable devices in one embodiment;
[0030] Figure 3 This is another flowchart illustrating a method for improving the operational reliability of hot-swappable devices in one embodiment.
[0031] Figure 4 This is a structural block diagram of a device for improving the reliability of hot-swappable devices in one embodiment;
[0032] Figure 5This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0034] The method for improving the operational reliability of hot-swappable devices provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with a data processing platform located on server 104 via a network. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, and tablets, and server 104 can be a standalone server or a server cluster consisting of multiple servers.
[0035] Example 1
[0036] In one embodiment, such as Figure 2 As shown, a method for improving the operational reliability of hot-swappable devices is provided, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps:
[0037] S1: Determine whether the high-speed serial computer expansion bus device is in normal operating condition. If it is in normal operating condition, proceed to the next step.
[0038] It should be noted that determining whether a high-speed serial computer expansion bus device (PCIe device, peripheral component interconnect express) is in normal operating condition includes:
[0039] When the upper-layer operating system stored in the multi-controller system (MCS) is running the high-speed serial computer expansion bus device normally, it is in normal operating condition.
[0040] When the upper-layer operating system stored in the multi-controller system experiences a service malfunction while running a high-speed serial computer expansion bus device, it is in an abnormal operating state.
[0041] When the high-speed serial computer expansion bus device is in an abnormal operating state:
[0042] If the upper-layer operating system stored in the multi-controller system experiences a service anomaly while running the high-speed serial computer expansion bus device, and also fails to receive any bandwidth and / or rate anomaly alarms from the baseboard management controller, then the baseboard management controller will issue a power-down and power-on instruction to the high-speed serial computer expansion bus device to restart the high-speed serial computer expansion bus device.
[0043] If, after a restart, the upper-layer operating system stored in the multi-controller system experiences an abnormal operation while running the high-speed serial computer expansion bus device service, the system will continue to restart. When the number of restarts reaches a preset value (e.g., 3 times), and the PCIe device service remains abnormal, the baseboard management controller will illuminate the device slot fault indicator via the complex programmable logic device and simultaneously report an alarm message to remind the user to handle the issue promptly. For example, Figure 3 As shown, the equipment slot fault light is connected to a Complex Programmable Logic Device (CPLD).
[0044] S2: Use complex programmable logic devices to determine whether the high-speed serial computer expansion bus device is in place, and upload the in-place status to the baseboard management controller.
[0045] S3: The baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0046] It should be noted that steps S2-S3 specifically involve the following steps: When step S1 determines that the PCIe device is in normal operating condition, a complex programmable logic device is used to determine whether the high-speed serial computer expansion bus device is present, and the present status is uploaded to the Baseboard Management Controller (BMC).
[0047] The complex programmable logic device determines whether an external high-speed serial computer expansion bus device is present through general-purpose input / output (GPIO):
[0048] When the output signal detected by the general-purpose input / output is low, it is determined that the external high-speed serial computer expansion bus device is in place;
[0049] When the output signal detected by the general-purpose input / output is high, it is determined that the external high-speed serial computer expansion bus device is not in place;
[0050] The baseboard management controller communicates with the complex programmable logic device via an integrated circuit bus to obtain the online status of the high-speed serial computer expansion bus device.
[0051] Furthermore, when the external high-speed serial computer expansion bus device is in the in-situ state:
[0052] The baseboard management controller periodically reads the preset bandwidth and speed, as well as the actual bandwidth and speed of the high-speed serial computer expansion bus device, through the general-purpose input / output. When the actual bandwidth and speed are inconsistent with the preset bandwidth and speed, the baseboard management controller instructs the complex programmable logic device to power down and power on the high-speed serial computer expansion bus device in the corresponding slot.
[0053] The baseboard management controller waits for a preset buffer time and then re-detects the actual bandwidth and speed of the high-speed serial computer expansion bus device.
[0054] If it matches the preset value, then the upper-layer operating system is notified to run the relevant services;
[0055] If it is inconsistent with the preset, the power-down and power-on process is repeated. When the number of cycles reaches the preset value, the baseboard management controller stops the power-up and power-off operation of the high-speed serial computer expansion bus device and reports the repair bandwidth and rate failure information to the upper-layer operating system.
[0056] The upper-layer operating system determines whether the multi-controller system is in redundancy mode by obtaining health status information from other controllers.
[0057] When in non-redundant mode, the upper-layer operating system reports alarm information and illuminates the device slot fault light to remind the user to handle the issue promptly.
[0058] When in redundant mode, the upper-layer operating system issues a restart command. After startup, the baseboard management controller re-enters the step of determining the presence status of the high-speed serial computer expansion bus device. If the number of restarts reaches a preset value and the repair is still unsuccessful, the restart is stopped, an alarm message is reported on the upper-layer operating system, and the device slot fault light is illuminated to remind the user to replace the high-speed serial computer expansion bus device.
[0059] When the external high-speed serial computer expansion bus device is in an in-place state:
[0060] The baseboard management controller notifies the upper-layer operating system via a low-pin count bus (LPC). The upper-layer operating system then determines whether a high-speed serial computer expansion bus device exists in the corresponding slot based on the operating status.
[0061] If it does not exist, no action will be taken;
[0062] If present, the fault indicator light in the corresponding slot of the high-speed serial computer expansion bus device will be illuminated, and an alarm message will be issued to remind the user to handle the issue promptly.
[0063] Furthermore, when the external high-speed serial computer expansion bus device changes from an inactive state to an inactive state within a preset time, it is determined that the high-speed serial computer expansion bus device has undergone hot-plugging. When the hot-plugging occurs, the baseboard management controller determines whether the actual bandwidth and speed of the high-speed serial computer expansion bus device are consistent with the preset values.
[0064] If there is a discrepancy, the high-speed serial computer expansion bus device shall be repaired.
[0065] If they match, the baseboard management controller sends a normal status signal for the hot-plugged high-speed serial computer expansion bus device to the upper-layer operating system. The upper-layer operating system then determines whether the firmware version of the high-speed serial computer expansion bus device matches a preset standard.
[0066] If they match, the upper-layer operating system runs the relevant services on the high-speed serial computer expansion bus device;
[0067] If there is a discrepancy, the upper-layer operating system uploads the discrepancy information to the baseboard management controller. The baseboard management controller then illuminates the upgrade status indicator light corresponding to the slot of the high-speed serial computer expansion bus device to remind the user that the high-speed serial computer expansion bus device is undergoing firmware upgrade and cannot be hot-swapped. Once the upgrade is complete, the upper-layer operating system will notify the baseboard management controller to turn off the upgrade status light.
[0068] The aforementioned method for improving the operational reliability of hot-swappable devices includes: determining whether the high-speed serial computer expansion bus device is in normal operating condition; if it is in normal operating condition, then: using a complex programmable logic device to determine whether the high-speed serial computer expansion bus device is present, and uploading the present status to the baseboard management controller; the baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the present status. This application enables automatic processing and repair when bandwidth, speed, or operational service abnormalities occur during the operation of the high-speed serial computer expansion bus hot-swappable device stored in a multi-controller system, minimizing manual on-site processing. Simultaneously, when the high-speed serial computer expansion bus device is hot-swapped, its bandwidth and speed are automatically repaired, greatly improving the availability and reliability of storage. It has advantages such as low cost, high stability, and strong reliability.
[0069] It should be understood that, although Figure 2-3 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2-3 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0070] Example 2
[0071] In one embodiment, such as Figure 4 As shown, an apparatus for improving the reliability of hot-swappable devices is provided, comprising: an operating status judgment module, an in-situ status judgment module, and a fault repair and early warning module, wherein:
[0072] The operation status determination module is used to determine whether the high-speed serial computer expansion bus device is in normal operation. If it is in normal operation, the next step is executed.
[0073] The presence status determination module is used to determine whether the high-speed serial computer expansion bus device is in place using complex programmable logic devices, and uploads the presence status to the baseboard management controller.
[0074] The fault repair and early warning module is used to perform fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0075] In a preferred embodiment of the present invention, the running status determination module is specifically used for:
[0076] When the high-speed serial computer expansion bus device is in an abnormal operating state, including:
[0077] If the upper-layer operating system stored in the multi-controller system experiences a service anomaly while running the high-speed serial computer expansion bus device, and also fails to receive any bandwidth and / or rate anomaly alarms from the baseboard management controller, then the baseboard management controller will issue a power-down and power-on instruction to the high-speed serial computer expansion bus device to restart the high-speed serial computer expansion bus device.
[0078] If the upper-layer operating system stored in the multi-controller system malfunctions during high-speed serial computer expansion bus device service after restarting, the system will continue to restart. When the number of restarts reaches a preset value, the baseboard management controller will illuminate the fault light in the device slot through the complex programmable logic device and simultaneously report alarm information to remind the user to handle the issue promptly.
[0079] In a preferred embodiment of the present invention, the running status determination module is specifically used for:
[0080] When the upper-layer operating system stored in the multi-controller system is running the high-speed serial computer expansion bus device services normally, it is in normal operating condition.
[0081] When the upper-layer operating system stored in the multi-controller system experiences a service malfunction while running the high-speed serial computer expansion bus device, it is in an abnormal operating state.
[0082] In a preferred embodiment of the present invention, the in-situ status determination module is specifically used for:
[0083] The complex programmable logic device determines whether an external high-speed serial computer expansion bus device is present through general-purpose input / output:
[0084] When the output signal detected by the general-purpose input / output is low, it is determined that the external high-speed serial computer expansion bus device is in place;
[0085] When the output signal detected by the general-purpose input / output is high, it is determined that the external high-speed serial computer expansion bus device is not in place;
[0086] The baseboard management controller communicates with the complex programmable logic device via an integrated circuit bus to obtain the online status of the high-speed serial computer expansion bus device.
[0087] Wherein, when the external high-speed serial computer expansion bus device is in the in-situ state:
[0088] The baseboard management controller periodically reads the preset bandwidth and speed, as well as the actual bandwidth and speed of the high-speed serial computer expansion bus device, through the general-purpose input / output. When the actual bandwidth and speed are inconsistent with the preset bandwidth and speed, the baseboard management controller instructs the complex programmable logic device to power down and power on the high-speed serial computer expansion bus device in the corresponding slot.
[0089] The baseboard management controller waits for a preset buffer time and then re-detects the actual bandwidth and speed of the high-speed serial computer expansion bus device.
[0090] If it matches the preset value, then the upper-layer operating system is notified to run the relevant services;
[0091] If it is inconsistent with the preset, the power-down and power-on process is repeated. When the number of cycles reaches the preset value, the baseboard management controller stops the power-up and power-off operation of the high-speed serial computer expansion bus device and reports the repair bandwidth and rate failure information to the upper-layer operating system.
[0092] The upper-layer operating system determines whether the multi-controller system is in redundancy mode by obtaining health status information from other controllers.
[0093] When in non-redundant mode, the upper-layer operating system reports alarm information and illuminates the device slot fault light to remind the user to handle the issue promptly.
[0094] When in redundant mode, the upper-layer operating system issues a restart command. After startup, the baseboard management controller re-enters the step of determining the presence status of the high-speed serial computer expansion bus device. If the number of restarts reaches a preset value and the repair is still unsuccessful, the restart is stopped, an alarm message is reported on the upper-layer operating system, and the device slot fault light is illuminated to remind the user to replace the high-speed serial computer expansion bus device.
[0095] When the external high-speed serial computer expansion bus device is in an in-place state:
[0096] The baseboard management controller notifies the upper-layer operating system via a low-speed bus with few pins. The upper-layer operating system then determines whether a high-speed serial computer expansion bus device exists in the corresponding slot based on the operating status.
[0097] If it does not exist, no action will be taken;
[0098] If present, the fault indicator light in the corresponding slot of the high-speed serial computer expansion bus device will be illuminated, and an alarm message will be issued to remind the user to handle the issue promptly.
[0099] When the external high-speed serial computer expansion bus device changes from an inactive state to an inactive state within a preset time, it is determined that the high-speed serial computer expansion bus device has undergone hot-plugging. When the hot-plugging occurs, the baseboard management controller determines whether the actual bandwidth and speed of the high-speed serial computer expansion bus device are consistent with the preset values.
[0100] If there is a discrepancy, the high-speed serial computer expansion bus device shall be repaired.
[0101] If they match, the baseboard management controller sends a normal status signal for the hot-plugged high-speed serial computer expansion bus device to the upper-layer operating system. The upper-layer operating system then determines whether the firmware version of the high-speed serial computer expansion bus device matches a preset standard.
[0102] If they match, the upper-layer operating system runs the relevant services on the high-speed serial computer expansion bus device;
[0103] If there is a discrepancy, the upper-layer operating system uploads the discrepancy information to the baseboard management controller. The baseboard management controller then illuminates the upgrade status indicator light corresponding to the slot of the high-speed serial computer expansion bus device to remind the user that the high-speed serial computer expansion bus device is undergoing firmware upgrade and cannot be hot-swapped. Once the upgrade is complete, the upper-layer operating system will notify the baseboard management controller to turn off the upgrade status light.
[0104] Specific limitations regarding the apparatus for improving the reliability of hot-swappable devices can be found in the limitations of the methods for improving the operational reliability of hot-swappable devices described above, and will not be repeated here. Each module in the aforementioned apparatus for improving the reliability of hot-swappable devices can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0105] Example 3
[0106] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method to improve the operational reliability of hot-swappable devices. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0107] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0108] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:
[0109] S1: Determine whether the high-speed serial computer expansion bus device is in normal operating condition. If it is in normal operating condition, proceed to the next step.
[0110] S2: Use complex programmable logic devices to determine whether the high-speed serial computer expansion bus device is in place, and upload the in-place status to the baseboard management controller.
[0111] S3: The baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0112] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0113] When the high-speed serial computer expansion bus device is in an abnormal operating state, including:
[0114] If the upper-layer operating system stored in the multi-controller system experiences a service anomaly while running the high-speed serial computer expansion bus device, and also fails to receive any bandwidth and / or rate anomaly alarms from the baseboard management controller, then the baseboard management controller will issue a power-down and power-on instruction to the high-speed serial computer expansion bus device to restart the high-speed serial computer expansion bus device.
[0115] If the upper-layer operating system stored in the multi-controller system malfunctions during high-speed serial computer expansion bus device service after restarting, the system will continue to restart. When the number of restarts reaches a preset value, the baseboard management controller will illuminate the fault light in the device slot through the complex programmable logic device and simultaneously report alarm information to remind the user to handle the issue promptly.
[0116] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0117] When the upper-layer operating system stored in the multi-controller system is running the high-speed serial computer expansion bus device services normally, it is in normal operating condition.
[0118] When the upper-layer operating system stored in the multi-controller system experiences a service malfunction while running the high-speed serial computer expansion bus device, it is in an abnormal operating state.
[0119] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0120] The complex programmable logic device determines whether an external high-speed serial computer expansion bus device is present through general-purpose input / output:
[0121] When the output signal detected by the general-purpose input / output is low, it is determined that the external high-speed serial computer expansion bus device is in place;
[0122] When the output signal detected by the general-purpose input / output is high, it is determined that the external high-speed serial computer expansion bus device is not in place;
[0123] The baseboard management controller communicates with the complex programmable logic device via an integrated circuit bus to obtain the online status of the high-speed serial computer expansion bus device.
[0124] Wherein, when the external high-speed serial computer expansion bus device is in the in-situ state:
[0125] The baseboard management controller periodically reads the preset bandwidth and speed, as well as the actual bandwidth and speed of the high-speed serial computer expansion bus device, through the general-purpose input / output. When the actual bandwidth and speed are inconsistent with the preset bandwidth and speed, the baseboard management controller instructs the complex programmable logic device to power down and power on the high-speed serial computer expansion bus device in the corresponding slot.
[0126] The baseboard management controller waits for a preset buffer time and then re-detects the actual bandwidth and speed of the high-speed serial computer expansion bus device.
[0127] If it matches the preset value, then the upper-layer operating system is notified to run the relevant services;
[0128] If it is inconsistent with the preset, the power-down and power-on process is repeated. When the number of cycles reaches the preset value, the baseboard management controller stops the power-up and power-off operation of the high-speed serial computer expansion bus device and reports the repair bandwidth and rate failure information to the upper-layer operating system.
[0129] The upper-layer operating system determines whether the multi-controller system is in redundancy mode by obtaining health status information from other controllers.
[0130] When in non-redundant mode, the upper-layer operating system reports alarm information and illuminates the device slot fault light to remind the user to handle the issue promptly.
[0131] When in redundant mode, the upper-layer operating system issues a restart command. After startup, the baseboard management controller re-enters the step of determining the presence status of the high-speed serial computer expansion bus device. If the number of restarts reaches a preset value and the repair is still unsuccessful, the restart is stopped, an alarm message is reported on the upper-layer operating system, and the device slot fault light is illuminated to remind the user to replace the high-speed serial computer expansion bus device.
[0132] When the external high-speed serial computer expansion bus device is in an in-place state:
[0133] The baseboard management controller notifies the upper-layer operating system via a low-speed bus with few pins. The upper-layer operating system then determines whether a high-speed serial computer expansion bus device exists in the corresponding slot based on the operating status.
[0134] If it does not exist, no action will be taken;
[0135] If present, the fault indicator light in the corresponding slot of the high-speed serial computer expansion bus device will be illuminated, and an alarm message will be issued to remind the user to handle the issue promptly.
[0136] When the external high-speed serial computer expansion bus device changes from an inactive state to an inactive state within a preset time, it is determined that the high-speed serial computer expansion bus device has undergone hot-plugging. When the hot-plugging occurs, the baseboard management controller determines whether the actual bandwidth and speed of the high-speed serial computer expansion bus device are consistent with the preset values.
[0137] If there is a discrepancy, the high-speed serial computer expansion bus device shall be repaired.
[0138] If they match, the baseboard management controller sends a normal status signal for the hot-plugged high-speed serial computer expansion bus device to the upper-layer operating system. The upper-layer operating system then determines whether the firmware version of the high-speed serial computer expansion bus device matches a preset standard.
[0139] If they match, the upper-layer operating system runs the relevant services on the high-speed serial computer expansion bus device;
[0140] If there is a discrepancy, the upper-layer operating system uploads the discrepancy information to the baseboard management controller. The baseboard management controller then illuminates the upgrade status indicator light corresponding to the slot of the high-speed serial computer expansion bus device to remind the user that the high-speed serial computer expansion bus device is undergoing firmware upgrade and cannot be hot-swapped. Once the upgrade is complete, the upper-layer operating system will notify the baseboard management controller to turn off the upgrade status light.
[0141] Example 4
[0142] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0143] S1: Determine whether the high-speed serial computer expansion bus device is in normal operating condition. If it is in normal operating condition, proceed to the next step.
[0144] S2: Use complex programmable logic devices to determine whether the high-speed serial computer expansion bus device is in place, and upload the in-place status to the baseboard management controller.
[0145] S3: The baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
[0146] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0147] When the high-speed serial computer expansion bus device is in an abnormal operating state, including:
[0148] If the upper-layer operating system stored in the multi-controller system experiences a service anomaly while running the high-speed serial computer expansion bus device, and also fails to receive any bandwidth and / or rate anomaly alarms from the baseboard management controller, then the baseboard management controller will issue a power-down and power-on instruction to the high-speed serial computer expansion bus device to restart the high-speed serial computer expansion bus device.
[0149] If the upper-layer operating system stored in the multi-controller system malfunctions during high-speed serial computer expansion bus device service after restarting, the system will continue to restart. When the number of restarts reaches a preset value, the baseboard management controller will illuminate the fault light in the device slot through the complex programmable logic device and simultaneously report alarm information to remind the user to handle the issue promptly.
[0150] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0151] When the upper-layer operating system stored in the multi-controller system is running the high-speed serial computer expansion bus device services normally, it is in normal operating condition.
[0152] When the upper-layer operating system stored in the multi-controller system experiences a service malfunction while running the high-speed serial computer expansion bus device, it is in an abnormal operating state.
[0153] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0154] The complex programmable logic device determines whether an external high-speed serial computer expansion bus device is present through general-purpose input / output:
[0155] When the output signal detected by the general-purpose input / output is low, it is determined that the external high-speed serial computer expansion bus device is in place;
[0156] When the output signal detected by the general-purpose input / output is high, it is determined that the external high-speed serial computer expansion bus device is not in place;
[0157] The baseboard management controller communicates with the complex programmable logic device via an integrated circuit bus to obtain the online status of the high-speed serial computer expansion bus device.
[0158] Wherein, when the external high-speed serial computer expansion bus device is in the in-situ state:
[0159] The baseboard management controller periodically reads the preset bandwidth and speed, as well as the actual bandwidth and speed of the high-speed serial computer expansion bus device, through the general-purpose input / output. When the actual bandwidth and speed are inconsistent with the preset bandwidth and speed, the baseboard management controller instructs the complex programmable logic device to power down and power on the high-speed serial computer expansion bus device in the corresponding slot.
[0160] The baseboard management controller waits for a preset buffer time and then re-detects the actual bandwidth and speed of the high-speed serial computer expansion bus device.
[0161] If it matches the preset value, then the upper-layer operating system is notified to run the relevant services;
[0162] If it is inconsistent with the preset, the power-down and power-on process is repeated. When the number of cycles reaches the preset value, the baseboard management controller stops the power-up and power-off operation of the high-speed serial computer expansion bus device and reports the repair bandwidth and rate failure information to the upper-layer operating system.
[0163] The upper-layer operating system determines whether the multi-controller system is in redundancy mode by obtaining health status information from other controllers.
[0164] When in non-redundant mode, the upper-layer operating system reports alarm information and illuminates the device slot fault light to remind the user to handle the issue promptly.
[0165] When in redundant mode, the upper-layer operating system issues a restart command. After startup, the baseboard management controller re-enters the step of determining the presence status of the high-speed serial computer expansion bus device. If the number of restarts reaches a preset value and the repair is still unsuccessful, the restart is stopped, an alarm message is reported on the upper-layer operating system, and the device slot fault light is illuminated to remind the user to replace the high-speed serial computer expansion bus device.
[0166] When the external high-speed serial computer expansion bus device is in an in-place state:
[0167] The baseboard management controller notifies the upper-layer operating system via a low-speed bus with few pins. The upper-layer operating system then determines whether a high-speed serial computer expansion bus device exists in the corresponding slot based on the operating status.
[0168] If it does not exist, no action will be taken;
[0169] If present, the fault indicator light in the corresponding slot of the high-speed serial computer expansion bus device will be illuminated, and an alarm message will be issued to remind the user to handle the issue promptly.
[0170] When the external high-speed serial computer expansion bus device changes from an inactive state to an inactive state within a preset time, it is determined that the high-speed serial computer expansion bus device has undergone hot-plugging. When the hot-plugging occurs, the baseboard management controller determines whether the actual bandwidth and speed of the high-speed serial computer expansion bus device are consistent with the preset values.
[0171] If there is a discrepancy, the high-speed serial computer expansion bus device shall be repaired.
[0172] If they match, the baseboard management controller sends a normal status signal for the hot-plugged high-speed serial computer expansion bus device to the upper-layer operating system. The upper-layer operating system then determines whether the firmware version of the high-speed serial computer expansion bus device matches a preset standard.
[0173] If they match, the upper-layer operating system runs the relevant services on the high-speed serial computer expansion bus device;
[0174] If there is a discrepancy, the upper-layer operating system uploads the discrepancy information to the baseboard management controller. The baseboard management controller then illuminates the upgrade status indicator light corresponding to the slot of the high-speed serial computer expansion bus device to remind the user that the high-speed serial computer expansion bus device is undergoing firmware upgrade and cannot be hot-swapped. Once the upgrade is complete, the upper-layer operating system will notify the baseboard management controller to turn off the upgrade status light.
[0175] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0176] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0177] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for improving the operational reliability of hot-swappable devices, characterized in that, The method includes: Determine whether the high-speed serial computer expansion bus device is in normal operating condition. If it is in normal operating condition, then: The system uses complex programmable logic devices to determine whether a high-speed serial computer expansion bus device is in place and uploads the in-place status to the baseboard management controller. The baseboard management controller performs fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status. When the high-speed serial computer expansion bus device is in the in-situ state, the baseboard management controller periodically reads the preset bandwidth and speed and the actual bandwidth and speed of the high-speed serial computer expansion bus device through general-purpose input / output. When the actual bandwidth and speed are inconsistent with the preset bandwidth and speed, the baseboard management controller instructs the complex programmable logic device to power down and power on the high-speed serial computer expansion bus device in the corresponding slot. The baseboard management controller waits for a preset buffer time and then re-detects the actual bandwidth and speed of the high-speed serial computer expansion bus device. If it matches the preset value, it notifies the upper-layer operating system to run relevant services. If it does not match the preset value, it performs a power-down and power-on process again. When the number of cycles reaches a preset value, the baseboard management controller stops the power-up and power-off actions of the high-speed serial computer expansion bus device and reports the failure to repair bandwidth and speed to the upper-layer operating system. The upper-layer operating system obtains the health status information of other controllers to determine whether the multi-controller system is in redundant mode. When in non-redundant mode, the upper-layer operating system reports an alarm and illuminates the device slot fault light. When in redundant mode, the upper-layer operating system issues a restart command. After startup, the baseboard management controller re-enters the step of determining the presence status of the high-speed serial computer expansion bus device. If the restart count reaches a preset value and the repair is still unsuccessful, the restart stops, the upper-layer operating system reports an alarm and illuminates the device slot fault light to remind the user to replace the high-speed serial computer expansion bus device.
2. The method for improving the operational reliability of hot-swappable devices according to claim 1, characterized in that, The method further includes: When the high-speed serial computer expansion bus device is in an abnormal operating state: If the upper-layer operating system stored in the multi-controller system experiences a service anomaly while running the high-speed serial computer expansion bus device, and also fails to receive any bandwidth and / or rate anomaly alarms from the baseboard management controller, then the baseboard management controller will issue a power-down and power-on instruction to the high-speed serial computer expansion bus device to restart the high-speed serial computer expansion bus device. If the upper-layer operating system stored in the multi-controller system malfunctions during the operation of the high-speed serial computer expansion bus device after restarting, the system will continue to restart. When the number of restarts reaches a preset value, the baseboard management controller will illuminate the fault light in the device slot through the complex programmable logic device and simultaneously report alarm information.
3. The method for improving the operational reliability of hot-swappable devices according to claim 2, characterized in that, The determination of whether the high-speed serial computer expansion bus device is in normal operating condition includes: When the upper-layer operating system stored in the multi-controller system is running the high-speed serial computer expansion bus device services normally, it is in normal operating condition. When the upper-layer operating system stored in the multi-controller system experiences a service malfunction while running the high-speed serial computer expansion bus device, it is in an abnormal operating state.
4. The method for improving the operational reliability of hot-swappable devices according to claim 1, characterized in that, The step of using complex programmable logic devices to determine whether a high-speed serial computer expansion bus device is in place and uploading the in-place status to the baseboard management controller includes: The complex programmable logic device determines whether a high-speed serial computer expansion bus device is present through general-purpose input / output: When the output signal detected by the general-purpose input / output is low, it is determined that the high-speed serial computer expansion bus device is in place; When the output signal detected by the general-purpose input / output is high, it is determined that the high-speed serial computer expansion bus device is not in place; The baseboard management controller communicates with the complex programmable logic device via an integrated circuit bus to obtain the on-site status of the high-speed serial computer expansion bus device.
5. The method for improving the operational reliability of hot-swappable devices according to claim 4, characterized in that, When the high-speed serial computer expansion bus device is in an in-place state: The baseboard management controller notifies the upper-layer operating system via a low-speed bus with few pins. The upper-layer operating system then determines whether a high-speed serial computer expansion bus device exists in the corresponding slot based on the operating status. If it does not exist, no action will be taken; If present, the fault indicator light in the corresponding slot of the high-speed serial computer expansion bus device will be illuminated, and an alarm message will be issued.
6. The method for improving the operational reliability of hot-swappable devices according to claim 4, characterized in that, When the high-speed serial computer expansion bus device changes from an inactive state to an inactive state within a preset time, it is determined that the high-speed serial computer expansion bus device has undergone hot-plugging. When the hot-plugging occurs, the baseboard management controller determines whether the actual bandwidth and speed of the high-speed serial computer expansion bus device are consistent with the preset values. If there is a discrepancy, the high-speed serial computer expansion bus device shall be repaired. If they match, the baseboard management controller sends a normal status signal for the hot-plugged high-speed serial computer expansion bus device to the upper-layer operating system. The upper-layer operating system then determines whether the firmware version of the high-speed serial computer expansion bus device is consistent with the preset standard. If they match, the upper-layer operating system runs the relevant services on the high-speed serial computer expansion bus device; If there is a discrepancy, the upper-layer operating system uploads the discrepancy information to the baseboard management controller. The baseboard management controller then illuminates the upgrade status indicator light corresponding to the slot of the high-speed serial computer expansion bus device to remind the user that the high-speed serial computer expansion bus device is undergoing firmware upgrade and cannot be hot-swapped. Once the upgrade is complete, the upper-layer operating system will notify the baseboard management controller to turn off the upgrade status light.
7. An apparatus for improving the reliability of a hot-swappable device by implementing the method for improving the operational reliability of a hot-swappable device according to any one of claims 1-6, characterized in that, The device includes: The operation status determination module is used to determine whether the high-speed serial computer expansion bus device is in normal operation. If it is in normal operation, the next step is executed. The presence status determination module is used to determine whether the high-speed serial computer expansion bus device is in place using complex programmable logic devices, and uploads the presence status to the baseboard management controller. The fault repair and early warning module is used to perform fault repair and early warning for the high-speed serial computer expansion bus device based on the in-situ status.
8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
NVMe hard disk fault early warning method and system and computer equipment
CN114924929A