Method for associating logical disk symbols and hard disk slots and server

By exchanging information using in-band and out-of-band management software within the server, the correspondence between the operating system's logical drive letter and the hard drive slot is determined, solving the problem of fault location caused by incorrect or missing hard drive insertion and achieving efficient and accurate hard drive management.

CN115454341BActive Publication Date: 2025-10-24XFUSION DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211099604.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-09
Publication Date
2025-10-24
Estimated Expiration
2042-09-09

AI Technical Summary

Technical Problem

During the mass production of servers, issues such as incorrect, missing, or loose hard drive connections frequently occur, making it difficult to locate hard drive failures. This is especially true in storage-type servers, where the number of hard drives is large and management is challenging, and current technology struggles to accurately pinpoint the correspondence between hard drive slots and operating system logical drive letters.

Method used

Through information exchange between in-band and out-of-band management software, the processor obtains hardware configuration relationship information, and combines the address of the storage controller and the relative position number of the hard disk slot to determine the correspondence between the logical drive letter of the operating system and the hard disk slot, thereby achieving accurate location of hard disk faults.

Benefits of technology

It improves the accuracy and efficiency of hard drive fault location, reduces manual intervention and error rate, and simplifies hard drive management process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115454341B_ABST
    Figure CN115454341B_ABST
Patent Text Reader

Abstract

The application provides a method and a server for associating a logical disk symbol with a hard disk slot. In an embodiment, the method comprises: a processor acquiring hardware configuration relationship information sent by an out-of-band controller; the hardware configuration relationship information being used to indicate an address of a storage controller, a first hard disk slot relative position number used by the storage controller to manage a hard disk, and an absolute position number of the hard disk slot corresponding to the first hard disk slot relative position number; the processor determining a target logical disk symbol corresponding to the address of a target storage controller; the processor determining a target hard disk slot relative position number of the target logical disk symbol in the target storage controller; and the processor CPU determining an absolute position number of a target hard disk slot corresponding to the target hard disk slot relative position number based on the hardware configuration relationship information and the address of the target storage controller. Thus, the positioning of the hard disk slot on the server no longer depends on lighting each hard disk positioning lamp, and the positioning efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of servers, and in particular to a method for associating a logical disk symbol and a hard disk slot and a server. BACKGROUND

[0002] In the current large-scale production stage of servers, since the hard disks are manually assembled, it is inevitable that there will be incorrect insertion, missed insertion and virtual connection and the like, especially for storage type servers, the number of hard disks is as many as dozens or even hundreds, and hard disk slot checking is a necessary link. Hard disk management in the field of servers has always been a difficult thing, especially the associated management of out-of-band management and in-band management. Hard disk failures are often manifested on the operating system side, and it is difficult to locate the position of the hard disk.

[0003] Therefore, how to determine the correspondence between the logical disk symbol of the operating system and the hard disk slot on the server has become a technical problem to be solved. SUMMARY

[0004] The embodiments of the present application provide a method for associating a logical disk symbol and a hard disk slot and a server, through information exchange between in-band management software and out-of-band management software, the correspondence between the logical disk symbol of the operating system and the hard disk node on the server can be determined, which is convenient for subsequent hard disk fault positioning.

[0005] In a first aspect, the embodiments of the present application provide a method for associating a logical disk symbol and a hard disk slot, a processor acquires hardware configuration relationship information sent by an out-of-band controller; wherein the hardware configuration relationship information is used to represent the address of a storage controller, the relative position number of a hard disk slot used by the storage controller to manage a hard disk, the absolute position number of the hard disk slot corresponding to the relative position number of the hard disk slot; the processor determines a target logical disk symbol corresponding to the address of a target storage controller; the processor determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller; and the processor determines the target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on the hardware configuration relationship information and the address of the target storage controller.

[0006] In the present solution, the information of the in-band management software acquired by the processor is combined with the information of the out-of-band management software in the out-of-band controller, so that the correspondence between the logical disk symbol of the operating system and the hard disk slot on the server can be determined, which is convenient for subsequent hard disk fault positioning.

[0007] In a possible implementation, the target storage controller is a SATA controller or a SAS controller, and the processor determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller by: determining a target drive hard disk slot number corresponding to the target logical disk symbol; wherein the target drive hard disk slot number is a number assigned by a device driver of the target storage controller based on the hard disk slot relative position number in the target storage controller; and determining a target hard disk slot relative position number corresponding to the target drive hard disk slot number based on the target drive hard disk slot number.

[0008] In this solution, when the target storage controller is a SATA controller or a SAS controller, the target hard disk slot relative position number can be deduced in combination with the drive hard disk slot number assigned by the device driver of the SATA controller or the SAS controller based on the hard disk slot relative position number. Essentially, the in-band management software deduces the hard disk slot relative position number by using the relationship between the hard disk slot relative position number and the logical disk symbol.

[0009] In a possible implementation, the target storage controller is a RAID card.

[0010] Optionally, the target logical disk symbol corresponds to one hard disk, and the processor determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller by: checking first information of the target storage controller based on a number of the target storage controller, wherein the first information comprises a hard disk slot relative position number; and determining the target hard disk slot relative position number based on the first information.

[0011] In this solution, when the target storage controller is a RAID card, the target hard disk slot relative position number can be deduced directly in combination with the information of the target storage controller under the in-band management software, which indicates the hard disk slot relative position number and other corresponding information.

[0012] In an example, the processor determines the target hard disk slot relative position number based on the first information by: determining a target hard disk serial number corresponding to the target logical disk symbol; selecting a reference hard disk slot relative position number from the first information; determining a reference hard disk serial number based on the number of the target storage controller and the reference hard disk slot relative position number; and taking the reference hard disk slot relative position number as the target hard disk slot relative position number when the target hard disk serial number matches the reference hard disk serial number.

[0013] In the scheme, the relative position number of the hard disk slot corresponding to the logical disk symbol can be accurately obtained through comparison of the hard disk serial number.

[0014] In one example, the first information includes the drive hard disk number corresponding to the relative position number of the hard disk slot; wherein the drive hard disk number is a number assigned to the hard disk at the relative position number of the hard disk slot in the target storage controller by the device driver of the target storage; the processor determines the target hard disk slot relative position number based on the first information, including: the processor determines the target drive hard disk number corresponding to the target logical disk symbol; the processor takes the hard disk slot relative position number corresponding to the target drive hard disk number in the first information as the target hard disk slot relative position number.

[0015] In the scheme, the first information of the in-band management software managing the RAID card indicates the drive hard disk number corresponding to the relative position number of the hard disk slot, therefore, by assigning the number to the hard disk indicated by the relative position number of the hard disk slot through the device driver of the RAID card, the target hard disk slot relative position number corresponding to the target drive hard disk number corresponding to the target logical disk symbol can be determined from the first information of the in-band management software managing the RAID card.

[0016] Optionally, the target logical disk symbol corresponds to at least one hard disk; the processor determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller, including: the processor determines the target logical disk number corresponding to the target logical disk symbol; wherein the target logical disk number is a number of a logical disk assigned by the device driver of the target storage based on grouping of the hard disks managed by the target storage controller; the processor determines the target hard disk slot relative position number based on the target logical disk number.

[0017] In the scheme, by assigning the number to the logical disk assigned by the device driver of the RAID card based on grouping of the hard disks managed by the RAID card, the target hard disk slot relative position number corresponding to the target drive hard disk number corresponding to the target logical disk symbol can be determined.

[0018] In one example, the processor determines the target hard disk slot relative position number based on the target logical disk number, including: the processor determines a target logical disk identifier corresponding to the target logical disk symbol; the processor checks second information under the target storage controller based on the target logical disk number and the number of the target storage controller; wherein the second information includes a reference hard disk slot relative position number and a reference logical disk corresponding thereto, and a reference logical disk identifier; and the processor takes the reference hard disk slot relative position number as the target hard disk slot relative position number when the target logical disk symbol matches the reference logical disk symbol and the target logical disk identifier matches the reference logical disk identifier.

[0019] In the scheme, the hard disk slot relative position number corresponding to the logical disk symbol is accurately obtained through the logical disk symbol identification and comparison.

[0020] In one example, the target hard disk slot relative position number indicates the number of the storage controller connected to the hard disk backplane and the number of the hard disk slot connected to the hard disk backplane.

[0021] In one example, the processor determines the target hard disk slot relative position number based on the target logical disk number, including: the processor checks third information of the target storage controller based on the number of the target storage controller; wherein the third information includes a hard disk slot relative position number and a logical disk number corresponding thereto; and the processor takes the hard disk slot relative position number corresponding to the target logical disk number in the third information as the target hard disk slot relative position number.

[0022] In the scheme, when the target storage controller is a RAID card, the information of the target storage controller under the in-band management software can be directly combined, which indicates the hard disk slot relative position number and the logical disk number corresponding thereto, so as to inversely deduce the hard disk slot relative position number through the logical disk number of the logical disk symbol.

[0023] In a second aspect, the embodiments of the present application provide a method for associating a logical disk symbol and a hard disk slot, including: an out-of-band controller acquires a target hard disk slot relative position number of a target logical disk symbol corresponding to an address of a target storage controller in the target storage controller sent by a processor; and the out-of-band controller determines a target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on hardware configuration relationship information and the address of the target storage controller; wherein the hardware configuration relationship information is used to represent the address of the storage controller, a hard disk slot relative position number used by the storage controller to manage a hard disk, and a hard disk slot absolute position number corresponding to the hard disk slot relative position number.

[0024] In the scheme, the information of the in-band management software obtained by the processor, in combination with the information of the out-of-band management software in the out-of-band controller, can determine the correspondence between the logical disk symbol of the operating system and the hard disk slot on the server, facilitating subsequent hard disk fault positioning.

[0025] In a third aspect, an embodiment of the present application provides a method for associating a logical disk symbol and a hard disk slot, applied to a server, the server comprising a processor and an out-of-band controller, and the method comprising: determining, by the processor, a target logical disk symbol corresponding to a target storage controller; determining, by the processor, a target hard disk slot relative position number of the target logical disk symbol in the target storage controller; determining, by the out-of-band controller, a target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on hardware configuration relationship information and an address of the target storage controller; wherein the hardware configuration relationship information is used to represent an address of a storage controller, a hard disk slot relative position number used by the storage controller to manage a hard disk, and a hard disk slot absolute position number corresponding to the hard disk slot relative position number.

[0026] In the scheme, the information of the in-band management software obtained by the processor, in combination with the information of the out-of-band management software in the out-of-band controller, can determine the correspondence between the logical disk symbol of the operating system and the hard disk slot on the server, facilitating subsequent hard disk fault positioning.

[0027] In a fourth aspect, an embodiment of the present application provides a server comprising a processor and an out-of-band controller, wherein the processor is configured to run a program of in-band management software to execute the method provided in the first aspect, or the out-of-band controller is configured to execute the method provided in the second aspect, or the processor and the out-of-band controller are configured to execute the method provided in the third aspect.

[0028] In a fifth aspect, an embodiment of the present application provides an apparatus for associating a logical disk symbol and a hard disk slot, comprising: at least one memory configured to store a program; at least one processor configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method provided in the first aspect; and an out-of-band controller configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method provided in the second aspect.

[0029] In a sixth aspect, an embodiment of the present application provides an apparatus for associating a logical disk symbol and a hard disk slot, characterized in that the apparatus runs computer program instructions to execute the method provided in the first aspect or the method provided in the second aspect. Exemplarily, the apparatus can be a processor or an out-of-band controller.

[0030] In one example, the apparatus can include a processor that can be coupled to a memory, read instructions in the memory and execute the method provided in the first aspect according to the instructions. Wherein the memory can be integrated in the chip or the processor, or independent of the chip or the processor.

[0031] In one example, the apparatus can include an out-of-band controller that can be coupled to a memory, read instructions in the memory and execute the method provided in the second aspect according to the instructions. Wherein the memory can be integrated in the chip or the out-of-band controller, or independent of the out-of-band controller.

