Hard disk information acquisition method, computing device and storage medium

The out-of-band manager obtains the hard disk backplane slot configuration information and interface types, generates correspondence and displays, solving the problem of low efficiency in obtaining hard disk slot types in the prior art, and improving the efficiency of hard disk configuration and assembly.

CN119088282APending Publication Date: 2024-12-06XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310659117.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-05
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When configuring or replacing a hard disk, it is necessary to manually check the slot type and interface type of the hard disk backplane, which takes a long time and is inefficient, resulting in large human resources consumption and low assembly efficiency.

Method used

Obtain the slot configuration information and interface type of the hard disk backplane through the out-of-band manager, generate the corresponding relationship between the slot position and the interface type, and display it on the display device, saving manpower and time, and improving the efficiency of obtaining hard disk slot support types .

Benefits of technology

It realizes the fast and accurate acquisition of hard disk types supported by hard disk backplane slots, saving human resources, improving assembly efficiency, and reducing the possibility of installation errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088282A_ABST
    Figure CN119088282A_ABST
Patent Text Reader

Abstract

The invention discloses a hard disk information obtaining method, computing equipment and a storage medium, and the method comprises the steps: obtaining slot position configuration information of a hard disk backboard, the slot position configuration information is stored in an out-of-band manager, and the slot position configuration information records the position distribution of hard disk slot positions on the hard disk backboard; obtaining an interface type correspondingly supported by the hard disk slot; according to the position of the hard disk slot and the interface type correspondingly supported by the hard disk slot, generating a corresponding relation between the position of the hard disk slot and the supported interface type; and the corresponding relationship between the position of the hard disk slot and the supported interface type is displayed on the display device. The acquisition efficiency of the hard disk type supported by each physical slot of the hard disk backboard is improved, and the hard disk type supported by each physical slot is visually displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computing devices, and in particular to a hard disk information acquisition method, a computing device, and a storage medium. Background Art

[0002] In the configuration of a server, the hard disk is the most important storage component. As the types of hard disks continue to increase, a server device may need to support multiple types of hard disks, so the types of hard disks supported by each slot may be different. Hard disks need to be configured or replaced frequently during work. This operation requires staff to confirm the type of physical slot and the type of hard disk supported by the physical slot. However, the existing inspection method consumes a lot of human resources and is time-consuming, and the overall inspection efficiency is low. Summary of the invention

[0003] The embodiments of the present application provide a hard disk information acquisition method, computing device and storage medium, which are conducive to improving the efficiency of acquiring the hard disk types supported by each physical slot of the hard disk backplane, and intuitively displaying the hard disk types supported by each physical slot.

[0004] In a first aspect, an embodiment of the present application provides a hard disk information acquisition method for a computing device, wherein the computing device includes a hard disk backplane and an out-of-band manager, and the hard disk backplane is provided with a plurality of hard disk slots; the method includes:

[0005] Obtain the slot configuration information of the hard disk backplane. The slot configuration information is stored in the out-of-band manager. The slot configuration information records the position distribution of the hard disk slots on the hard disk backplane.

[0006] Get the interface type supported by the hard disk slot;

[0007] According to the position of the hard disk slot and the interface type supported by the hard disk slot, a correspondence between the position of the hard disk slot and the supported interface type is generated; the correspondence between the position of the hard disk slot and the supported interface type is displayed on the display device.

[0008] It can be seen that the out-of-band manager in the computing device in the embodiment of the present application can obtain the position distribution of the hard disk slots on the hard disk backplane and the interface types specifically supported by each hard disk slot by obtaining the slot configuration information of the hard disk backplane. Compared with the original inspection method, the efficiency of obtaining the hard disk types supported by the hard disk slots on the hard disk backplane is improved, which can save a lot of manpower and time. At the same time, the corresponding relationship between the position of the hard disk slot and the supported interface type is displayed on the display device connected to the out-of-band manager, which is convenient for the staff to intuitively understand the interface types specifically supported by each hard disk slot. In the scene of computing device assembly, it is conducive to improving the assembly efficiency and avoiding the problem of installation errors such as hard disks.

[0009] In a possible implementation, obtaining the slot configuration information of the hard disk backplane includes:

[0010] Get the component code of the hard disk backplane;

[0011] Based on the component code, the out-of-band manager searches for slot configuration information that matches the component code.

[0012] In this implementation, the out-of-band manager can query and obtain the component code of the hard disk backplane, and then use the component code to search in the configuration file to obtain the slot configuration information of the hard disk backplane.

[0013] In a possible implementation, before the step of generating a correspondence between the position of the hard disk slot and the interface type supported by the hard disk slot according to the position of the hard disk slot and the interface type supported by the hard disk slot, the method further includes:

[0014] Get a working interface connector on the hard disk backplane;

[0015] According to the position of the hard disk slot and the interface type supported by the hard disk slot, a correspondence relationship between the position of the hard disk slot and the supported interface type is generated, including:

[0016] According to the position of the hard disk slot corresponding to the normally working interface connector and the interface type supported by the hard disk slot, a correspondence relationship between the position of the hard disk slot and the supported interface type is generated.

[0017] In this implementation, the out-of-band manager detects the status of the communication link of the interface connector of each hard disk slot, and can determine the normally working interface connector in each hard disk slot, thereby generating a correspondence between the position of the hard disk slot and the interface type supported by the normally working interface connector, which is facilitating the acquisition of the hard disk type actually supported by each hard disk slot.