[0032] In the seventh aspect, the embodiments of the present application provide a computer storage medium, which stores instructions, when the instructions run on a computer, make the computer execute the method provided in the first aspect, or execute the method provided in the second aspect.

[0033] In the eighth aspect, the embodiments of the present application provide a computer program product containing instructions, when the instructions run on a computer, make the computer execute the method provided in the first aspect, or execute the method provided in the second aspect. BRIEF DESCRIPTION OF DRAWINGS

[0034] Figure 1 is a structural schematic diagram of a server provided by the embodiments of the present application;

[0035] Figure 2 is Figure 1 is a schematic diagram of the connection relationship between the storage controller, the hard disk backplane and the hard disk;

[0036] Figure 3 is a flowchart of a method for associating a logical disk symbol and a hard disk slot provided by the embodiments of the present application;

[0037] Figure 4a is Figure 3 is a flowchart of step 320 in Figure 1 .

[0038] Figure 4b is Figure 3 is a flowchart of step 320 in Figure 2 .

[0039] Figure 4c is Figure 3 is a flowchart of step 320 in Figure 3 .

[0040] Figure 5a is Figure 4b is a flowchart of step 3222 in Figure 1 ;

[0041] Figure 5b is Figure 4b Flowchart of step 3222 in Figure 2 ;

[0042] Figure 5c is Figure 4b Flowchart of the scheme for associating logical disk symbols and hard disk slots provided by the present application;

[0043] Figure 6a is Figure 4c Flowchart of step 3232 in Figure 1 ;

[0044] Figure 6b is Figure 4c Flowchart of step 3232 in Figure 2 ;

[0045] Figure 6c is Figure 4c Flowchart of the scheme for associating logical disk symbols and hard disk slots provided by the present application;

[0046] Figure 7 is a flowchart of another method for associating logical disk symbols and hard disk slots provided by the present application. DETAILED DESCRIPTION

[0047] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the drawings.

[0048] In the description of the embodiments of the present application, the words “exemplary”, “for example”, or “for instance” are used to mean serving as an example, instance or illustration. Any embodiment or design solution described as “exemplary”, “for example” or “for instance” in the embodiments of the present application should not be interpreted as being more preferred or having more advantages than other embodiments or design solutions. In fact, the words “exemplary”, “for example” or “for instance” are used to present the relevant concept in a specific manner.

[0049] In the description of the embodiments of the present application, the term “and / or” is merely used to describe an association relationship of associated objects, and means that three relationships can exist, for example, A and / or B can mean that three cases of A existing alone, B existing alone and A and B existing simultaneously. In addition, unless otherwise specified, the term “multiple” means two or more. For example, multiple systems mean two or more systems, and multiple terminals mean two or more terminals.

[0050] In addition, the terms "first", "second", etc. are used only for descriptive purposes and do not connote or imply relative importance or a priority of one feature over another. Thus, features identified as "first", "second", etc. can implicitly or explicitly include one or more of the features. The terms "comprises", "comprising", "includes", "including" and "has" or "having", etc. are intended to be open-ended terms that mean "including but not limited to", unless specifically indicated otherwise.

[0051] Hereinafter, some terms used in the present embodiment are explained. It should be noted that these explanations are for the convenience of understanding by those skilled in the art, and do not limit the scope of protection claimed by the present application.

[0052] In-band: refers to the transmission of management information of a network and service information carried by the network through the same physical channel. When there is a large amount of management information, the performance of the entire network will be affected; when the amount of management information is small, the performance of the entire network is not significantly affected, and in-band management can be used. The biggest defect of in-band management is that when the network fails, both the transmission of service information and the transmission of management information cannot be normally transmitted. Here, the management information includes SNMP (Simple Network Management Protocol), Netflow (a network monitoring function that can collect the number and information of IP packets entering and leaving the network interface), Radius (Remote Authentication Dial In User Service), billing, etc. For example, the network management realized by HP Openview network management software is in-band management, and the management information and the service information are transmitted through the Ethernet port.

[0053] In-band management software (iBMA): software for realizing in-band management (in-band).

[0054] Out-of-band: refers to the transmission of management information of a network and service information carried by the network through different physical channels. The management information and the service information are separated, which can improve the efficiency and reliability of network management, and is also conducive to improving the security of management data.

[0055] Out-of-band management software (iBMC): software for realizing out-of-band management (out-of-band).

[0056] The BIOS (Basic Input / Output System) is a set of programs stored on a ROM chip on the computer's motherboard. As the most basic and direct manager of the motherboard's hardware settings and controls, it provides the computer with numerous simple, user-friendly features. The BIOS stores the computer's most important basic input / output programs, the post-boot self-test program, and the system startup program. Its primary function is to provide the computer with the most basic and direct hardware settings and controls. System hardware changes are hidden by the BIOS, and programs utilize BIOS functions rather than directly controlling the hardware.

[0057] PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard): is a peripheral component interconnection standard. It supports 256 buses, each bus supports up to 32 devices, and each device supports up to 8 functions, so BDF (Bus, device, function) constitutes the identification number of the device (for the sake of ease of description and distinction, called PCIe device) hanging under the PCIE bus. Specifically, when using the PCIE protocol, many types of PCIe devices can be hung under the PCIe bus in the server, including hard disks, network cards, SAS controllers, SATA controllers, and RAID cards. The PCIe bus is a high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected PCIE devices are allocated exclusive channel bandwidth and do not share the bus bandwidth. In the actual board design, it is necessary to clearly define the bandwidth required by the device and make correct settings in the BIOS so that the PCIe device can be used normally. The PCIe address can be composed of the bus number, device number and function number, for example: 0000:01:00.0; where 01 is the bus number, 00 is the device number, and .0 is the function number.

[0058] Hard disk backplane: A frame that supports the connection between the motherboard and the hard disk. Each hard disk backplane can be connected to multiple hard disks through slots (for ease of description and distinction, called hard disk slots). For example, hard disks 0-7 are connected to the hard disk backplane through slots slot0-slot7. Each hard disk can correspond to an indicator light, which can be an LED light.

[0059] RAID (Redundant Array of Independent Disks, or simply disk array): As a key component in a computer, it can effectively protect user data security.

[0060] RAID card: is used to achieve the function of the card, usually by I / O processor, storage controller, hard disk connector and cache and a series of components constitute. Simply speaking, RAID card is a kind of independent hard disk (physical hard disk) by different ways of combination to form a logical hard disk, so as to provide higher storage performance than single hard disk and provide data redundancy technology. In practical application, a RAID card can connect a hard disk backplane, or connect multiple hard disk backplane.

[0061] JBOD (Just Bundle Of Disks, simple disk bundle, also known as Span): logically connect several physical hard disks one by one, so as to provide a large logical disk. The data on the span is simply stored from the first hard disk, and when the storage space of the first hard disk is used up, the data is stored from the rear hard disk in turn. Its access performance is exactly the same as the access operation of single hard disk.

[0062] SATA (Serial Advanced Technology Attachment, a serial hardware driver interface based on industry standard): is a hard disk slot specification proposed by Intel, IBM, Dell, APT, Maxtor and Seagate companies.

[0063] SATA controller: is used to connect the hard disk backplane and control the hard disk on the connected hard disk backplane. In practical application, a SATA controller can only connect one hard disk backplane, or the SATA control connects several hard disk backplanes through RAID card.

[0064] SAS (Serial Attached SCSI): serial connection SCSI, is a new generation of SCSI technology, which adopts serial technology to obtain higher transmission speed, and improves internal space by shortening the connecting line.

[0065] SAS controller: is used to connect the hard disk backplane and control the hard disk on the connected hard disk backplane. It is worth noting that the SATA standard is actually a subset of the SAS standard, so the SAS controller can directly operate the hard disk connected by the SATA controller. But the SATA controller cannot control the hard disk connected by the SAS controller. In practical application, a SAS controller can only connect one hard disk backplane, or the SAS control connects several hard disk backplanes through RAID card.

[0066] Device Driver: a special program that enables the computer and the device to communicate with each other. The main function of the driver is to complete the data transmission between the computer system and the hardware device. Only with the help of the driver, the two can communicate and complete the specific function. The driver is a medium between the operating system and the hardware, realizing the bidirectional communication, conveying the functions of the hardware device to the operating system, and also conveying the standard instructions of the operating system to the hardware device.

[0067] Hard Disk Serial Number (SN): the serial number is set by the manufacturer to distinguish products at the time of factory shipment, and is unique and read-only. The hard disk serial number is like everyone's identity card number.

[0068] OS (operation system): configured on the mainboard of the server, the OS is configured with the driver of the hard disk, and the driver can obtain the information of the hard disk. Among them, the OS program can be loaded into the server running environment, and the mainboard can communicate with the controller of the backboard through the I2C bus. The mainboard communicates with the hard disk connected to the hard disk backboard through PCIE (Peripheral Component Interconnect Express, high-speed serial bus). Each mainboard can be connected in communication with multiple hard disk backboards. From the current development, the mainstream operating systems at present mainly include Linux system and Windows system, and the method provided in the application is mainly explained around the Linux system, but considering the diversity of operating systems and the possibility of more new operating systems in the future, the application does not limit the specific type of operating system.

[0069] Logical disk symbol: the relative identifier of the hard disk in the operating system OS. In the Linux system, the logical disk symbol of the hard disk can be represented by sda, sdb, etc.; in the Windows system, the logical disk symbol of the hard disk can be represented by Disk0, Disk1, etc.

[0070] In the current mass production stage of the server, due to the manual assembly of the hard disk, there will inevitably be wrong insertion, missing insertion and virtual connection and the like, especially for the storage type server, the number of hard disks is as many as dozens or even hundreds, and the hard disk slot check is a necessary link. The hard disk management in the server field has always been a difficult thing, especially the associated management of the out-of-band management and the in-band management. The hard disk failure often appears on the operating system side, and how to locate the position of the hard disk is a very difficult thing. It should be pointed out that in the server, the server allocates an absolute and unchangeable number (for the convenience of description and distinction, it is called the absolute position number of the hard disk slot) to each hard disk slot, and the positioning of the position of the hard disk refers to determining the absolute position number of the hard disk slot.

[0071] At present, the absolute position number of the hard disk slot is determined by the lighting method. Specifically, by the lighting method, the hard disk position light is sequentially lit, the specific position information (indicating the relationship between the hard disk position light and the absolute position number of the hard disk slot) is obtained by the iBMC through the sensing of the CPLD (Complex Programmable Logic Device, a kind of digital integrated circuit which is constructed by the user according to the respective needs), and then fed back to the operating system, so that the operating system can obtain the position information of the hard disk (i.e. the absolute position number of the hard disk slot corresponding to the hard disk) based on the relationship between the hard disk position light and the hard disk.

[0072] For the above-mentioned scheme, on the one hand, it depends on the tool interface provided by the RAID card or the interface when the SATA controller and the SAS controller are directly connected to the hard disk backboard. On the other hand, it depends on the operating system, and the current Windows and the like do not provide the lighting interface of the SATA controller and the SAS controller directly connected to the hard disk backboard. On the other hand, it takes too long and needs manual confirmation, and the error rate is high.

[0073] Therefore, how to determine the corresponding relationship between the logical disk symbol of the operating system and the hard disk slot on the server becomes a technical problem to be solved.

[0074] In the server, the storage controller (a controller controlling the hard disk, such as the SAS controller, the SATA controller or the RAID card mentioned above) allocates a number to the hard disk slot into which the hard disk is inserted to indicate the number of the position of the hard disk slot relative to the storage controller (for the convenience of description and distinction, referred to as the hard disk slot relative position number) in order to manage the hard disk connected to the storage controller. In addition, the correspondence between the hard disk slot relative position number and the hard disk slot absolute position number is stored through the hardware configuration relationship information, which is stored and maintained by the out-of-band management software iBMC. It should be noted that the hard disk slot absolute position number is unique and is usually marked around the hard disk slot on the server and can be seen by the user. For example, when the hard disk fails, the user can find the hard disk slot with the number on the server by only being informed of the hard disk slot absolute position number of the hard disk slot where the failed hard disk is located, and then replace the failed hard disk in the slot. In actual application, the plurality of hard disk slots on the server can be arranged on one hard disk backplane or on a plurality of hard disk backplanes, the storage controllers connected to each hard disk backplane are different, and the hard disk slot relative position number can be understood as the number of the position of the hard disk slot relative to the storage controller connected to the hard disk backplane where the hard disk slot is located. In other words, the storage controller allocates a number to the connected hard disk slot to achieve management. Therefore, the hard disk slot will change with the connected storage controller.