[0018] In a possible implementation, the method further includes:

[0019] Based on the latest determined correspondence between the position of the hard disk slot and the supported interface type, the correspondence between the position of the hard disk slot and the supported interface type saved by the out-of-band manager is updated.

[0020] In this implementation, each time the computing device is powered on, the out-of-band manager can re-execute the operation of obtaining the interface types actually supported by the hard disk slot, generate a new correspondence between the position of the hard disk slot and the supported interface types, and update the original correspondence between the position of the hard disk slot and the supported interface types in the out-of-band manager, so that the staff can obtain the latest supported interface types for the hard disk slot.

[0021] In a possible implementation, after obtaining the interface type supported by the hard disk slot, the method further includes:

[0022] Classify the hard disk slots according to the interface types they support, so as to generate an initial hard disk type information table corresponding to the hard disk backplane; the initial hard disk type information table associates and records the various interface types supported by the hard disk backplane and the hard disk slots corresponding to the various interface types;

[0023] According to the position of the hard disk slot corresponding to the normally working interface connector and the interface type supported by the hard disk slot, a correspondence relationship between the position of the hard disk slot and the supported interface type is generated, including:

[0024] The hard disk slot corresponding to the interface connector that works normally in the initial hard disk type information table is retained to obtain the hard disk type information table corresponding to the hard disk backplane;

[0025] According to the position of the hard disk slot in the hard disk type information table and the interface type corresponding to the hard disk slot in the hard disk type information table, a correspondence between the position of the hard disk slot and the supported interface type is generated.

[0026] In this implementation, the out-of-band manager can determine the interface connectors that are working abnormally in each hard disk slot by detecting the status of the communication link of the interface connector, thereby removing the physical slot corresponding to the interface connector with the abnormal status from the initial hard disk type information table, retaining the hard disk slot corresponding to the interface connector that is working normally, and obtaining the interface type actually supported by each hard disk slot, thereby obtaining more accurate interface type information. At the same time, reflecting the interface type actually supported by each hard disk slot in the form of a hard disk type information table is conducive to quickly generating a corresponding relationship between the position of the hard disk slot and the actually supported interface type based on the position of the hard disk slot in the hard disk type information table and the interface type corresponding to the hard disk slot in the hard disk type information table.

[0027] In a possible implementation, obtaining the component code of the hard disk backplane includes:

[0028] Obtain out-of-band information of the hard disk backplane; wherein the out-of-band information includes a component code.

[0029] In this implementation, the out-of-band manager can obtain the component code of the hard disk backplane in an out-of-band manner, so as to query the slot configuration information of the hard disk backplane using the component code.

[0030] In a possible implementation, based on the component code, searching the out-of-band manager for slot configuration information matching the component code includes:

[0031] According to the component code, the slot configuration information is determined from the multiple slot configuration information saved in the out-of-band manager; wherein the multiple slot configuration information is the slot configuration information of the multiple types of hard disk backplanes supported by the computing device, and the multiple slot configuration information corresponds one-to-one to the multiple types of hard disk backplanes; the multiple types include the type to which the hard disk backplane belongs.

[0032] In this implementation, the slot configuration information of the hard disk backplane commonly used by the computing device can be added to the configuration file of the out-of-band manager. After the computing device is powered on, the out-of-band manager can read the configuration file and use the component code to query the slot configuration information of the currently installed hard disk backplane.

[0033] In a possible implementation, the out-of-band manager is a baseboard management controller BMC, the display device includes a Web interface of the BMC, and the correspondence between the position of the hard disk slot and the supported interface type is displayed on the Web interface of the BMC.

[0034] In this implementation, the correspondence between the position of the hard disk slot and the supported interface type is displayed on the BMC Web interface, which can intuitively display the distribution of the hard disk slots of the hard disk backplane and the actually supported interface types.

[0035] In a second aspect, an embodiment of the present application provides a hard disk information acquisition device for a computing device, the computing device comprising a hard disk backplane and an out-of-band manager, the hard disk backplane being provided with a plurality of hard disk slots; wherein the device comprises an acquisition unit and a processing unit;

[0036] An acquisition unit is used to acquire the slot configuration information of the hard disk backplane, the slot configuration information is stored in the out-of-band manager, and the slot configuration information records the position distribution of the hard disk slots on the hard disk backplane; and to acquire the interface type supported by the hard disk slots;

[0037] The processing unit is used to generate a correspondence between the position of the hard disk slot and the supported interface type according to the position of the hard disk slot and the interface type supported by the hard disk slot; the correspondence between the position of the hard disk slot and the supported interface type is displayed on the display device.

[0038] In a possible implementation, the acquiring unit is specifically configured to:

[0039] Get the component code of the hard disk backplane;

[0040] Based on the component code, the out-of-band manager searches for slot configuration information that matches the component code.

[0041] In a possible implementation, the acquiring unit is further configured to:

[0042] Get a working interface connector on the hard disk backplane;

[0043] The processing unit is specifically used for:

[0044] According to the position of the hard disk slot corresponding to the normally working interface connector and the interface type supported by the hard disk slot, a correspondence relationship between the position of the hard disk slot and the supported interface type is generated.