[0075] In addition, the operating system OS in the server stores logical disk symbol information, which indicates the storage controller and the logical disk symbol thereunder. The in-band management software iBMA is part of the operating system and can obtain the logical disk symbol information of the operating system OS. In addition, the in-band management software iBMA can derive the hard disk slot relative position number corresponding to the logical disk symbol under the storage controller to obtain a logical disk symbol relationship table, which indicates the correspondence among the storage controller, the logical disk symbol and the hard disk slot relative position number.

[0076] Based on this, in order to solve the above technical problems, the embodiment of the present application proposes a logical disk symbol relationship table based on the in-band management software iBMA, which, in combination with the hardware configuration relationship information of the out-of-band management software iBMC, obtains the hard disk slot absolute position number corresponding to the logical disk symbol. Specifically, the following two technical solutions can be used:

[0077] Technical solution 1: The in-band management software iBMA obtains the hardware configuration relationship information from the out-of-band management software iBMC, combines the logical disk symbol relationship table, and further derives the hard disk slot absolute position number corresponding to the logical disk symbol.

[0078] Technical solution 2: The out-of-band management software iBMC obtains the logical disk symbol relationship table from the in-band management software iBMA, combines the hardware configuration relationship information, and further derives the hard disk slot absolute position number corresponding to the logical disk symbol.

[0079] For example, the hardware configuration relationship information is as follows:

[0080]

[0081]

[0082] For example, the logical disk symbol relationship table is as follows:

[0083]

[0084] After summarizing:

[0085]

[0086] The embodiment of the application provides a server for realizing the above technical scheme. Figure 1 A structural schematic diagram of a server provided by the embodiment of the application is shown in the figure. Figure 1 As shown in the figure, the server 100 comprises a processor 101, a memory 102, a storage controller 103, a hard disk backboard 104, a hard disk 105 and a BMC chip 106 (a chip for out-of-band management, which can also be regarded as an out-of-band controller). The processor 101 is connected with the memory 102, the storage controller 103 and the BMC chip 106. The storage controller 103 is connected with the hard disk backboard 104. The hard disk backboard 104 is connected with the hard disk 105. The BMC chip 106 is connected with the storage controller 103 and the hard disk backboard 104. In actual application, the hard disk backboard 104 can be provided with a plurality of hard disk slots. Each hard disk slot is connected with a hard disk 105. Each hard disk slot corresponds to a label. Generally, the label is displayed on the hard disk slot (server) and is used for indicating the corresponding hard disk slot. In the embodiment of the application, the label can be referred to as an absolute position number of the hard disk slot.

[0087] As shown in the figure, Figure 1 The storage controller 103 is connected with one hard disk backboard 104. The hard disk backboard 104 is connected with a plurality of hard disks 105.

[0088] Figure 2 The connection relationship between the storage controller, the hard disk backboard and the hard disk is shown in the figure. Figure 1 As shown in the figure, Figure 2 The storage controller 103 is connected with a plurality of hard disk backboards 104. Each hard disk backboard 104 is connected with a plurality of hard disks 105.

[0089] In addition, an operating system OS runs in the memory 102, and the operating system OS includes a driver of the storage controller 103, in-band management software iBMA, and a vendor tool for managing the storage controller 103. The driver is used to drive the storage controller 103 and implement control of the storage controller 103 by the operating system OS. Generally, the driver includes a driver of the storage controller 103 (referred to as a device driver for convenience of description and distinction) and a driver of a logical disk indicated by a logical disk symbol (referred to as a system driver for convenience of description and distinction). The vendor tool is used to view information stored by the storage controller 103. For example, the operating system OS is a Linux system, and the vendor tool is storcli64.

[0090] In addition, the BMC chip 106 stores in-band management software iBMC. Since the BMC chip 106 interacts with the storage controller 103, the above-mentioned hardware configuration relationship information can be obtained. In addition, the BMC chip 106 can also interact with the hard disk backboard 104 to obtain information of the hard disk backboard 104.

[0091] Optionally, the storage controller can be a SAS controller or a SATA controller. Here, one logical disk symbol corresponds to one hard disk. The above-mentioned scenarios are applicable to Figure 1 .

[0092] Optionally, the storage controller is a RAID card. When the RAID card supports multiple hard disk backboard connections, the above-mentioned scenarios of Figure 1 or Figure 2 are applicable. When the RAID card does not support multiple hard disk backboard connections, the above-mentioned scenarios of Figure 1 are applicable.

[0093] In addition, when the storage controller is a RAID card. The RAID can have multiple modes. For example, the first mode is a JBOD mode, one logical disk symbol corresponds to one hard disk. For example, the second mode is a pass-through mode, one logical disk symbol corresponds to one hard disk. For example, the third mode is a group RAID, which is to combine multiple independent hard disks into a single logical array for use as a whole to improve transmission speed, security, and the like. Therefore, one logical disk symbol corresponds to a plurality of hard disks.

[0094] Next, a method for associating a logical disk symbol and a hard disk slot provided by an embodiment of the present application is introduced. The method can be executed by any device with computing and processing capabilities, such as the server 100 shown in Figure 1 , taken as an execution subject below for example.

[0095] Figure 3A flowchart of a method for associating a logical disk symbol and a hard disk slot is shown. The method comprises the following steps:

[0096] In step 310, the processor 101 determines a target logical disk symbol corresponding to the address of the target storage controller.

[0097] The target logical disk symbol indicates an identification of a hard disk managed by the target storage controller. The target logical disk symbol can be understood as an identification of the hard disk by the operating system OS, and is used to distinguish different hard disks. For example, the operating system OS is a Linux system, and the first logical disk symbol can be represented by sda, sdb, etc. For example, the operating system OS is a Windows system, and the target logical disk symbol can be represented by Disk0, Disk1, etc.

[0098] The address of the target storage controller is a PCIe address, i.e., the address composed of the bus number, device number, and function number described above.

[0099] The target storage controller can be a SAS controller, a SATA controller, or a RAID card. It should be noted that the mainstream storage controllers at present are SAS controllers, SATA controllers, and RAID cards. The method provided in the present embodiment is mainly described by way of example using SAS controllers, SATA controllers, and RAID cards. However, considering the diversity of storage controllers and possible future storage controllers, the present application does not specifically limit the type of storage controller.

[0100] In actual applications, the logical disk symbol information can be viewed through an instruction, and the list includes the address of the storage controller and the corresponding first logical disk symbol. For example, the operating system OS is a Linux system, and the instruction can be [root@localhost~]#ll / sys / block / .

[0101] For example, it is assumed that the query result obtained by the instruction [root@localhost~]#ll / sys / block / is as follows:

[0102] lrwxrwxrwx.1 root root 0 Mar 26 12:53 sda ->.. / devices / pci0000:00 / 0000:00:1f.2 / ata7 / host6 / target6:0:0 / 6:0:0:0 / b lock / sda

[0103] lrwxrwxrwx.1 root root 0 Mar 26 12:53 sdb ->.. / devices / pci0000:00 / 0000:00:1f.2 / ata8 / host7 / target7:0:0 / 7:0:0:0 / block / sdb

[0104] This code shows that the logical disk symbol under the storage controller represented by 0000:00:1f.2 has two, sda and sdb.

[0105] For example, assume that the query result of the command [root@localhost ~]# ll / sys / block / is as follows:

[0106] lrwxrwxrwx.1 root root 0 May 14 01:57 sda ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:0 / end_device-1:0:0 / target 1:0:0 / 1:0:0:0 / block / sda

[0107] lrwxrwxrwx.1 root root 0 May 14 01:57 sdb ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:1 / end_device-1:0:1 / target 1:0:2 / 1:0:2:0 / block / sdb

[0108] lrwxrwxrwx.1 root root 0 May 14 01:57 sdc ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:2 / end_device-1:0:2 / target 1:0:3 / 1:0:3:0 / block / sdc

[0109] lrwxrwxrwx.1 root root 0 May 14 01:57 sdd ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:3 / end_device-1:0:3 / target 1:0:4 / 1:0:4:0 / block / sdd

[0110] The code shows that the logical disk symbols under the storage controller represented by 0000:31:00.0 have four symbols, sda, sdb, sdc, and sdd.

[0111] In step 320, the processor 101 determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller.

[0112] In some embodiments, when the target storage controller is a SATA controller, considering that the target storage controller is connected to one hard disk backplane 104, at this time, the hard disk slot relative position number is the number of the hard disk slot relative to the SATA controller. For example, assuming that the hard disk backplane is connected to five hard disks, and each hard disk is connected to the SATA controller through a hard disk slot, the SATA controller will number the five hard disk slots, which can be 0, 1, 2, 3, and 4.

[0113] In some embodiments, when the target storage controller is a SAS controller, the SAS controller is similar to the SATA controller, and will not be described again.

[0114] In some embodiments, the target storage controller is a RAID card. When the RAID card supports multiple hard disk backplane connections, at this time, the hard disk slot relative position number is EID:SlotID; wherein EID represents the position number of the hard disk backplane relative to the storage controller, and SlotID represents the number of the hard disk slot relative to the RAID card. Specifically, the RAID card assigns an EID to the connected hard disk backplane, and the hard disk backplane assigns a SlotID to each hard disk slot it manages, so the RAID card can determine a unique hard disk slot through EID and SlotID. For example, assuming that the RAID card assigns an EID E1 to the hard disk backplane, and the hard disk backplane is connected to eight hard disks, and the hard disk backplane assigns a SlotID Slot0 to Slot7 to each of the eight hard disk slots it manages, then the hard disk slot relative position numbers of the eight hard disk slots are E1+Slot0, E1+Slot1, …, E1+Slot7. When the RAID card does not support multiple hard disk backplane connections, at this time, the hard disk slot relative position number is SlotID.

[0115] In other words, when the RAID card supports multiple hard disk backplanes, the relative position number of the target hard disk slot is EID:SIotID. When the RAID card does not support multiple hard disk backplanes, the relative position number of the target hard disk slot is SIotID.

[0116] Step 330: The BMC chip 106 sends hardware configuration relationship information to the processor 101; wherein the hardware configuration relationship information is used to indicate the address of the storage controller, the relative position number of the hard disk slot used by the storage controller to manage the hard disk, and the absolute position number of the hard disk slot corresponding to the relative position number of the hard disk slot.

[0117] Step 340: The processor 101 determines the target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on the hardware configuration relationship information and the address of the target storage controller.

[0118] Specifically, the target information corresponding to the address of the target storage controller is determined from the hardware configuration relationship information. The target information includes the relative position numbers of all hard disk slots under the address of the target storage controller and their corresponding absolute position numbers of the hard disk slots. Then, the relative position number of the hard disk slot that is the same as the relative position number of the target hard disk slot is determined from the target information, and the absolute position number of the hard disk slot corresponding to the number is used as the absolute position number of the target hard disk slot, thereby establishing a correspondence between the address of the target storage controller, the target logical drive letter, the relative position number of the target hard disk slot, and the absolute position number of the target hard disk slot. Subsequently, if a problem is found with the target logical drive letter, the user can find the hard disk slot with the absolute position number of the target hard disk slot on the server, and thus perform fault detection on the hard disk in the hard disk slot.

[0119] It is worth noting that the target hard disk slot relative position number corresponding to the target logical drive letter can be one or more, and the specific number needs to be determined based on the actual situation.

[0120] In the embodiment of the present application, through information exchange between the operating system and the BMC chip, the correspondence between the operating system's logical drive letter and the hard disk slot on the server can be determined, which facilitates subsequent hard disk fault location.

[0121] According to a feasible implementation, the target storage controller is a SATA controller or a SAS controller. Here, one logical drive letter corresponds to one hard disk. Figure 1 The scene shown.

[0122] Figure 4a Shown as Figure 3 FIG. 1 is a flow chart of step 320 in the embodiment shown.

[0123] like Figure 4a As shown in the aboveFigure 3 Based on the embodiments shown in the above, in the embodiments of the present application, step 320 can specifically include the following steps:

[0124] Step 3211, the processor 101 determines the drive hard disk slot number corresponding to the target logical disk symbol; wherein the drive hard disk slot number is the number assigned by the device driver of the target storage controller to the relative position number of the hard disk slot in the target storage controller.

[0125] Specifically, the driver included in the operating system includes a system driver and a device driver of the target storage controller. The device driver assigns a number based on the relative position number of the hard disk slot in the target storage controller (for the sake of description and distinction, referred to as the drive hard disk slot number), and the system driver assigns a target logical disk symbol number to the target logical disk symbol based on the device driver number. Specifically, the coding rule of the device driver is coding rule A1, and the coding rule of the system driver is coding rule A2.

[0126] Coding rule A1: based on the relative position number of the hard disk slot in all SAS controllers and SATA controllers, renumbering the relative position number of the hard disk slot of all SAS controllers and SATA controllers according to its own logic, to obtain the number of the hard disk slot managed by all SAS controllers and SATA controllers (for the sake of description and distinction, referred to as the drive hard disk slot number). In addition, the correspondence between the drive hard disk slot number and the relative position number of the hard disk slot is saved.

[0127] Coding rule A2: assigning a logical disk symbol based on the drive hard disk slot number, therefore, the correspondence between the drive hard disk slot number and the logical disk symbol will be saved. The following illustrates how to determine the drive hard disk slot number corresponding to the target logical disk symbol.

[0128] For example, for the query result of the query instruction [root@localhost ~] # ll / sys / block / :

[0129] lrwxrwxrwx.1 root root 0 Mar 26 12:53 sda ->.. / devices / pci0000:00 / 0000:00:1f.2 / ata7 / host6 / target6:0:0 / 6:0:0:0 / block / sda

[0130] lrwxrwxrwx.1 root root 0 Mar 26 12:53 sdb ->.. / devices / pci0000:00 / 0000:00:1f.2 / ata8 / host7 / target7:0:0 / 7:0:0:0 / block / sdb

[0131] Here, the drive hard disk slot number of sda is ata7. The drive hard disk slot number of sdb is ata8.

[0132] Step 3212, the processor 102 determines the target hard disk slot relative position number corresponding to the target logical disk symbol based on the drive hard disk slot number.

[0133] Specifically, the processor 101 determines the target hard disk slot relative position number corresponding to the target logical disk symbol based on the drive hard disk slot number and the coding rule of the device driver. It is worth noting that considering that the coding rules of the device drivers of different operating systems OS are different, therefore, the target logical disk symbol number combined with the coding rule of the device driver can be used to infer the target hard disk slot relative position number corresponding to the target logical disk symbol number, thereby meeting the needs of different scenarios.

[0134] Specifically, the device driver assigns the drive hard disk slot number based on the hard disk slot relative position number under the storage controller, and then the target hard disk slot relative position number can be inferred based on the drive hard disk slot number corresponding to the target logical disk symbol and the coding rule of the device driver.

[0135] Suppose the coding rule between the hard disk slot relative position number and the drive hard disk slot number is rule a, and the rule a is as follows:

[0136] According to the order of the storage controller, each storage controller is sequentially numbered according to the hard disk slot relative position number under the storage controller, and the drive hard disk slot number is obtained.

[0137] Then the smallest drive hard disk slot number assigned by the device driver to the storage controller can be determined based on the address of the storage controller; and the target hard disk slot relative position number can be determined based on the difference between the smallest drive hard disk slot number and the drive hard disk slot number corresponding to the target logical disk symbol.

[0138] For example, one SATA controller interfaces 4 hard disks, and the SATA controller numbers the 4 hard disk slots. Suppose the controller hard disk slot numbers are ata1, ata2, ata3, and ata4, and the driver numbers the controller hard disk slot numbers. Suppose the drive hard disk slot numbers of the 4 hard disk slots are ata5, ata6, ata7, ata8, and ata9 respectively. If the number ata7 corresponds to a target logical disk symbol, then the position of this logical disk symbol relative to the SATA controller (i.e. the target hard disk slot relative position number) is 7-5=2.

[0139] Here, in the embodiments of the present application, the drive hard disk slot number allocated by the device driver in the operating system for the relative position number of the hard disk slot is combined with the drive hard disk slot number corresponding to the logical disk symbol, and the information corresponding to the logical disk symbol in the target storage controller is deduced to obtain the relative position number of the target hard disk slot.

[0140] In order to facilitate the understanding of the embodiments of the present application Figure 4a The technical solutions shown below will be exemplarily described taking the Linux system as an example to illustrate how to determine the relative position number of the target hard disk slot of the target logical disk symbol when the target storage controller is a SATA controller or a SAS controller. The specific process is as follows.

[0141] 1) The processor 101 queries the information of the SATA controller of the server.

[0142] Query instruction: [root@localhost ~] # lspci | grep-i sata

[0143] The obtained information is as follows:

[0144] 00:11.4 SATA controller: Intel Corporation C610 / X99 series chipsets SATA Controller [AHCI mode] (rev 05)

[0145] 00:1f.2 SATA controller: Intel Corporation C610 / X99 series chipset 6-Port SATA Controller [AHCI mode] (rev 05)

[0146] This code indicates that the storage controller represented by 00:11.4 and 00:1f.2 is a SATA controller.

[0147] 2) The processor 101 queries the information of all logical disk symbols of the server.

[0148] Query instruction: [root@localhost ~] # ll / sys / block /

[0149] total 0

[0150] The obtained logical disk symbol information is as follows:

[0151] lrwxrwxrwx. 1 root root 0 Mar 26 12:53 sda ->.. / devices / pci0000:00 / 0000:00:1f.2 / ata7 / host6 / target6:0:0 / 6:0:0:0 / block / sda

[0152] lrwxrwxrwx. 1 root root 0 Mar 26 12:53 sdb ->.. / devices / pci0000:00 / 0000:00:1f.2 / ata8 / host7 / target7:0:0 / 7:0:0:0 / block / sdb

[0153] This code shows that the SATA controller represented by 0000:00:1f.2 has two logical disk symbols, sda and sdb. Further, it can be inferred that there is no logical disk symbol under the SATA controller represented by 0000:00:11.4. At the same time, based on sda and sdb, the drive hard disk slot number is ata7, ata8.

[0154] At this time, 0000:00:1f.2 can be used as the address of the target storage controller.

[0155] 3) The processor 101 queries all ata numbers (drive hard disk slot numbers) under the SATA controller based on the address of the SATA controller, 0000:00:1f.2.

[0156] Query instruction: [root@localhost 0000:00:1f.2]# ll / sys / bus / pci / devices / 0000:00:1f.2 /

[0157] total 0

[0158] The resulting list:

[0159] drwxr-xr-x. 6 root root 0 Apr 3 20:44 ata10

[0160] drwxr-xr-x. 6 root root 0 Apr 3 20:44 ata5

[0161] drwxr-xr-x. 6 root root 0 Apr 3 20:44 ata6

[0162] drwxr-xr-x. 6 root root 0 Apr 3 20:44 ata7

[0163] drwxr-xr-x. 6 root root 0 Apr 3 20:44 ata8

[0164] drwxr-xr-x. 6 root root 0 Apr 3 20:44 ata9

[0165] The code shows that the ata number (drive hard disk slot number) under the storage controller represented by 0000:00:1f.2 has a total of 6, which are ata5, ata6, ata7, ata8, ata9. The smallest drive hard disk slot number is ata5.

[0166] Assuming that the coding rule of the device driver is the above rule B, it can be concluded that the relative position numbers of sda and sdb to the hard disk slot of the SATA controller are 2 (ata7-ata5) and 3 (ata8-ata5).

[0167] Next, the relative position numbers of the target hard disk slot of the target logical disk symbol are explained in combination with the out-of-band management software iBMC and the in-band management software iBMA.

[0168] For the out-of-band management software iBMC (the BMC chip 106 runs the software): the addresses of the two SATA controllers 0000:00:11.4 and 0000:00:1f.2 can be obtained through the BIOS, as well as the hardware configuration relationship information corresponding to the addresses.

[0169] For the in-band management software iBMA (the processor 101 runs the software): the logical disk symbols sda and sdb under 0000:00:1f.2 can be obtained, and through the ata number (drive hard disk slot number) under the SATA controller, assuming that the coding rule of the device driver is the above rule a, it can be concluded that the relative position numbers of sda and sdb to the hard disk slot of the SATA controller are 2 (7-5) and 3 (8-5).

[0170] Thus, the corresponding relationship between the logical disk symbol and the absolute position number of the hard disk slot is obtained in combination with the relative position number of the hard disk slot corresponding to the logical disk symbol under the SATA controller of the iBMA and the hardware configuration relationship information under the SATA controller of the iBMC.

[0171] According to a feasible implementation manner, the target storage controller is a RAID card.

[0172] In a feasible implementation manner, the target logical disk symbol corresponds to one hard disk.

[0173] Figure 4b It is shown that Figure 3The flowchart of step 320 in the embodiment shown.

[0174] As shown in the above Figure 4b embodiment, based on the embodiment shown above, in the embodiment of the present application, step 320 can specifically include the following steps: Figure 3

[0175] Step 3221, the processor 101 views the first information of the target storage controller based on the number of the target storage controller; wherein the first information includes the relative position number of the hard disk slot.

[0176] Wherein, the number of the storage controller indicates the number allocated by the manufacturer tool for the storage controller. In specific implementation, based on the number of the target storage controller, the manufacturer tool can be called to view the information under the target storage controller, which includes the relative position number of all hard disk slots under the target storage controller and the corresponding information. Wherein, the number of the target storage controller indicates the number allocated by the manufacturer tool for the target storage controller. For example, the operating system OS is Linux system, the manufacturer tool is storcli64, and the number of the storage controller can be 0, 1, 2, ….

[0177] Example A, the target storage controller is a RAID card, the RAID is in JBOD mode, and it is assumed that based on the number 0 of the RAID card indicated by 0000:31:00.0, the first information of the RAID card indicated by 0000:31:00.0 is queried through the manufacturer tool storcli64 (here, only the information related to the embodiment of the present application is shown).

[0178] Query instruction: [root@linux~] #. / storcli64 / c0show

[0179] Here, c0 represents the RAID card with number 0.

[0180] The obtained first information is as follows:

[0181] Product Name=SAS3408-IT

[0182]

[0183] Wherein, the relative position number of the hard disk slot is EID: Sit, DID indicates the number allocated by the device driver for the hard disk indicated by the relative position number of the hard disk slot, that is, the number of the driven hard disk.

[0184] ​Example B, the storage controller is a RAID card, the RAID card is in pass-through mode, assuming that the number of the RAID card indicated by 0000:25:00.0 is 0, the first information of the RAID card indicated by 0000:25:00.0 is queried by a vendor tool storcli64 (here, only the information related to the embodiments of the present application is shown).

[0185] Query instruction: [root@linux ~] #. / storcli64 / c0 show

[0186] Here, c0 indicates the RAID card with the number 1.

[0187] The obtained first information is as follows:

[0188] Product Name = SAS3508

[0189]

[0190] Step 3222, the processor 101 determines the target hard disk slot relative position number based on the first information.

[0191] In the embodiments of the present application, through the information corresponding to the logical disk symbol in the operating system, the hard disk slot relative position number used by the storage controller to manage the hard disk can be deduced reversely.

[0192] Figure 5a A flowchart of step 3222 in the embodiments shown in Figure 4b is shown.