[0045] In a possible implementation manner, the processing unit is further configured to:

[0046] Based on the latest determined correspondence between the position of the hard disk slot and the supported interface type, the correspondence between the position of the hard disk slot and the supported interface type saved by the out-of-band manager is updated.

[0047] In a possible implementation manner, the processing unit is further configured to:

[0048] Classify the hard disk slots according to the interface types they support, so as to generate an initial hard disk type information table corresponding to the hard disk backplane; the initial hard disk type information table associates and records the various interface types supported by the hard disk backplane and the hard disk slots corresponding to the various interface types;

[0049] The processing unit is specifically used for:

[0050] The hard disk slot corresponding to the interface connector that works normally in the initial hard disk type information table is retained to obtain the hard disk type information table corresponding to the hard disk backplane;

[0051] According to the position of the hard disk slot in the hard disk type information table and the interface type corresponding to the hard disk slot in the hard disk type information table, a correspondence between the position of the hard disk slot and the supported interface type is generated.

[0052] In a possible implementation, the acquiring unit is specifically configured to:

[0053] Obtain out-of-band information of the hard disk backplane; wherein the out-of-band information includes a component code.

[0054] In a possible implementation, the acquiring unit is specifically configured to:

[0055] According to the component code, the slot configuration information is determined from the multiple slot configuration information saved in the out-of-band manager; wherein the multiple slot configuration information is the slot configuration information of the multiple types of hard disk backplanes supported by the computing device, and the multiple slot configuration information corresponds one-to-one to the multiple types of hard disk backplanes; the multiple types include the type to which the hard disk backplane belongs.

[0056] In a possible implementation, the out-of-band manager is a baseboard management controller BMC, the display device includes a Web interface of the BMC, and the correspondence between the position of the hard disk slot and the supported interface type is displayed on the Web interface of the BMC.

[0057] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the first aspect of the embodiment of the present application should be synchronously adapted to the second aspect of the embodiment of the present application, and can achieve the same or similar beneficial effects, which will not be repeated here.

[0058] In a third aspect, an embodiment of the present application provides a computing device, comprising a processor and a memory, wherein the memory is used to store one or more programs, and the programs include instructions for executing the method described in the first aspect above.

[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for execution by a device. When the computer program is executed, the method described in the first aspect above is implemented.

[0060] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run by a device, the device executes the method in the above-mentioned first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0062] Figure 1 A flowchart of a method for obtaining hard disk information provided in an embodiment of the present application;

[0063] Figure 2 A flowchart of another hard disk information acquisition method provided in an embodiment of the present application;

[0064] Figure 3 A schematic diagram of obtaining the position distribution of hard disk slots provided in an embodiment of the present application;

[0065] Figure 4 A schematic diagram showing the interface types actually supported by each hard disk slot provided in an embodiment of the present application;

[0066] Figure 5 A schematic diagram of the overall process of a hard disk information acquisition method provided in an embodiment of the present application;

[0067] Figure 6 A schematic diagram of the structure of a hard disk information acquisition device provided in an embodiment of the present application;

[0068] Figure 7 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0070] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0071] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program and / or a computer running on a processor. By way of illustration, both applications running on a terminal device and a terminal device can be components. One or more components can reside in a process and / or an execution thread, and a component can be located on a computer and / or distributed between two or more computers. In addition, these components can be executed from various computer-readable media having various data structures stored thereon. Components can, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).

[0072] In order to facilitate the understanding of the embodiments of the present application, further analyze and propose the technical problems to be specifically solved by the present application, the relevant technical solutions of the present application are briefly introduced below.

[0073] Currently, the common methods for configuring or replacing hard disks include the following:

[0074] 1. Check the server configuration table through the server serial number, and then check the hard disk backplane type and disk type.

[0075] 2. Remove the server from the rack and check the hard disk backplane type and line connection status.

[0076] 3. Enter the operating system, view the hard disk information under the operating system, and combine your understanding of the server to infer the hard disk types and distribution supported by each physical device.

[0077] In any of the above methods, the inspection work requires a lot of time and manpower costs, and the inspection efficiency is low, which further leads to low efficiency of server assembly.

[0078] Based on the above technical problems, the hard disk information acquisition method, computing device and storage medium provided in the embodiments of the present application are described in detail below in combination with the accompanying drawings.

[0079] See also Figure 1 , Figure 1 The flowchart of a method for obtaining hard disk information provided by an embodiment of the present application is shown in FIG. The method can be executed by an out-of-band management device in a computing device, such as Figure 1 As shown, the method may include steps 101-103:

[0080] 101: The out-of-band manager obtains the slot configuration information of the hard disk backplane. The slot configuration information is stored in the out-of-band manager. The slot configuration information records the position distribution of the hard disk slots on the hard disk backplane.

[0081] In the embodiment of the present application, the configuration file of the out-of-band manager includes the slot configuration information of the hard disk backplane. After the server is powered on, the out-of-band manager loads the configuration file and reads the slot configuration information of the hard disk backplane. Exemplarily, the slot configuration information of the hard disk backplane may include information such as the component code of the hard disk backplane, the position distribution of each hard disk slot of the hard disk backplane, and the slot configuration table of the hard disk backplane.

[0082] 102: The out-of-band manager obtains the interface type supported by the hard disk slot.

[0083] In the embodiment of the present application, the slot configuration table of the hard disk backplane includes the slot number of each hard disk slot of the hard disk backplane and at least one interface type supported by each hard disk slot, and the slot number of each hard disk slot and at least one interface type supported by each hard disk slot are stored in association. For example, see Table 1, which gives an example of the slot configuration table.

[0084] Table 1

[0085] Slot number Supported hard disk types Slot1 SAS / SATA Slot2 SATA Slot3 NVME Slot4 SAS / SATA / NVME

[0086] As shown in Table 1, assuming that a hard disk backplane includes 4 hard disk slots, slot Slot1 supports hard disk types Serial Attached SCSI (SAS) and Serial ATA (SATA); slot Slot2 supports hard disk types SATA; slot Slot3 supports hard disk types NonVolatile Memory Host Controller Interface Specification (NVME); slot Slot4 supports hard disk types SAS, SATA and NVME. By querying the slot configuration table, the out-of-band manager can obtain the specific interface type supported by each hard disk slot, rather than just roughly understanding the interface type supported by the hard disk backplane.

[0087] 103: The out-of-band manager generates a correspondence between the position of the hard disk slot and the supported interface type according to the position of the hard disk slot and the interface type supported by the hard disk slot; the correspondence between the position of the hard disk slot and the supported interface type is displayed on the display device.

[0088] In the embodiments of the present application, it should be understood that when each hard disk slot of the hard disk backplane supports at least one hard disk type, each hard disk slot of the hard disk backplane should include at least one interface connector, that is, support at least one interface type, for example: slot Slot1 in Table 1 includes a SAS interface connector and a SATA interface connector.

[0089] Exemplarily, the out-of-band manager can directly generate a correspondence between the position of the hard disk slot and the interface type supported based on the position of the hard disk slot and the interface type supported by the hard disk slot, for example: associating the position of the hard disk slot with the interface type supported by the hard disk slot.

[0090] Exemplarily, for each hard disk slot, the out-of-band manager can determine the state of each interface connector (e.g., normal operation / abnormal operation) by detecting whether the electrical signal of the communication link of each interface connector is normal. For example, if the electrical signal of a certain interface connector is not detected, it means that the interface connector is not connected, and its corresponding state is abnormal operation; or, if the electrical signal of a certain interface connector is detected to be not as expected, it means that the interface connector is abnormally connected, and its corresponding state is abnormal operation; if the electrical signal of a certain interface connector is detected to be as expected (e.g., within a preset range or close to a preset value), its corresponding state is normal operation. The out-of-band manager determines the interface connector with normal working state and the interface connector with abnormal working state from at least one interface connector, and determines the interface type corresponding to the interface connector with normal working state. For example, if the SAS interface connector of slot Slot1 in Table 1 works normally and the SATA interface connector works abnormally, the determined interface type is SAS. Based on the determined interface type and the hard disk slot that supports the interface type and the corresponding interface connector works normally, a corresponding relationship between the position of the hard disk slot and the supported interface type is generated.

[0091] Exemplarily, the out-of-band manager can display the correspondence between the position of the hard disk slot and the supported interface type on a display device. For example, the out-of-band manager can be a BMC, and the display device includes a Web interface of the BMC. The correspondence between the position of the hard disk slot and the supported interface type is displayed on the Web interface of the BMC.

[0092] In this implementation, the correspondence between the position of the hard disk slot and the supported interface type is displayed on the BMC Web interface, which can intuitively display the distribution of the hard disk slots of the hard disk backplane and the actually supported interface types.

[0093] Different manufacturers have different names for out-of-band managers; the names of out-of-band managers usually include BMC (baseboard management controller), iLO (Integrated Lights-Out), IDRAC (Integrated Dell Remote Access), HDM (Hardware Device Management), IMM (Integrated Management Module), etc. Whether it is called iLO, IDRAC, HDM, or IMM, it can be understood as the BMC in the embodiments of the present application.

[0094] It can be seen that the out-of-band manager in the computing device in the embodiment of the present application can obtain the position distribution of the hard disk slots on the hard disk backplane and the interface types specifically supported by each hard disk slot by obtaining the slot configuration information of the hard disk backplane. Compared with the original inspection method, the efficiency of obtaining the hard disk types supported by the hard disk slots on the hard disk backplane is improved, which can save a lot of manpower and time. At the same time, the corresponding relationship between the position of the hard disk slot and the supported interface type is displayed on the display device connected to the out-of-band manager, which is convenient for the staff to intuitively understand the interface types specifically supported by each hard disk slot. In the scene of computing device assembly, it is conducive to improving the assembly efficiency and avoiding the problem of installation errors such as hard disks.

[0095] See also Figure 2 , Figure 2 A flowchart of another method for obtaining hard disk information provided by an embodiment of the present application. Figure 2 As shown, the method may include steps 201-204:

[0096] 201: The out-of-band manager obtains out-of-band information of the hard disk backplane; wherein the out-of-band information includes a component code of the hard disk backplane.

[0097] In the embodiment of the present application, slot configuration information of multiple types of hard disk backplanes (e.g., all hard disk backplanes supported by the computing device) supported by the computing device is added to the configuration file of the out-of-band manager, and the slot configuration information of each type of hard disk backplane includes information such as the component code of the corresponding hard disk backplane, the position distribution of each hard disk slot of the hard disk backplane, and the slot configuration table of the hard disk backplane. The component code is stored in association with the position distribution of each hard disk slot of the hard disk backplane, the slot configuration table of the hard disk backplane, and other information.