[0193] As shown in Figure 5a , on the basis of the above-described Figure 4b embodiments, in the embodiments of the present application, step 3222 can specifically include the following steps:

[0194] A11, the processor 101 determines the target hard disk serial number corresponding to the target logical disk symbol;

[0195] A12, the processor 101 selects the reference hard disk slot relative position number from the first information;

[0196] A13, the processor 101 determines the reference hard disk serial number based on the number of the target storage controller and the reference hard disk slot relative position number;

[0197] A14, the processor 101 takes the reference hard disk slot relative position number as the target hard disk slot relative position number when the target hard disk serial number and the reference hard disk serial number match.

[0198] It is worth noting that in actual application, when the target hard disk serial number and the reference hard disk serial number do not match, a hard disk slot relative position number not selected from the firmware information is selected as the reference hard disk slot relative position number, and A13 and A14 are continuously executed until the target hard disk slot relative position number is determined.

[0199] In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, how the target hard disk slot relative position number of the target logical disk symbol is illustrated below, taking the Linux system as an example. The specific process is as follows. Figure 5a

[0200] 1) The processor 101 queries the information of all logical disk symbols of the server, and it is assumed that the target logical disk symbol sdb and the address 0000:31:00.0 of the corresponding Raid card are queried.

[0201] 2) The processor 101 queries the information of the target logical disk symbol sdb.

[0202] Query instruction: localhost: ~ # smartctl -i / dev / sdb

[0203] The obtained information is as follows:

[0204] ==START OF INFORMATION SECTION==

[0205] Serial Number: Z302XG0N

[0206] Here, Z302XG0N represents the target hard disk serial number.

[0207] 3) The processor 101 determines the number 0 of the Raid card corresponding to the target logical disk symbol sdb based on the address 0000:31:00.0 of the Raid card corresponding to the target logical disk symbol sdb.

[0208] 4) The processor 101 views the first information under the Raid card based on the number 0 of the Raid card corresponding to the target logical disk symbol sdb, and it is assumed that only one hard disk slot relative position number EID:Slt 69:1 is in the first information.

[0209] 5) The processor 101 queries the information of the RAID card indicated by the address 0000:31:00.0 through the vendor tool storcli64 based on the number 0 of the Raid card corresponding to the target logical disk symbol sdb and the hard disk slot relative position number EID:Slt 69:1 (only the information related to the embodiments of the present application is shown here).

[0210] ​Query instruction: localhost: ~ # / opt / Uniautos / bin / storcli64 / c0 / e69 / s1 show all

[0211] Here, c0 represents the Raid card numbered 1, e69 represents the hard disk backplane numbered 69, and s1 represents the hard disk slot numbered 1.

[0212] The obtained information is as follows:

[0213] Drive / c0 / e69 / s1 Device attributes:

[0214] ===============================================================

[0215] SN = Z302XG0N

[0216] Wherein, Z302XG0N represents the reference hard disk serial number.

[0217] Further, the processor 101 considers that the target hard disk serial number SN under sdb and the reference hard disk serial number SN under the hard disk slot relative position number EID:Slt69:1 are the same, so sdb corresponds to the hard disk slot relative position number EID:Slt, which is 69:1.

[0218] Next, the target hard disk slot relative position number of how to determine the target logical disk symbol is explained in combination with the out-of-band management software iBMC and the in-band management software iBMA.

[0219] For the out-of-band management software iBMC (BMC chip 106 runs the software): the address 0000:31:00.0 of the RAID card can be obtained through BIOS, and the hardware configuration relationship information corresponding to the address.

[0220] For the in-band management software iBMA (the processor 101 runs the software): the sdb disk under the address 0000:31:00.0 of the RAID card can be viewed, the target hard disk serial number SN under sdb is viewed; further, the number 0 of the RAID card under 0000:31:00.0 is viewed, the first information is viewed based on the number, it is assumed that the first information has only one hard disk slot relative position number EID:Slt=69:1, the reference hard disk serial number SN is queried based on the number 0 of the RAID card under 0000:31:00.0 and EID:Slt=69:1, the target hard disk serial number SN under sdb is the same as the reference hard disk serial number SN under the hard disk slot relative position number 69:1, and the target hard disk slot relative position number EID:Slt corresponding to sdb is 69:1. It should be noted that, if the first information has only a plurality of hard disk slot relative position numbers EID:Slt, the reference hard disk serial number SN under different EID:Slt needs to be viewed based on the number 0 of the RAID card under 0000:31:00.0 and EID:Slt. One is selected from the plurality of EID:Slt as the target hard disk slot relative position number EID:Slt.

[0221] Thus, the corresponding relationship between the logical disk symbol and the hard disk slot absolute position number is obtained in combination with the hard disk slot relative position number corresponding to the logical disk symbol under the RAID card of the iBMA and the hardware configuration relationship information under the RAID card of the iBMC.

[0222] The first information includes a drive hard disk number corresponding to the hard disk slot relative position number; wherein the drive hard disk number is a number assigned to the hard disk indicated by the hard disk slot relative position number in the target storage controller by the device driver. Specifically, the coding rule of the device driver of the RAID card is coding rule B1, and the coding rule of the system driver is coding rule B2.

[0223] Coding rule B1: the device driver of the RAID card interacts with the RAID card, obtains the hard disk slot relative position number stored by the RAID card, and numbers the hard disk slot relative position number according to its own logic to obtain the number of each hard disk connected to the RAID card (for the sake of description and distinction, it is called drive hard disk number). In addition, the corresponding relationship between the drive hard disk number and the hard disk slot relative position number is saved.

[0224] Coding rule B2: the system hard disk management number is assigned based on the drive hard disk number, the system logical disk management number is assigned based on the system logical disk management number, and the logical disk symbol is assigned based on the system logical disk management number, therefore, the logical disk symbol corresponds to the drive hard disk number. In addition, the corresponding relationship among the logical disk symbol, the system hard disk management number, and the logical disk management number is saved.

[0225] For example, for the query instruction [root@localhost ~]# ll / sys / block / , the query result is as follows:

[0226] lrwxrwxrwx. 1 root root 0 May 14 01:57 sda ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:0 / end_device-1:0:0 / target 1:0:0 / 1:0:0:0 / block / sda

[0227] lrwxrwxrwx. 1 root root 0 May 14 01:57 sdb ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:1 / end_device-1:0:1 / target 1:0:2 / 1:0:2:0 / block / sdb

[0228] lrwxrwxrwx. 1 root root 0 May 14 01:57 sdc ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:2 / end_device-1:0:2 / target 1:0:3 / 1:0:3:0 / block / sdc

[0229] lrwxrwxrwx. 1 root root 0 May 14 01:57 sdd ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:3 / end_device-1:0:3 / target 1:0:4 / 1:0:4:0 / block / sdd

[0230] Here, sda, sdb, sdc, sdd respectively correspond to system hard disk management numbers port-1:0:0, port-1:0:1, port-1:0:2, port-1:0:3, which are essentially management numbers of port, and each port is connected to a hard disk. Here, the last bit (representing ID) in the system hard disk management number is incremented by 1 to represent the drive hard disk number DID. In other words, the drive hard disk numbers DID corresponding to port-1:0:0, port-1:0:1, port-1:0:2, port-1:0:3 are 1, 2, 3, 4; therefore, the drive hard disk numbers DID corresponding to sda, sdb, sdc, sdd are 1, 2, 3, 4. Here, target1:0:0, target1:0:2, target1:0:3, target1:0:4 are system logical disk management numbers.

[0231] Figure 5b The flowchart of step 3222 in the embodiment shown in Figure 4b The flowchart of step 3222 in the embodiment shown in

[0232] As shown in Figure 5b Based on the above-mentioned Figure 4b In the embodiment of the present application, step 3222 can specifically include the following steps based on the above-mentioned embodiment of the present application:

[0233] A21, the processor 101 determines the target drive hard disk number corresponding to the target logical disk symbol.

[0234] Specifically, the target drive hard disk number corresponding to the target logical disk symbol can be determined based on the system hard disk management number. In actual application, the ID number in the drive hard disk number in the target information can be checked. Assuming that the drive hard disk number in the target information is numbered from 1 and the ID in the system hard disk management number is from 0, then the number of the ID in the system hard disk management number + 1 can obtain the drive hard disk number.

[0235] A22, the processor 101 takes the hard disk slot relative position number corresponding to the target drive hard disk number in the first information as the target hard disk slot relative position number.

[0236] In addition, in order to ensure the accuracy of the target hard disk slot relative position number, the hard disk serial number SN matching method can be used to ensure the accuracy of the target hard disk slot relative position number, and further ensure the reference value of the corresponding relationship of the absolute position number of the hard disk slot corresponding to the target logical disk symbol.

[0237] Based on this, step A22 specifically includes the following contents:

[0238] The processor 101 takes the hard disk slot relative position number corresponding to the target position number in the first information as a reference hard disk slot relative position number, and executes A13 and A14.

[0239] To facilitate understanding of the technical solutions provided by the embodiments of the present application Figure 5b , the following takes the Linux system as an example to illustrate how the target hard disk slot relative position number of the target logical disk symbol is obtained. The specific process is as follows.

[0240] Example 1: the storage controller is a RAID card, and the RAID is in JBOD mode. The specific query process is as follows.

[0241] 1) The processor 101 queries the information of all logical disk symbols of the server.

[0242] Query instruction: [root@linux ~] # ll / sys / block /

[0243] total 0

[0244] The obtained logical disk symbol information is as follows:

[0245] lrwxrwxrwx.1 root root 0 May 14 01:57 sda ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:0 / end_device-1:0:0 / target 1:0:0 / 1:0:0:0 / block / sda

[0246] lrwxrwxrwx.1 root root 0 May 14 01:57 sdb ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:1 / end_device-1:0:1 / target 1:0:2 / 1:0:2:0 / block / sdb

[0247] lrwxrwxrwx. 1 root root 0 May 14 01:57 sdc ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:2 / end_device-1:0:2 / target 1:0:3 / 1:0:3:0 / block / sdc

[0248] lrwxrwxrwx. 1 root root 0 May 14 01:57 sdd ->.. / devices / pci0000:30 / 0000:30:02.0 / 0000:31:00.0 / host1 / port-1:0 / expander-1:0 / port-1:0:3 / end_device-1:0:3 / target 1:0:4 / 1:0:4:0 / block / sdd

[0249] The code shows that the logical disk symbols under the storage controller represented by 0000:31:00.0 are four, namely sda, sdb, sdc and sdd. The system hard disk management numbers corresponding to sda, sdb, sdc and sdd are port-1:0:0, port-1:0:1, port-1:0:2 and port-1:0:3 respectively. The drive hard disk numbers DID corresponding to port-1:0:0, port-1:0:1, port-1:0:2 and port-1:0:3 are 1, 2, 3 and 4 respectively; therefore, the drive hard disk numbers DID corresponding to sda, sdb, sdc and sdd are 1, 2, 3 and 4 respectively.

[0250] 2) The processor 101 determines, based on 0000:31:00.0, that the storage controller indicated by 0000:31:00.0 is a RAID card.

[0251] 3) The processor 101 queries that the number of the RAID card indicated by 0000:31:00.0 is 0.

[0252] 4) The processor 101 queries, based on the number 0 of the RAID card indicated by 0000:31:00.0, the first information of the RAID card indicated by 0000:31:00.0 through the vendor tool storcli64 (here, only the information related to the embodiments of the present application is shown).

[0253] Query instruction: [root@linux ~] #. / storcli64 / c0 show

[0254] Here, c0 denotes the Raid card numbered 0.

[0255] The first information obtained is as follows:

[0256] Product Name = SAS3408-IT

[0257]

[0258] 4) The processor 101 takes the EID:Slot = 5:0, 5:1, 5:20, 5:24 corresponding to DID = 1, 2, 3, 4 in the first information as the target hard disk slot relative position numbers corresponding to sda, sdb, sdc, sdd respectively.