[0098] After the computing device is powered on, the out-of-band manager reads the slot configuration information of all types of hard disk backplanes and executes step 201 to obtain the component code of the hard disk backplane. The out-of-band information includes the serial number, component code, model, etc. of the hard disk backplane, which can be provided by a field replaceable unit (FRU).

[0099] In this implementation, the out-of-band manager can obtain the component code of the hard disk backplane in an out-of-band manner, so as to query the slot configuration information of the hard disk backplane using the component code.

[0100] Exemplarily, the hard disk backplane includes a conventional backplane and / or an extended IO module. When the hard disk backplane includes a conventional backplane and an extended IO module, the out-of-band manager can read the slot configuration information of the two, and combine them based on the position distribution of the hard disk slots of the two to obtain the overall hard disk slot position distribution. Assuming that the extended IO module includes two hard disk slots, Slot 1 and Slot 2, and a conventional backplane includes four hard disk slots, Slot 3-Slot 6, the out-of-band manager can obtain the following information: Figure 3 The location distribution of the hard disk slots shown (i.e., the combination of the expansion IO module and the conventional backplane).

[0101] 202: Based on the component code, the out-of-band manager searches for slot configuration information matching the component code in the out-of-band manager.

[0102] In the embodiment of the present application, the out-of-band manager determines the slot configuration information of the hard disk backplane from the multiple slot configuration information saved in the configuration file according to the component code. The multiple slot configuration information is the slot configuration information of multiple types of hard disk backplanes supported by the computing device, and the multiple slot configuration information corresponds to multiple types of hard disk backplanes one by one, and the multiple types include the type to which the hard disk backplane belongs.

[0103] In this implementation, the out-of-band manager can query and obtain the component code of the hard disk backplane, and then use the component code to search in the configuration file to obtain the slot configuration information of the hard disk backplane.

[0104] 203: The out-of-band manager obtains the interface type supported by the hard disk slot.

[0105] In the embodiment of the present application, since the slot configuration information of the hard disk backplane includes the slot configuration table of the hard disk backplane, the out-of-band manager obtains at least one hard disk type supported by each hard disk slot of the hard disk backplane by reading the slot configuration table.

[0106] In this implementation, by querying the pre-configured slot configuration table, the hard disk type specifically supported by each hard disk slot of the hard disk backplane can be obtained, and there is no need to spend a lot of time on manual inspection, which improves the efficiency of hard disk type inspection and realizes refined inspection of hard disk types.

[0107] Exemplarily, after step 203, the method further includes: the out-of-band manager classifies the hard disk slots according to the interface types supported by the hard disk slots to generate an initial hard disk type information table corresponding to the hard disk backplane; the initial hard disk type information table associates and records the various interface types supported by the hard disk backplane and the hard disk slots corresponding to the various interface types. The initial hard disk type information table may be a MAP lookup table.

[0108] In the embodiment of the present application, the result of the classification of the interface types supported by the hard disk slots as shown in Table 1 by the out-of-band manager may be:

[0109] SAS: Slot1, Slot4; SATA: Slot1, Slot2, Slot4; NVME: Slot3, Slot4.

[0110] Based on the classification result, the out-of-band manager may generate a corresponding initial hard disk type information table. For example, see Table 2, which provides an example of an initial hard disk type information table.

[0111] Table 2

[0112]

[0113] 204: The out-of-band manager generates a correspondence between the position of the hard disk slot and the supported interface type according to the position of the hard disk slot and the interface type supported by the hard disk slot; the correspondence between the position of the hard disk slot and the supported interface type is displayed on the display device.

[0114] Exemplarily, before step 204, the method further includes: obtaining an interface connector on the hard disk backplane that is working normally. Specifically, the out-of-band manager can determine whether each interface connector is working normally or abnormally by detecting whether the electrical signal of the communication link of each interface connector is normal. Based on this, the out-of-band manager generates a correspondence between the position of the hard disk slot and the supported interface type according to the position of the hard disk slot corresponding to the interface connector that is working normally and the interface type supported by the hard disk slot. Exemplarily, the out-of-band manager can detect the electrical signal of the communication link of each interface connector through a complex programmable logic device (CPLD) on the hard board backplane.

[0115] In this implementation, the out-of-band manager detects the status of the communication link of the interface connector of each hard disk slot, and can determine the normally working interface connector in each hard disk slot, thereby generating a correspondence between the position of the hard disk slot and the interface type supported by the normally working interface connector, which is facilitating the acquisition of the hard disk type actually supported by each hard disk slot.

[0116] Exemplarily, generating a correspondence between the position of the hard disk slot and the supported interface type according to the position of the hard disk slot corresponding to the normally working interface connector and the interface type supported by the hard disk slot includes:

[0117] The hard disk slot corresponding to the interface connector that works normally in the initial hard disk type information table is retained to obtain the hard disk type information table corresponding to the hard disk backplane;

[0118] According to the position of the hard disk slot in the hard disk type information table and the interface type corresponding to the hard disk slot in the hard disk type information table, a correspondence between the position of the hard disk slot and the supported interface type is generated.

[0119] In the embodiment of the present application, the out-of-band manager removes the hard disk slot corresponding to the interface connector that is working abnormally from the initial hard disk type information table, retains the hard disk slot corresponding to the interface connector that is working normally, and obtains the hard disk type information table corresponding to the hard disk backplane. For example, if the SAS interface connector of slot Slot1 in Table 2 is abnormal, then slot Slot1 is removed from the physical slot corresponding to the SAS hard disk type, and the final hard disk type information table can be shown in Table 3.

[0120] Table 3

[0121]

[0122] Exemplarily, the out-of-band manager may be a BMC, which imports the hard disk type information table into the management system of the BMC. For the hard disk slot in the hard disk type information table, such as Figure 4 As shown, the hard disk slot and the actually supported interface type are displayed on the Web interface of the management system according to its position on the hard disk backplane, wherein the Web interface of the management system is displayed on the display device.

[0123] In this implementation, the out-of-band manager can determine the interface connectors in each hard disk slot that are working abnormally by detecting the status of the communication link of the interface connector, thereby removing the physical slot corresponding to the interface connector in the abnormal state from the initial hard disk type information table, retaining the hard disk slot corresponding to the interface connector that is working normally, and obtaining the interface type actually supported by each hard disk slot, thereby obtaining more accurate interface type information. At the same time, reflecting the interface type actually supported by each hard disk slot in the form of a hard disk type information table is conducive to quickly generating the corresponding relationship between the position of the hard disk slot and the actually supported interface type based on the position of the hard disk slot in the hard disk type information table and the interface type corresponding to the hard disk slot in the hard disk type information table. The corresponding relationship between the position of the hard disk slot and the supported interface type is displayed on the Web interface, which intuitively shows the distribution of the hard disk slots on the hard disk backplane and the actually supported interface types.

[0124] Exemplarily, the method further includes:

[0125] Based on the latest determined correspondence between the position of the hard disk slot and the supported interface type, the correspondence between the position of the hard disk slot and the supported interface type saved by the out-of-band manager is updated.

[0126] In the embodiment of the present application, the hard disk type information table is written into the slot configuration information of the hard disk backplane to update the original hard disk type information table in the out-of-band manager.

[0127] In this implementation, each time the computing device is powered on, the out-of-band manager can re-execute the operation of obtaining the interface types actually supported by the hard disk slot, generate a new correspondence between the position of the hard disk slot and the supported interface types, and update the original correspondence between the position of the hard disk slot and the supported interface types in the out-of-band manager, so that the staff can obtain the latest supported interface types for the hard disk slot.

[0128] To facilitate understanding of the technical solution of the embodiment of the present application, the following briefly describes the solution using BMC as an example. Figure 5 , Figure 5 The overall flow chart of a method for obtaining hard disk information provided by an embodiment of the present application is as follows. Figure 5 As shown, the method may include the following steps:

[0129] (1) Add the slot configuration information of the hard disk backplane and expansion IO module commonly used in different models to the BMC configuration file;

[0130] (2) After the computing device is powered on, the BMC loads the configuration file to read the slot configuration information of all types of hard disk backplanes and expansion IO modules, and obtains the position distribution and line connection relationship of the hard disk slots of different types of hard disk backplanes and expansion IO modules;

[0131] (3) The BMC obtains out-of-band information of the hard disk backplane and / or expansion IO to be checked;

[0132] (4) The BMC queries the slot configuration table to obtain at least one interface type supported by each hard disk slot;

[0133] (5) The BMC classifies each hard disk slot of the hard disk backplane and / or the extended IO according to the interface type supported by the hard disk backplane and / or the extended IO, and generates an initial hard disk type information table of the hard disk backplane and / or the extended IO based on the classification result;

[0134] (6) The BMC obtains the working status of at least one interface connector of each hard disk slot of the hard disk backplane and / or the expansion IO, and determines whether the at least one interface connector is working normally or abnormally;

[0135] (7) The BMC removes the hard disk slot corresponding to the interface connector that is working abnormally from the initial hard disk type information table to obtain the hard disk type information table of the hard disk backplane and / or the expansion IO;

[0136] (8) BMC imports the hard disk type information table into the BMC management system;

[0137] (9) According to the physical location of the hard disk slot in the hard disk type information table, the hard disk slot and the corresponding interface type in the hard disk type information table are displayed on the BMC web interface.

[0138] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

[0139] See also Figure 6 , Figure 6 A schematic diagram of the structure of a hard disk information acquisition device provided in an embodiment of the present application. The device is used in a computing device, the computing device includes a hard disk backplane and an out-of-band manager, and the hard disk backplane is provided with multiple hard disk slots; the device includes an acquisition unit 601 and a processing unit 602;

[0140] The acquisition unit 601 is used to acquire the slot configuration information of the hard disk backplane, the slot configuration information is stored in the out-of-band manager, and the slot configuration information records the position distribution of the hard disk slots on the hard disk backplane; and acquire the interface type supported by the hard disk slot;

[0141] Processing unit 602 is used to generate a correspondence between the position of the hard disk slot and the supported interface type according to the position of the hard disk slot and the interface type supported by the hard disk slot; the correspondence between the position of the hard disk slot and the supported interface type is displayed on the display device.