[0259] Next, the target hard disk slot relative position numbers for determining the target logical disk symbol are described in combination with the out-of-band management software iBMC and the in-band management software iBMA.

[0260] For the out-of-band management software iBMC (the BMC chip 106 runs the software): the address of the RAID card 0000:31:00.0 can be obtained through the BIOS, and the hardware configuration relationship information corresponding to the address.

[0261] For the in-band management software iBMA (the processor 101 runs the software): the logical disk symbols sda, sdb, sdc, sdd under 0000:31:00.0 can be viewed, based on the ID + 1 of sda, sdb, sdc, sdd in the system hard disk management number port under the RAID card, it can be obtained that the drive hard disk numbers DID of sda, sdb, sdc, sdd under the controller are 1, 2, 3, 4, further, the first information of the RAID card indicated by 0000:31:00.0 under the device drive is accessed through the vendor tool, and the target hard disk slot relative position numbers EID:SlotID (EID:Slt) = 5:0, 5:1, 5:20, 5:24 corresponding to the drive hard disk numbers DID = 1, 2, 3, 4 are determined from the first information.

[0262] Thus, the corresponding relationship between the logical disk symbol and the hard disk slot absolute position number is obtained in combination with the hard disk slot relative position number corresponding to the logical disk symbol under the RAID card of iBMA and the hardware configuration relationship information under the RAID card of iBMC.

[0263] Example 2, the storage controller is a RAID card, the RAID is in JBOD mode, and the specific query process is as follows.

[0264] 1) The processor 101 queries the information of all logical disk symbols of the server.

[0265] Query instruction: [root@linux ~]# ll / sys / block /

[0266] total 0

[0267] The obtained logical disk symbol information is as follows:

[0268] lrwxrwxrwx 1 root root 0 May 11 10:08 sdc

[0269] ->.. / devices / pci0000:24 / 0000:24:00.0 / 0000:25:00.0 / host7 / target7:0:18 / 7:0:18:0 / block / sda

[0270] lrwxrwxrwx 1 root root 0 May 11 10:07 sda

[0271] ->.. / devices / pci0000:24 / 0000:24:00.0 / 0000:25:00.0 / host7 / target7:0:19 / 7:0:19:0 / block / sdb

[0272] The code shows that the logical disk symbols under the storage controller represented by 0000:25:00.0 are two, which are sda and sdb. The system hard disk management numbers corresponding to sda and sdb are target7:0:18 and target7:0:19 respectively. 18 and 19 in target7:0:18 and target7:0:19 represent IDs, and the drive hard disk numbers DID corresponding to sda and sdb are 18 and 19 respectively.

[0273] 2) The processor 101 determines that the storage controller indicated by 0000:25:00.0 is a RAID card based on 0000:25:00.0.

[0274] 3) The processor 101 queries that the number of the RAID card indicated by 0000:25:00.0 is 0.

[0275] 4) The processor 101 queries the first information of the RAID card indicated by 0000:25:00.0 through the vendor tool storcli64 based on the number 0 of the RAID card indicated by 0000:25:00.0 (here, only the information related to the embodiments of the present application is shown).

[0276] Query instruction: [root@linux ~]#. / storcli64 / c0 show

[0277] Here, c0 represents the Raid card numbered 0.

[0278] The first information obtained is as follows:

[0279] Product Name = SAS3508

[0280]

[0281] 4) The processor 101 takes the EID:SlotID (EID:Slt) = 134:2, 134:3 corresponding to DID = 18, 19 in the first information as the target hard disk slot relative position numbers corresponding to sda, sdb, sdc, sdd respectively.

[0282] Next, the target hard disk slot relative position numbers for determining the target logical disk symbol are described in combination with the out-of-band management software iBMC and the in-band management software iBMA.

[0283] For the out-of-band management software iBMC (the processor 101 runs the software): the address of the RAID card 0000:25:00.0 can be obtained through BIOS, and the hardware configuration relationship information corresponding to the address.

[0284] For the in-band management software iBMA (the processor 101 runs the software): the logical disk symbols sda, sdb under 0000:25:00.0 can be viewed, based on the IDs of sda, sdb, sdc, sdd in the system hard disk management number target under the RAID card, it can be obtained that the drive hard disk numbers DID of sda, sdb under the controller are 18, 19, further, the first information of the RAID card indicated by 0000:25:00.0 under the device drive is accessed through the manufacturer's tool, and the target hard disk slot relative position numbers EID:SlotID (EID:Slt) = 134:2, 134:3 corresponding to the drive hard disk numbers DID = 18, 19 are determined from the first information.

[0285] Thus, the corresponding relationship between the logical disk symbol and the hard disk slot absolute position number is obtained in combination with the hard disk slot relative position number corresponding to the logical disk symbol under the RAID card of the iBMA and the hardware configuration relationship information under the RAID card of the iBMC.

[0286] Figure 5c The technical scheme provided by the embodiment of the application associates the logical disk symbol and the hard disk slot on the server. The scheme is applied to the scenario where the storage controller is a Raid card and the Raid card mode is a JBOD mode or a pass-through mode. The specific content is as follows.

[0287] Step 501. The processor 101 obtains the logical disk symbol information under the system drive.

[0288] Here, the logical disk symbol information describes the information related to the logical disk symbol under the system driver, and at least includes the logical disk symbol and the address of the corresponding storage controller. In actual application, it can be obtained by querying the instruction. For example, the operating system is Linux system, and the logical disk symbol information is the information obtained by querying the instruction: [root@linux ~] # ll / sys / block / . For detailed examples, see the description of the first example and the second example of the above Figure 5b .

[0289] Step 502. The processor 101 obtains the address of the target storage controller in the logical disk symbol information and the target logical disk symbol corresponding to the address.

[0290] For detailed content, see the description of step 310 above, which will not be repeated.

[0291] Step 503, the processor 101 judges whether the target storage controller is a pass-through mode or a JBOS mode RAID card, if so, step 504 is executed.

[0292] Specifically, based on the address of the target storage, the related information of the target storage can be queried, so as to know whether the storage controller is a pass-through mode or a JBOS mode RAID card.

[0293] Step 504. The processor 101 determines the system hard disk management number corresponding to the target logical disk symbol in the logical disk symbol information; wherein the system hard disk management number is the number allocated by the system driver based on the drive hard disk number of the device driver of the target storage controller.

[0294] For detailed content, see the description of step A21 in the above Figure 5b , which will not be repeated.

[0295] Step 505. The processor 101 determines the target drive hard disk number of the target logical disk symbol relative to the target storage controller based on the system hard disk management number corresponding to the target logical disk symbol.

[0296] For detailed content, see the description of step A21 in the above Figure 5b , which will not be repeated.

[0297] Step 506. The processor 101 determines the number of the target storage controller based on the address of the target storage controller, and determines the first information under the target storage controller under the device driver based on the number of the target storage controller.

[0298] For detailed content, see the description of step 3221 in the above Figure 4b , which will not be repeated.

[0299] Step 507. The processor 101 determines the reference hard disk slot relative position number corresponding to the target drive hard disk number from the first information.

[0300] Here, the hard disk slot relative position number corresponding to the target drive hard disk number in the first information can be taken as the reference hard disk slot relative position number.

[0301] Step 508. The processor 101 obtains the reference hard disk serial number SN corresponding to the reference hard disk slot relative position number based on the number of the target storage controller and the reference hard disk slot relative position number.

[0302] For details, see the description of the above Figure 5a .

[0303] Step 509. The processor 101 determines the target hard disk serial number SN corresponding to the target logical disk symbol.

[0304] For details, see the description of the above Figure 5a .

[0305] Step 510. The processor 101 determines the reference hard disk slot absolute position number as the target hard disk slot absolute position number when the target hard disk serial number SN and the reference hard disk serial number SN are the same.

[0306] Step 511. The processor 101 determines the target hard disk slot absolute position number corresponding to the target logical disk symbol based on the hardware configuration relationship information, and the address of the target storage controller and the hard disk slot absolute position number under the target hard disk slot relative position number.

[0307] Here, when the target hard disk serial number SN and the reference hard disk serial number SN are the same, it means that the corresponding relationship between the hard disk slot relative position number corresponding to the target drive hard disk number in the first information and the logical disk symbol is more reliable.

[0308] In one possible implementation, one logical disk symbol corresponds to several hard disks, which is suitable for the scenario shown in Figure 2 . For example, the RAID card is a group RAID.

[0309] The target information includes the target logical disk symbol number allocated by the operating system driver based on the management number in the target storage controller for the target logical disk symbol. The coding rule of the device driver of the RAID card is coding rule C1, and the coding rule of the system driver is coding rule C2.

[0310] The RAID card numbers all the hard disks managed by itself after grouping, and obtains the number of the grouped hard disk group (for the sake of description and distinction, it is called controller hard disk group number).

[0311] Encoding rule C1: interact with the RAID card to get the hard disk slot relative position number and the controller hard disk group number under the RAID card; then, number the hard disk indicated by the hard disk slot relative position number, determine the drive hard disk number, number the controller hard disk group according to the logic of itself, determine the hard disk group number (for the sake of description and distinction, it is called the drive hard disk group number), then allocate the logical disk number based on the drive hard disk group number, one logical disk number can correspond to one drive hard disk group number, or correspond to multiple drive hard disk group numbers. Save the correspondence between the hard disk slot relative position number, the drive hard disk number, the drive hard disk group number, and the logical disk number.

[0312] For encoding rule C1, it is assumed that based on the logical disk symbol sda corresponding to the number 0 of the Raid card and the number 0 of the logical disk, the information under the Raid card corresponding to the logical disk symbol sda is queried through the vendor tool storcli64.

[0313] Query instruction: localhost: ~ # / opt / Uniautos / bin / storcli64 / c0 / v0 show all

[0314] Here, c0 indicates the Raid card numbered 0, and v0 indicates the logical disk numbered 0.

[0315] The obtained list is:

[0316] / c0 / v0:

[0317]

[0318] PDs for VD 0:

[0319] ============

[0320]

[0321] Among them, the hard disk slot relative position number is (EID:Slt), the drive hard disk number is (DID), the drive hard disk group number is (DG), and the logical disk number is (VD).

[0322] Encoding rule C2: allocate a system logical disk management number based on the logical disk number, allocate a logical disk symbol based on the system logical disk management number, and then save the correspondence between the logical disk symbol and the logical disk management number.

[0323] For example, it is assumed that the query instruction is: [root@linux~] #ll / sys / block /

[0324] total 0

[0325] The obtained logical disk symbol information is:

[0326] lrwxrwxrwx.1 root root 0 May 11 12:18 sda ->.. / devices / pci0000:3a / 0000:3a:00.0 / 0000:3b:00.0 / host0 / target0:2:0 / 0:2:0:0 / block / sda

[0327] Wherein, the target0:2:0 represents a system logical disk management number, here, the last digit of the system logical disk management number represents a logical disk number; and the logical disk number is 0.

[0328] Figure 4c A flowchart of step 320 in the embodiment shown in Figure 3 is shown.

[0329] As shown in Figure 4c , on the basis of the above Figure 3 embodiment, in the embodiment of the present application, step 320 can specifically include the following steps:

[0330] Step 3231, the processor 101 determines the target logical disk number corresponding to the target logical disk symbol; wherein the target logical disk number is the number of the logical disk allocated by the device driver of the target storage controller based on the grouping of the plurality of hard disks managed by the target storage controller.

[0331] Here, one logical disk can correspond to one hard disk group, or can correspond to multiple hard disk groups, which needs to be determined in combination with the actual situation.

[0332] In actual application, the target logical disk number can be determined based on the logical disk management number (allocated by the system driver) corresponding to the target logical disk symbol. For details, refer to the description above.

[0333] Step 3232, the processor 101 determines the target hard disk slot relative position number based on the target logical disk number.

[0334] In the embodiment of the present application, through the target logical disk number corresponding to the logical disk symbol in the operating system, the hard disk slot relative position number corresponding to the target logical disk number can be deduced.

[0335] Figure 6a A flowchart of step 3222 in the embodiment shown in Figure 4c is shown.