[0142] It can be seen that in Figure 6 In the device shown, by obtaining the slot configuration information of the hard disk backplane, the position distribution of the hard disk slots on the hard disk backplane and the interface types specifically supported by each hard disk slot can be obtained. Compared with the original inspection method, the efficiency of obtaining the hard disk types supported by the hard disk slots on the hard disk backplane is improved, which can save a lot of manpower and time. At the same time, the corresponding relationship between the position of the hard disk slot and the supported interface type is displayed on the display device connected to the out-of-band manager, which is convenient for the staff to intuitively understand the interface types specifically supported by each hard disk slot. In scenarios such as computing device assembly, it is beneficial to improve assembly efficiency and avoid installation errors such as hard disks.

[0143] In a possible implementation, the acquiring unit 601 is specifically configured to:

[0144] Get the component code of the hard disk backplane;

[0145] Based on the component code, the out-of-band manager searches for slot configuration information that matches the component code.

[0146] In a possible implementation, the acquiring unit 601 is further configured to:

[0147] Get a working interface connector on the hard disk backplane;

[0148] The processing unit is specifically used for:

[0149] According to the position of the hard disk slot corresponding to the normally working interface connector and the interface type supported by the hard disk slot, a correspondence relationship between the position of the hard disk slot and the supported interface type is generated.

[0150] In a possible implementation, the processing unit 602 is further configured to:

[0151] Based on the latest determined correspondence between the position of the hard disk slot and the supported interface type, the correspondence between the position of the hard disk slot and the supported interface type saved by the out-of-band manager is updated.

[0152] In a possible implementation, the processing unit 602 is further configured to:

[0153] Classify the hard disk slots according to the interface types they support, so as to generate an initial hard disk type information table corresponding to the hard disk backplane; the initial hard disk type information table associates and records the various interface types supported by the hard disk backplane and the hard disk slots corresponding to the various interface types;

[0154] The processing unit is specifically used for:

[0155] The hard disk slot corresponding to the interface connector that works normally in the initial hard disk type information table is retained to obtain the hard disk type information table corresponding to the hard disk backplane;

[0156] According to the position of the hard disk slot in the hard disk type information table and the interface type corresponding to the hard disk slot in the hard disk type information table, a correspondence between the position of the hard disk slot and the supported interface type is generated.

[0157] In a possible implementation, the acquiring unit 601 is specifically configured to:

[0158] Obtain out-of-band information of the hard disk backplane; wherein the out-of-band information includes a component code.

[0159] In a possible implementation, the acquiring unit 601 is specifically configured to:

[0160] According to the component code, the slot configuration information is determined from the multiple slot configuration information saved in the out-of-band manager; wherein the multiple slot configuration information is the slot configuration information of the multiple types of hard disk backplanes supported by the computing device, and the multiple slot configuration information corresponds one-to-one to the multiple types of hard disk backplanes; the multiple types include the type to which the hard disk backplane belongs.

[0161] In a possible implementation, the out-of-band manager is a baseboard management controller BMC, the display device includes a Web interface of the BMC, and the correspondence between the position of the hard disk slot and the supported interface type is displayed on the Web interface of the BMC.

[0162] For example, Figure 6 The various units in the device shown can be combined into one or more other units separately or in whole, or one (or more) of the units can be further divided into multiple functionally smaller units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other examples of the present application, Figure 6 The device shown may also include other units. In practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by collaboration of multiple units.

[0163] For example, the program can be executed by running on a general-purpose computing device such as a computer including a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM), and other processing elements and storage elements. Figure 1 or Figure 2 A computer program (including program code) for each step involved in the corresponding method shown in Figure 6 The apparatus shown in and the hard disk information acquisition method of the embodiment of the present application are implemented. The computer program can be recorded on, for example, a computer readable recording medium, and loaded into the above-mentioned computing device through the computer readable recording medium, and run therein.

[0164] See also Figure 7 , Figure 7 A schematic diagram of a computing device provided in an embodiment of the present application. The computing device includes at least a memory 701, a processor 702, a communication interface 703, and a bus 704. For example, the computing device may be a server. The memory 701, the processor 702, and the communication interface 703 are connected to each other through a bus 704.

[0165] The memory 701 includes but is not limited to RAM, ROM, erasable programmable read only memory (EPROM), or portable read only memory (compact disc read-only memory, CD-ROM), and the memory 701 is used to store relevant computer programs and data.

[0166] The processor 702 may include one or more processing chips. When the processor 702 includes one processing chip, the processor 702 may be a single-core processing chip or a multi-core processing chip. Alternatively, the processor 702 may also be a BMC in a server.

[0167] The processor 702 in the computing device is used to read one or more programs stored in the memory 701 and perform the following operations:

[0168] Obtain the slot configuration information of the hard disk backplane. The slot configuration information is stored in the out-of-band manager. The slot configuration information records the position distribution of the hard disk slots on the hard disk backplane.

[0169] Get the interface type supported by the hard disk slot;

[0170] According to the position of the hard disk slot and the interface type supported by the hard disk slot, a correspondence between the position of the hard disk slot and the supported interface type is generated; the correspondence between the position of the hard disk slot and the supported interface type is displayed on the display device.

[0171] The communication interface 703 is used to cooperate with the processor 702 to perform operations such as sending and receiving data.