[0336] As shown in Figure 6a , on the basis of the above Figure 4c embodiment, in the embodiment of the present application, step 3232 can specifically include the following steps:

[0337] Step B11, the processor 101 determines the target logical disk identifier corresponding to the target logical disk symbol.

[0338] Step B12, the processor 101 views the second information under the target storage controller based on the target logical disk number and the number of the target storage controller; wherein the second information includes the reference hard disk slot relative position number and the corresponding reference logical disk, reference logical disk identifier.

[0339] Step B13, the processor 101 takes the corresponding reference hard disk slot relative position number as the target hard disk slot relative position number when the target logical disk symbol and the reference logical disk symbol match, and the target logical disk identifier and the reference logical disk identifier match.

[0340] In order to facilitate the understanding of the technical scheme provided by the embodiments of the present application, the following takes the Linux system as an example to illustrate how the target hard disk slot relative position number of the target logical disk symbol. The specific process is as follows. Figure 6a

[0341] 1) The processor 101 queries the information of all logical disk symbols of the server.

[0342] Suppose based on the query instruction: [root@linux ~] # ll / sys / block / , the target logical disk symbol sda, the address of the corresponding Raid card and the logical disk management number target0:2:0 are obtained, and it is analyzed that the target logical disk number corresponding to the target logical disk symbol sda is 0.

[0343] 2) Query the information of the target logical disk symbol sda.

[0344] Query instruction: localhost: ~ # smartctl -i / dev / sda

[0345] The information list obtained is as follows:

[0346] ==START OF INFORMATION SECTION==

[0347] Logical Unit id: 0x68ce5ef243e470002a56d02f15eb9a7d

[0348] Among them, 0x68ce5ef243e470002a56d02f15eb9a7d represents the target logical disk identifier.

[0349] 4) Based on the address of the Raid card corresponding to the logical disk symbol sda, the number 0 of the Raid card corresponding to the logical disk symbol sda is determined.

[0350] ​5) Based on the number 0 of the Raid card corresponding to the logical disk symbol sda and the target logical disk number 0, the information under the Raid card corresponding to the logical disk symbol sda is queried through the vendor tool stor cli64.

[0351] Query instruction: localhost: ~ # / opt / Uniautos / bin / storcli64 / c0 / v0 show all

[0352] Here, c0 represents the Raid card numbered 0, and v0 represents the logical disk numbered 0.

[0353] The obtained list is as follows:

[0354] / c0 / v0:

[0355]

[0356] PDs for VD 0:

[0357] ============

[0358]

[0359] VD0 Properties:

[0360] ==============

[0361] OS Drive Name = / dev / sda

[0362] SCSI NAA Id = 68ce5ef243e470002a56d02f15eb9a7d

[0363] Among them, 68ce5ef243e470002a56d02f15eb9a7d represents the reference logical disk identifier.

[0364] Further, the processor 101 considers that the target logical disk identifier under sda matches the reference logical disk identifier, and the target logical disk number VD = 0 corresponds to DG = 0, and the hard disk slot relative position number EID:Slt corresponding to DG = 0 is 69:0. Therefore, the target hard disk slot relative position number EID:Slt corresponding to sda is 69:0.

[0365] Next, how to determine the target hard disk slot relative position number of the target logical disk symbol is described in combination with the out-of-band management software iBMC and the in-band management software iBMA.

[0366] For out-of-band management software iBMC (BMC chip 106 runs the software): the address of the RAID card can be obtained through the BIOS, and the address corresponds to the hardware configuration relationship information.

[0367] For in-band management software iBMA (processor 101 runs the software): the sda disk under the address of the RAID card can be viewed, the Logical Unit id (corresponding to the target logical disk identifier) under sda can be viewed, further, the relative position number 69:0 of the hard disk slot under c0 and v0, SCSI NAA Id (corresponding to the reference logical disk identifier), OS Drive Name (corresponding to the reference logical disk symbol), Logical Unit id and SCSI NAA Id match, OS Drive Name and logical disk symbol sda match, and the target hard disk slot corresponding to sda has a relative position number of 69:0.

[0368] Figure 6b A flowchart of step 3222 in the embodiment shown in Figure 4c is shown.

[0369] As shown in Figure 6b , on the basis of the above Figure 4c embodiment, in the embodiment of the present application, step 3232 can specifically include the following steps:

[0370] Step B21, the processor 101 views the third information of the target storage controller based on the number of the target storage controller; wherein the third information includes the relative position number of the hard disk slot and the logical disk number corresponding thereto.

[0371] Here, the third information indicates the relevant information under the target storage controller of the device driver storage.

[0372] For example, assuming that the address of the Raid card is 0000:3b:00.0, the number is 0, and the third information of the RAID card indicated by 0000:3b:00.0 is queried through the vendor tool storcli64 (here, only the information related to the embodiment of the present application is shown).

[0373] Query instruction: [root@linux ~] #. / storcli64 / c0 show

[0374] The third information obtained is:

[0375] Product Name=AVAGO MegaRAID SAS 9440-8i

[0376] VD LIST:

[0377]

[0378] PD LIST:

[0379]

[0380] Step B22, the processor 101 takes the hard disk slot relative position number corresponding to the target logical disk number in the third information as the target hard disk slot relative position number.

[0381] Based on the above example, assuming that the target logical disk number VD is 0, the DG corresponding to VD is 0, the hard disk slot relative position number EID:Slt corresponding to DG=0 is 69:0 and 69:1, and the target hard disk slot relative position number is 69:0 and 69:1.

[0382] In addition, in order to ensure the accuracy of the target hard disk slot relative position number, a logical disk identification matching method can be used to ensure the accuracy of the target hard disk slot relative position number, and further ensure the reference value of the corresponding relationship of the hard disk slot absolute position number corresponding to the target logical disk symbol. Based on this, step B22 further includes the following content before step B22:

[0383] The processor 101 performs B12, and when the target logical disk symbol and the reference logical disk symbol match, and the target logical disk identification and the reference logical disk identification match, B13 is performed.

[0384] In addition, if the processor performs B12, and when the target logical disk symbol and the reference logical disk symbol do not match and / or the target logical disk identification and the reference logical disk identification do not match, the processor performs B12 with other logical disk numbers in the third information as the target logical disk number, and when the target logical disk symbol and the reference logical disk symbol match, and the target logical disk identification and the reference logical disk identification match, B13 is performed.

[0385] In order to facilitate the understanding of the technical solutions provided by the embodiments of the present application, the following takes Linux system as an example to illustrate how the target hard disk slot relative position number of the target logical disk symbol. The specific process is as follows. Figure 6b

[0386] 1) The processor 101 queries the information of all logical disk symbols of the server.

[0387] Query instruction: [root@linux ~] # ll / sys / block /

[0388] total 0

[0389] The obtained logical disk symbol information is as follows:

[0390] ​lrwxrwxrwx.1 root root 0 May 11 12:18 sda ->.. / devices / pci0000:3a / 0000:3a:00.0 / 0000:3b:00.0 / host0 / target0:2:0 / 0:2:0:0 / block / sda

[0391] The code shows that the logical disk symbol under the storage controller represented by 0000:3b:00.0 has one sda (target logical disk symbol). The system logical disk management number corresponding to sda is target0:2:0. The last character in target0:2:0 represents the ID, so the target logical disk number corresponding to sda is 0.

[0392] 2) Query the number of the Raid card indicated by 0000:3b:00.0, which is 0.

[0393] 3) Based on the number 0 of the Raid card corresponding to 0000:3b:00.0, the third information of the RAID card indicated by 0000:3b:00.0 is queried through the vendor tool storcli64 (here, only the information related to the embodiments of the present application is shown).

[0394] Query instruction: [root@linux ~] #. / storcli64 / c0 show

[0395] The third information obtained is:

[0396] Product Name = AVAGO MegaRAID SAS 9440-8i

[0397] VD LIST:

[0398]

[0399] PD LIST:

[0400]

[0401] The processor 101 takes the target logical disk number VD = 0 in the third information, the drive hard disk group number DG = 0 corresponding to VD = 0, and the EID:SlotID (EID:Slt) = 69:0, 69:1 corresponding to DG = 0, so the target hard disk slot relative position number EID:Slt corresponding to the target logical disk symbol sda has two, which are 69:0 and 69:1, respectively.

[0402] Next, how to determine the target hard disk slot relative position number of the target logical disk symbol is explained in combination with the out-of-band management software iBMC and the in-band management software iBMA.

[0403] For the out-of-band management software iBMC (the BMC chip 106 runs the software): the RAID card address 0000:3b:00.0 can be obtained through the BIOS, and the address corresponds to a hard disk slot relationship table.

[0404] For the in-band management software iBMA (the processor 101 runs the software): the logical disk symbol information sda under 0000:3b:00.0 can be obtained, and through the target number (system logical disk management number) under the RAID card, the logical disk number VD=0 of sda can be obtained, and further the logical disk number VD=0 corresponding to the drive hard disk group number DG=0 can be obtained, so that the corresponding EID:SlotID (EID:Slt):69:0, 69:1 is obtained. The hard disk group connected by the two hard disk slots constitutes a logical disk symbol sda.

[0405] Thus, the corresponding relationship between the logical disk symbol and the absolute position number of the hard disk slot is obtained in combination with the relative position number of the hard disk slot corresponding to the logical disk symbol under the RAID card of the iBMA and the hardware configuration relationship information under the RAID card of the iBMC.

[0406] Figure 6c The technical solution provided by the embodiment of the application associates the logical disk symbol and the hard disk slot on the server. The solution is applied to a storage controller which is a RAID card, and the mode of the RAID card is a group RAID mode. The specific content is as follows.

[0407] Step 601. The processor 101 obtains the logical disk symbol information under the system drive.

[0408] For details, refer to the description of step 501 in the foregoing, which will not be repeated. For example, the operating system is a Linux system, and the logical disk symbol information is the information obtained by querying the instruction: [root@linux ~] # ll / sys / block / . Figure 6b For details, refer to the description of step 501 in the foregoing, which will not be repeated. For example, the operating system is a Linux system, and the logical disk symbol information is the information obtained by querying the instruction: [root@linux ~] # ll / sys / block / .

[0409] Step 602. The processor 101 obtains the address of the storage controller in the logical disk symbol information and the logical disk symbol corresponding to the address.

[0410] For details, refer to the description of step 310 in the foregoing, which will not be repeated.

[0411] Step 603. The processor 101 determines whether the storage controller is a RAID card in a group Raid mode. If yes, step 604 is performed.

[0412] Specifically, the address of the target storage can be used to query the related information of the target storage, so as to know whether the storage controller is a RAID card in a group Raid mode.

[0413] Step 604: The processor 101 determines the number of the storage controller based on the address of the target storage controller.

[0414] See above for details Figure 4b The description of step 3221 is omitted here.

[0415] Step 605: The processor 101 determines the system logical disk management number corresponding to the target logical disk letter in the logical disk letter information; wherein the system logical disk management number is a number assigned by the system driver based on the logical disk number assigned by the device driver of the target storage controller.

[0416] See above for details Figure 4c The description is not repeated here.

[0417] Step 606: The processor 101 determines the target logical disk number of the target logical disk letter relative to the target storage controller based on the system logical disk management number corresponding to the target logical disk letter.

[0418] See above for details Figure 4c The description is not repeated here.

[0419] Step 607: The processor 101 determines the second information corresponding to the target logical disk number based on the target logical disk number and the number of the target storage controller.

[0420] See above for details Figure 6a The description is not repeated here.

[0421] Step 608 : The processor 101 determines whether the hard disk slot relative position number included in the second information corresponds to a logical drive letter and a logical drive identifier. If so, execute step 609 ; otherwise, execute step 612 .

[0422] Step 609: The processor 101 determines the reference hard disk slot relative position number and its corresponding reference logical drive letter and reference logical drive identifier from the second information.

[0423] Step 610: The processor 101 determines the target logical disk identifier corresponding to the target logical disk letter.

[0424] See above for details Figure 6a The description of the example is omitted here.

[0425] Step 611: When the target logical drive letter identifier matches the reference logical drive letter identifier and the target logical drive letter matches the target logical drive letter, the processor 101 determines the reference hard disk slot relative position number corresponding to the reference logical drive letter as the target hard disk slot relative position number.

[0426] Step 612. The processor 101 determines third information corresponding to the target logical disk number based on the number of the target storage controller.

[0427] For details, refer to the description of step B21 in the above embodiment. Figure 6b

[0428] Step 613. The processor 101 takes the relative position number of the hard disk slot corresponding to the target logical disk number in the third information as the relative position number of the target hard disk slot.

[0429] Step 614. The processor 101 determines the absolute position number of the hard disk slot under the target hard disk slot relative position number based on the hardware configuration relationship information as the absolute position number of the target hard disk slot corresponding to the target logical disk symbol.

[0430] Next, another method for associating a logical disk symbol and a hard disk slot provided by the embodiment of the application is introduced. The method can be applied to any device with computing and processing capabilities to execute, such as, Figure 1 The server 100 shown is taken as an example to illustrate the execution subject.

[0431] Figure 7 The flowchart of another method for associating a logical disk symbol and a hard disk slot provided by the embodiment of the application is shown. The method includes the following steps:

[0432] Step 710. The processor 101 determines the target logical disk symbol corresponding to the address of the target storage controller.

[0433] For details, refer to the description above.

[0434] Step 720. The processor 101 determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller.

[0435] For details, refer to the description above.

[0436] Step 730. The processor 101 sends the address of the target storage controller and the target hard disk slot relative position number to the BMC chip 106.

[0437] Step 740. The BMC chip 106 determines the target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on the hardware configuration relationship information and the address of the target storage controller; wherein the hardware configuration relationship information is used to represent the address of the storage controller, the relative position number of the hard disk slot used by the storage controller to manage the hard disk, and the absolute position number of the hard disk slot corresponding to the relative position number of the hard disk slot.

[0438] ​For details, refer to the above description, which will not be repeated here.

[0439] It can be understood that the processor in the embodiments of the present application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor. The out-of-band controller has an independent processor which can be a processor other than the central processing unit, and the out-of-band controller can execute instructions independently.

[0440] The method steps in the embodiments of the present application can be realized in the form of hardware or by a processor or management controller executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically EPROM (EEPROM), a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC.

[0441] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed by a processor or an out-of-controller, all or part of the computer program instructions generate the processes or functions described in the embodiments of the present application. The computer instructions can be stored in a computer readable storage medium or transmitted by the computer readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (such as floppy disk, hard disk, magnetic tape), optical media (such as DVD), or semiconductor media (such as solid state disk (SSD)) and the like.

[0442] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.

[0443] The basic principles of the present application are described above in combination with specific embodiments, but it should be pointed out that the advantages, advantages, effects and the like mentioned in the present application are only examples and not limitations, and these advantages, advantages, effects and the like cannot be considered as the must-have of each embodiment of the present disclosure. In addition, the specific details of the above disclosure are only for the purpose of example and for the purpose of understanding, and the above details do not limit the present disclosure to the above specific details.

[0444] It should also be noted that in the devices and methods of the present application, each component or step can be decomposed and / or recombined. These decompositions and / or recombination should be considered as equivalent solutions of the present disclosure.

[0445] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although the above has discussed a plurality of example aspects and embodiments, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

[0446] It can be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of differentiation, and are not used to limit the scope of the embodiments of the present application.

Claims

1. A method of associating a logical disk identifier with a hard disk slot, the method comprising: receiving a request to create a logical disk identifier; creating a logical disk identifier; and associating the logical disk identifier with a hard disk slot. The method comprises: The processor acquires the hardware configuration relationship information sent by the out-of-band controller; wherein the hardware configuration relationship information is used to represent the address of the storage controller, the relative position number of the hard disk slot used by the storage controller to manage the hard disk, and the absolute position number of the hard disk slot corresponding to the relative position number of the hard disk slot; The processor determines the target logical disk symbol corresponding to the address of the target storage controller; The processor determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller; The processor determines the target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on the hardware configuration relationship information and the address of the target storage controller; The target storage controller is a RAID controller; The target logical disk symbol corresponds to one hard disk; The processor determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller, comprising: The processor checks the first information of the target storage controller based on the number of the target storage controller; wherein the first information comprises the relative position number of the hard disk slot; The processor determines the target hard disk slot relative position number based on the first information; The processor determines the target hard disk slot relative position number based on the first information, comprising: The processor determines the target hard disk serial number corresponding to the target logical disk symbol; The processor selects the reference hard disk slot relative position number from the first information; The processor determines the reference hard disk serial number based on the number of the target storage controller and the reference hard disk slot relative position number; The processor takes the reference hard disk slot relative position number as the target hard disk slot relative position number when the target hard disk serial number matches the reference hard disk serial number; Or, The first information comprises the drive hard disk number corresponding to the relative position number of the hard disk slot; wherein the drive hard disk number is the number allocated by the device driver of the target storage controller to the hard disk under the relative position number of the hard disk slot in the target storage controller; the processor determines the target hard disk slot relative position number based on the first information, comprising: The processor determines the target drive hard disk number corresponding to the target logical disk symbol; The processor takes the hard disk slot relative position number corresponding to the target drive hard disk number in the first information as the target hard disk slot relative position number.

2. The method of claim 1, wherein, The target storage controller is a SATA controller or a SAS controller, and the processor determines the target hard disk slot relative position number of the target logical disk symbol in the target storage controller, comprising: The processor determines the target drive hard disk slot number corresponding to the target logical disk symbol; wherein the target drive hard disk slot number is the number allocated by the device driver of the target storage controller based on the relative position number of the hard disk slot in the target storage controller; The processor determines the target hard disk slot relative position number corresponding to the target drive hard disk slot number based on the target drive hard disk slot number.

3. The method of claim 1, wherein, The target logical disk symbol corresponds to at least one hard disk; The processor determines a target hard disk slot relative position number of the target logical disk symbol in the target storage controller, including: The processor determines a target logical disk number corresponding to the target logical disk symbol; wherein the target logical disk number is a logical disk number allocated by a device driver of the target storage device based on grouping of hard disks managed by the target storage controller; The processor determines a target hard disk slot relative position number based on the target logical disk number.

4. The method of claim 3, wherein, The processor determines a target hard disk slot relative position number based on the target logical disk number, including: The processor determines a target logical disk identification corresponding to the target logical disk symbol; The processor views second information under the target storage controller based on the target logical disk number and the number of the target storage controller; wherein the second information includes a reference hard disk slot relative position number and a reference logical disk corresponding thereto, a reference logical disk identification; The processor takes the reference hard disk slot relative position number as the target hard disk slot relative position number when the target logical disk symbol and the reference logical disk symbol match, and the target logical disk identification and the reference logical disk identification match; Or, The processor determines a target hard disk slot relative position number based on the target logical disk number, including: The processor views third information of the target storage controller based on the number of the target storage controller; wherein the third information includes a hard disk slot relative position number and a logical disk number corresponding thereto; The processor takes the hard disk slot relative position number corresponding to the target logical disk number in the third information as a target hard disk slot relative position number.

5. A method of associating a logical disk identifier with a hard disk slot, the method comprising: receiving a request to create a logical disk identifier; creating a logical disk identifier; and associating the logical disk identifier with a hard disk slot. The method includes: The out-of-band controller obtains a target hard disk slot relative position number of a target logical disk symbol corresponding to an address of a target storage controller in the target storage controller sent by the processor; The out-of-band controller determines a target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on hardware configuration relationship information and the address of the target storage controller; wherein the hardware configuration relationship information is used to represent an address of a storage controller, a hard disk slot relative position number used by the storage controller to manage hard disks, and a hard disk slot absolute position number corresponding to the hard disk slot relative position number; The target storage controller is a RAID controller; The target logical disk symbol corresponds to one hard disk; The processor determines a target hard disk slot relative position number of the target logical disk symbol in the target storage controller, including: The processor views first information of the target storage controller based on the number of the target storage controller; wherein the first information includes a hard disk slot relative position number; The processor determines a target hard disk slot relative position number based on the first information; The processor determines a target hard disk slot relative position number based on the first information, including: The processor determines a target hard disk serial number corresponding to the target logical disk symbol; The processor selects a reference hard disk slot relative position number from the first information; The processor determines a reference hard disk serial number based on the number of the target storage controller and the reference hard disk slot relative position number; The processor, when the target hard disk serial number and the reference hard disk serial number match, takes the reference hard disk slot relative position number as the target hard disk slot relative position number; Or, The first information includes a drive hard disk number corresponding to a hard disk slot relative position number; wherein the drive hard disk number is a number assigned by a device driver of the target storage to a hard disk at a hard disk slot relative position number in the target storage controller; the processor determines a target hard disk slot relative position number based on the first information, including: The processor determines a target drive hard disk number corresponding to the target logical disk symbol; The processor takes a hard disk slot relative position number corresponding to the target drive hard disk number in the first information as a target hard disk slot relative position number.

6. A method of associating a logical disk identifier with a hard disk slot, the method comprising: receiving a request to create a logical disk identifier; creating a logical disk identifier; and associating the logical disk identifier with a hard disk slot. Applied to a server, the server includes a processor and an out-of-band controller, and the method includes: The processor determines a target logical disk symbol corresponding to a target storage controller; The processor determines a target hard disk slot relative position number of the target logical disk symbol in the target storage controller; The out-of-band controller determines a target hard disk slot absolute position number corresponding to the target hard disk slot relative position number based on hardware configuration relationship information and an address of the target storage controller; wherein the hardware configuration relationship information is used to represent an address of a storage controller, a hard disk slot relative position number used by the storage controller to manage a hard disk, and a hard disk slot absolute position number corresponding to the hard disk slot relative position number; The target storage controller is a RAID controller; The target logical disk symbol corresponds to a hard disk; The processor determines a target hard disk slot relative position number of the target logical disk symbol in the target storage controller, including: The processor views first information of the target storage controller based on a number of the target storage controller; wherein the first information includes a hard disk slot relative position number; The processor determines a target hard disk slot relative position number based on the first information; The processor determines a target hard disk slot relative position number based on the first information, including: The processor determines a target hard disk serial number corresponding to the target logical disk symbol; The processor selects a reference hard disk slot relative position number from the first information; The processor determines a reference hard disk serial number based on the number of the target storage controller and the reference hard disk slot relative position number; The processor, when the target hard disk serial number and the reference hard disk serial number match, takes the reference hard disk slot relative position number as the target hard disk slot relative position number; Or, The first information includes a drive hard disk number corresponding to a hard disk slot relative position number; wherein the drive hard disk number is a number assigned by a device driver of the target storage to a hard disk at a hard disk slot relative position number in the target storage controller; the processor determines a target hard disk slot relative position number based on the first information, including: The processor determines a target drive hard disk number corresponding to the target logical disk symbol; The processor takes a hard disk slot relative position number corresponding to the target drive hard disk number in the first information as a target hard disk slot relative position number. The first information includes a drive hard disk number corresponding to a hard disk slot relative position number; wherein the drive hard disk number is a number assigned to a hard disk under a hard disk slot relative position number in the target storage controller by a device driver of the target storage; the processor determines a target hard disk slot relative position number based on the first information, including: The processor determines a target drive hard disk number corresponding to the target logical disk symbol; The processor determines a target hard disk slot relative position number corresponding to the target drive hard disk number in the first information.

7. A server, characterized by A device includes a processor and an out-of-band controller, the processor is configured to execute the method of any one of claims 1-4, or the out-of-band controller is configured to execute the method of claim 5, or the processor and the out-of-band controller are configured to execute the method of claim 6.

Citation Information

Patent Citations

  • A method for recording a correspondence between a physical slot position of a backplane and a system letter

    CN109542708A

  • Disk health inspection method and device, electronic equipment, medium and product

    CN114721850A