[0172] It should be noted that the implementation of each operation can also refer to Figure 1 or Figure 2 The corresponding description of the method embodiment shown.

[0173] The present application also provides a computer-readable storage medium, which is a memory device in a computing device and is used to store a computer program for execution by the device. When the computer program is executed on the computing device, Figure 1 or Figure 2 The method flow shown is realized.

[0174] It is understandable that the computer-readable storage medium here can include both built-in storage media in the computing device and, of course, extended storage media supported by the computing device. The computer-readable storage medium provides a storage space that stores the operating system of the computing device. In addition, one or more computer programs suitable for being loaded and executed by the processor are also stored in the storage space. It should be noted that the computer-readable storage medium here can be a high-speed RAM or a non-volatile memory, such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.

[0175] The embodiment of the present application also provides a computer program product. When the computer program product is executed by a device, Figure 1 or Figure 2 The method flow shown is realized.

[0176] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0177] It should be understood that the processor mentioned in the embodiments of the present application may be a CPU, a BMC, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0178] It should also be understood that the memory mentioned in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a ROM, a programmable read-only memory (Programmable ROM, PROM), an EPROM, an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM) or a flash memory. The volatile memory can be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (DoubleData Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM).

[0179] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.

[0180] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0181] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0182] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely exemplary. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0184] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.

[0185] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of this application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0186] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0187] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0188] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for obtaining hard disk information, used in a computing device, wherein the computing device comprises a hard disk backplane and an out-of-band manager, wherein the hard disk backplane is provided with a plurality of hard disk slots; characterized in that: include: Acquire slot configuration information of the hard disk backplane, wherein the slot configuration information is stored in the out-of-band manager, and the slot configuration information records the position distribution of the hard disk slots on the hard disk backplane; Obtain the interface type supported by the hard disk slot; According to the position of the hard disk slot and the interface type supported by the hard disk slot, a correspondence between the position of the hard disk slot and the supported interface type is generated; the correspondence between the position of the hard disk slot and the supported interface type is displayed on a display device.

2. The method according to claim 1, characterized in that The obtaining of the slot configuration information of the hard disk backplane includes: Obtaining the component code of the hard disk backplane; Based on the component code, the out-of-band manager is searched for slot configuration information matching the component code.

3. The method according to claim 1, characterized in that Before the step of generating a correspondence between the position of the hard disk slot and the interface type supported by the hard disk slot according to the position of the hard disk slot and the interface type supported by the hard disk slot, the method further includes: Obtain a normally working interface connector on the hard disk backplane; The generating, according to the position of the hard disk slot and the interface type supported by the hard disk slot, a corresponding relationship between the position of the hard disk slot and the interface type supported by the hard disk slot includes: According to the position of the hard disk slot corresponding to the normally working interface connector and the interface type supported by the hard disk slot, a correspondence between the position of the hard disk slot and the supported interface type is generated.

4. The method according to claim 1, characterized in that: The method further comprises: Based on the latest determined correspondence between the position of the hard disk slot and the supported interface type, the correspondence between the position of the hard disk slot and the supported interface type saved by the out-of-band manager is updated.

5. The method according to claim 3, characterized in that: After obtaining the interface type supported by the hard disk slot, the method further includes: The hard disk slots are classified according to the interface types supported by the hard disk slots to generate an initial hard disk type information table corresponding to the hard disk backplane; the initial hard disk type information table records the various interface types supported by the hard disk backplane and the hard disk slots corresponding to the various interface types; The generating, based on the position of the hard disk slot corresponding to the normally working interface connector and the interface type supported by the hard disk slot, a corresponding relationship between the position of the hard disk slot and the supported interface type comprises: Retain the hard disk slot corresponding to the interface connector that works normally in the initial hard disk type information table, and obtain the hard disk type information table corresponding to the hard disk backplane; According to the position of the hard disk slot in the hard disk type information table and the interface type corresponding to the hard disk slot in the hard disk type information table, a correspondence between the position of the hard disk slot and the supported interface type is generated.

6. The method according to claim 2, characterized in that The obtaining of the component code of the hard disk backplane includes: Obtain out-of-band information of the hard disk backplane; wherein the out-of-band information includes the component code.

7. The method according to claim 2 or 6, characterized in that: The searching, in the out-of-band manager, for slot configuration information matching the component code based on the component code includes: According to the component code, the slot configuration information is determined from multiple slot configuration information saved in the out-of-band manager; wherein the multiple slot configuration information is the slot configuration information of multiple types of hard disk backplanes supported by the computing device, and the multiple slot configuration information corresponds one-to-one to the multiple types of hard disk backplanes; the multiple types include the type to which the hard disk backplane belongs.

8. The method according to any one of claims 1 to 7, characterized in that: The out-of-band manager is a baseboard management controller BMC, the display device includes a Web interface of the BMC, and the correspondence between the position of the hard disk slot and the supported interface type is displayed on the Web interface of the BMC.

9. A computing device, characterized in that The system comprises a processor and a memory, wherein the memory is used to store one or more programs, and the programs include instructions for executing the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for execution by a device, and when the computer program is executed, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Hard disk access method of hard disk backboard, substrate management controller, server and storage medium

    CN120891985A

  • A hard disk access method of a hard disk backplane, a server and a storage medium

    CN120891985B