Disk positioning light method and apparatus, storage medium, and electronic device

By obtaining the location and quantity information of the hard drive backplane, the installation position of the target hard drive is determined, which solves the problem of incorrect LED positioning caused by BMC reallocation, and ensures the accuracy of hard drive position and data security.

CN119785865BActive Publication Date: 2026-01-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411845033.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2026-01-27
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

The failure or incorrect positioning of LEDs due to the BMC's reallocation of hard drive slots affects data services and data security.

Method used

By obtaining the location status of the hard drive backplane, the reference hard drive backplane for the working status is determined, and its hard drive quantity information is obtained. Based on the backplane quantity and hard drive quantity information, the target positioning description information of the target hard drive is determined, and the LED operation is performed.

Benefits of technology

This technology enables accurate hard drive location during BMC reallocation, preventing LED activation failures and improving the reliability and security of data services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119785865B_ABST
    Figure CN119785865B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a disk positioning light method and device, a storage medium and an electronic device. The method comprises: obtaining the respective in-place state of each of a plurality of hard disk backplanes; determining a reference hard disk backplane in a working state from the plurality of hard disk backplanes according to the in-place state, and obtaining hard disk quantity information of the reference hard disk backplane; determining target positioning description information of a target hard disk according to backplane quantity information and hard disk quantity information of the reference hard disk backplane, wherein the backplane quantity information is used to indicate the number of reference hard disk backplanes in the working state, and the target positioning description information is used to indicate the installation position of the target hard disk; and performing a light operation on a target indicator lamp associated with the target hard disk according to the target positioning description information. The technical problem of failure or error of the light positioning hard disk in the related art is solved, because the original binding light parameter of the management software and the corresponding relationship of the hard disk slot are not changed due to the BMC re-allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage components and chip technology, and more specifically, to a disk positioning and lighting method and apparatus, a storage medium, and an electronic device. Background Technology

[0002] Existing technologies detect hard drive failures through operating systems or storage pools, triggering data read / write error alarms or anomalies. The hard drive's location is then determined by combining this with the server's hardware topology and communicated via a remote console or management software. One approach involves in-band LEDs via a SAS link, but this fails when the hard drive malfunctions and the LED link is disconnected, preventing complete disk location. Another technology uses the server's BMC to manage hard drive backplane LEDs out of band, independent of the SAS link between the I / O controller and the hard drive; this is currently the mainstream method for disk location via LEDs.

[0003] However, with technological advancements and the proliferation of device models, new platforms, in order to adapt to more models, have changed the BMC's out-of-band management logic for hard drive LEDs from a fixed relationship with hard drive slots to an automatic allocation of the corresponding slots. Under this allocation principle, if an anomaly occurs in the out-of-band management backplane channel, the BMC will reassign the "Slot number." If the LED position is incorrect, replacing the hard drive could lead to data corruption, severely impacting data services and data security. In other words, the relevant technology suffers from a problem where the BMC's reassignment doesn't maintain the original mapping between the LED parameters and hard drive slots, leading to LED failure in hard drive positioning or incorrect LED placement.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides a disk positioning lighting method and apparatus, storage medium and electronic device to at least solve the technical problem in the related art that the original binding lighting parameters of the management software and the hard disk slot remain unchanged due to the redistribution of BMC, resulting in the failure of lighting to position the hard disk or the incorrect lighting position.

[0006] According to one embodiment of this application, a disk positioning indicator light method is provided, comprising: acquiring the respective on-premises status of a plurality of hard disk backplanes, wherein the on-premises status is used to indicate the current working state of the hard disk backplane; determining a reference hard disk backplane in a working state from the plurality of hard disk backplanes based on the on-premises status, and acquiring hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane; determining target positioning description information of a target hard disk based on the backplane quantity information and the hard disk quantity information of the reference hard disk backplane, wherein the backplane quantity information is used to indicate the number of reference hard disk backplanes in a working state, and the target positioning description information is used to indicate the installation position of the target hard disk; and performing an indicator light lighting operation on a target indicator light associated with the target hard disk based on the target positioning description information.

[0007] According to another aspect of the embodiments of this application, a disk positioning indicator light device is also provided, comprising: an acquisition unit for acquiring the respective on-site status of a plurality of hard disk backplanes, wherein the on-site status is used to indicate the current working status of the hard disk backplane; a first determination unit for determining a reference hard disk backplane in a working state from the plurality of hard disk backplanes based on the on-site status, and acquiring hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane; a second determination unit for determining target positioning description information of a target hard disk based on the backplane quantity information and the hard disk quantity information of the reference hard disk backplane, wherein the backplane quantity information is used to indicate the number of reference hard disk backplanes in a working state, and the target positioning description information is used to indicate the installation position of the target hard disk; and an execution unit for performing a lighting operation on a target indicator light associated with the target hard disk based on the target positioning description information.

[0008] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, used to acquire the number of hard drives of the reference hard drive backplane on the server according to the out-of-band management information query interface when the server has an out-of-band management information query interface; and to acquire the machine model information matching each reference hard drive backplane when the server does not have an out-of-band management information query interface, wherein the machine model information records the number of hard drives that can be installed on the hard drive backplane; and to acquire the number of hard drives matching the reference hard drive backplane according to the machine model information.

[0009] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, configured to acquire a first field in configuration information matching a reference hard disk backplane, wherein the configuration information is used to indicate the in-situ status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane; if the first field is a first field value, determine that the hard disk backplane is in a working state; if the first field is a second field value, determine that the hard disk backplane is in a fault state.

[0010] Optionally, the second acquisition unit mentioned above includes: a third determination unit, used to acquire the second field in the configuration information when the first field in the configuration information is the value of the first field; and to determine the number of hard drives that can be installed on the reference hard disk backplane based on the second field.

[0011] Optionally, the second determining unit includes: a configuration module, configured to configure a hard disk backplane number for the reference hard disk backplane according to the physical mounting interface location and the hard disk backplane type of the reference hard disk backplane, wherein the hard disk backplane type includes front hard disk backplane, rear hard disk backplane, and internal backplane hard disk; and to configure a hard disk number for the hard disk according to the physical mounting interface location and the hard disk type of the hard disk, wherein the hard disk type includes front hard disk, rear hard disk, and internal hard disk.

[0012] Optionally, the above configuration module is also used to: determine the target hard drive backplane number of the target hard drive backplane based on the target physical mounting interface location and the hard drive backplane type of the target hard drive backplane, wherein a target hard drive is installed on the target hard drive backplane; determine the target hard drive number of the target hard drive based on the target physical mounting interface location of the target hard drive; and determine the target positioning description information of the target hard drive based on the target hard drive backplane number matching the target hard drive backplane and the target hard drive number matching the target hard drive.

[0013] Optionally, the aforementioned execution unit includes a third acquisition module, configured to, when acquiring backplane status update information of the hard disk backplane within the target period, determine the updated hard disk backplane in a working state from multiple hard disk backplanes based on the backplane status update information, and acquire hard disk quantity update information matching the updated hard disk backplane, wherein the backplane status update information is used to indicate the current in-situ status of the hard disk backplane, and the hard disk quantity update information is used to indicate the number of hard disk objects currently installable on the updated hard disk backplane; determine the updated target hard disk backplane number matching the target hard disk on the target hard disk backplane based on the backplane status update information of the updated hard disk backplane; determine the updated target hard disk number matching the target hard disk on the target hard disk backplane based on the hard disk quantity update information of the updated hard disk backplane; determine the updated positioning description information of the target hard disk on the target hard disk backplane based on the updated target hard disk backplane number of the target hard disk backplane and the updated target hard disk number of the target hard disk; and perform a lighting operation on the target indicator light matching the slot where the target hard disk is located based on the updated positioning description information of the target hard disk.

[0014] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described disk positioning and lighting method when it is run.

[0015] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the disk positioning and lighting method described above.

[0016] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the disk positioning and lighting method described above through the computer program.

[0017] This application first obtains the respective presence status of multiple hard disk backplanes, which indicates the current working status of the hard disk backplanes. Then, based on the presence status, it identifies a reference hard disk backplane in a working state from among the multiple backplanes and obtains the hard disk quantity information of the reference hard disk backplane, which indicates the number of hard disk objects that can be installed on the reference hard disk backplane. Next, based on the backplane quantity information and the hard disk quantity information of the reference hard disk backplane, it determines the target positioning description information of the target hard disk. The backplane quantity information indicates the number of reference hard disk backplanes in a working state, and the target positioning description information indicates the installation position of the target hard disk. This enables the lighting operation of the target indicator light associated with the target hard disk based on the target positioning description information, thus solving the technical problem in related technologies where the original binding parameters of the management software to the hard disk slots remain unchanged due to BMC reassignment, leading to hard disk positioning failure or incorrect lighting position. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 This is a hardware structure block diagram of a server device for a disk positioning and lighting method according to an embodiment of this application;

[0020] Figure 2 This is a flowchart of a disk positioning and lighting method according to an embodiment of this application;

[0021] Figure 3 This is a schematic diagram of a disk positioning and lighting method according to an embodiment of this application;

[0022] Figure 4 This is a schematic diagram of another disk positioning and lighting method according to an embodiment of this application;

[0023] Figure 5 This is a schematic diagram of another disk positioning and lighting method according to an embodiment of this application;

[0024] Figure 6 This is a flowchart of another disk positioning and lighting method according to an embodiment of this application;

[0025] Figure 7 This is a schematic diagram of a disk positioning and lighting device according to an embodiment of this application;

[0026] Figure 8 This is a schematic diagram of the structure of a disk positioning lamp electronic device according to an embodiment of this application. Detailed Implementation

[0027] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0029] The methods and embodiments provided in this application can be executed on a server device or a similar computing device. Taking running on a server device as an example, Figure 1 This is a hardware structure block diagram of a server device for a disk positioning and lighting method according to an embodiment of this application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The server device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the server equipment described above. For example, the server equipment may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0030] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the disk positioning lamp-lighting method in this embodiment. The processor 102 executes various functional applications and lamp-lighting operations by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to server devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0031] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the server device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0032] As an optional implementation method, such as Figure 2 As shown, the above disk positioning and lighting method includes:

[0033] S202, obtain the respective on-state of multiple hard disk backplanes, wherein the on-state is used to indicate the current working state of the hard disk backplane.

[0034] S204, determine the reference hard disk backplane in operation from multiple hard disk backplanes based on the in-situ status, and obtain the hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane.

[0035] S206, Determine the target positioning description information of the target hard drive based on the backplane quantity information and hard drive quantity information of the reference hard drive backplane, wherein the backplane quantity information is used to indicate the number of reference hard drive backplanes in the working state, and the target positioning description information is used to indicate the installation position of the target hard drive.

[0036] S208, based on the target location description information, perform a lighting operation on the target indicator light associated with the target hard drive.

[0037] In step S202 above, the working state can be either in-place or faulty (out-of-place). In some optional implementations, for example, the in-place status of multiple hard disk backplanes can be obtained through the out-of-band management hard disk backplane information query interface. For example, to query the out-of-band information of the rear backplane 4, the execution command ipmitool raw 0x3c 0x1c 0x03 0x01 0x04 is obtained according to the IPMI query hard disk backplane information instruction format. If the first byte is 0x01, it indicates that the rear backplane 4 is in place, that is, in the working state.

[0038] Then step S204 can be executed, which determines the reference hard disk backplane in the working state from multiple hard disk backplanes based on the in-situ status, and obtains the hard disk quantity information of the reference hard disk backplane. It can be understood that the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane.

[0039] In some alternative implementations, for example, the number of hard drives on the hard drive backplane can be obtained through the out-of-band management hard drive backplane information query interface. For example, to query the out-of-band information of the rear backplane 4, the execution command ipmitool raw 0x3c 0x1c 0x03 0x01 0x04 is obtained according to the IPMI query hard drive backplane information instruction format. If the 3rd byte is 0x0c, it indicates that the maximum number of hard drives supported is 12.

[0040] In step S206 above, the target positioning description information of the target hard disk is determined based on the backplane quantity information and hard disk quantity information of the reference hard disk backplane. The backplane quantity information is used to indicate the number of reference hard disk backplanes in the working state, and the target positioning description information is used to indicate the installation position of the target hard disk.

[0041] Optionally, the target location description information mentioned above may include, but is not limited to, a sequence number describing the physical location of the target hard disk, such as a slot index or the slot number or label of the hard disk's location.

[0042] The above describes a specific implementation method for determining the target location description information of the target hard drive based on the backplane quantity information and hard drive quantity information of the reference hard drive backplane: for example, the target hard drive is the hard drive on the 6th drive on the first front hard drive backplane, and the numbering information is as follows: Figure 3As shown, the backplane number of the first front hard drive backplane is "0", and the hard drive number on the 6th drive on the first front hard drive backplane is "5". For example, the target location description information can be determined as "05", or the slot index can be determined as "0x05". It should be noted that each hard drive slot usually has a unique index number, such as 0, 1, 2, etc. This index number is used as a unique identifier in the system so that the software can accurately know which slot's indicator light to control. In the hardware design, the indicator light of each hard drive slot is connected to a specific I / O pin of a microcontroller or control circuit. The slot index is used to find this mapping relationship, thereby controlling the corresponding hardware pin to realize the lighting operation of the target hard drive. The specific content of the target location description information is not specifically limited here.

[0043] In step S208 above, the target indicator light associated with the target hard drive is turned on according to the target location description information. It can be understood that after obtaining the physical location and corresponding logical number of the target hard drive, the signal is transmitted through SGPIO (if using SAS / SATA hard drive) or other protocols (if using NVMe hard drive). After receiving the signal, the CPLD or other control chip on the backplane of the hard drive will control the LED light of the corresponding hard drive according to the signal content. Optionally, the lighting mode can also be selected as needed to perform the lighting operation.

[0044] It is understood that a hard disk is a device used for storing data, consisting of one or more rotating disks (platters) coated with magnetic material for storing data. This application first obtains the respective in-situ status of multiple hard disk backplanes, indicating their current working state. Further, based on the in-situ status, it identifies a reference hard disk backplane in a working state from among the multiple backplanes and obtains the number of hard disks on the reference backplane, indicating the number of hard disk objects that can be installed on it. Then, based on the backplane number information and the number of hard disks on the reference backplane, it determines the target positioning description information of the target hard disk. The backplane number information indicates the number of reference hard disk backplanes in a working state, and the target positioning description information indicates the installation position of the target hard disk. This achieves the implementation of lighting operations on the target indicator light associated with the target hard disk based on the target positioning description information, thus solving the technical problem in related technologies where the BMC is reassigned while the original binding parameters of the management software remain unchanged with respect to the hard disk slots, leading to failure in hard disk positioning or incorrect lighting positions.

[0045] In one optional implementation, obtaining the number of hard drives in the reference hard drive backplane includes:

[0046] S1, if the server has an out-of-band management information query interface, obtain the number of hard drives on the reference hard drive backplane on the server according to the out-of-band management information query interface;

[0047] S2, in the absence of an out-of-band management information query interface on the server, obtain the machine model information that matches each reference hard disk backplane, wherein the machine model information records the number of hard disks that can be installed on the hard disk backplane; obtain the number of hard disks that match the reference hard disk backplane based on the machine model information.

[0048] Optionally, in step S1 above, if the server has an out-of-band management information query interface, the number of hard drives on the reference hard drive backplane on the server can be obtained according to the out-of-band management information query interface.

[0049] In this embodiment, the out-of-band management hard disk backplane typically provides an information query interface that conforms to the IPMI specification. For example, if the server where the target hard disk is located is an NF5280M6 model server, the interface command for querying hard disk backplane information can be found according to the BMC "IPMI Command Usage Manual" of the NF5280M6 model server. For example, executing the command ipmitool raw 0x3c 0x1c0x03 0x01 0x04 indicates querying the out-of-band information of the backplane 4, specifically used to obtain the on-premises status information of the backplane 4 and the maximum number of hard disks that the hard disk backplane can support.

[0050] It should be noted that the BMC (Board Management Controller) is a dedicated microcontroller embedded on the motherboard of a computer (usually a server) and is responsible for the interface between the system management software and the platform hardware.

[0051] In some optional implementations, when the server lacks an out-of-band management information query interface, the machine model information matching each reference hard disk backplane is obtained. This machine model information indicates the number of hard disks that can be installed on the hard disk backplane. Based on the machine model information, the number of hard disks matching the reference hard disk backplane is then obtained. In other words, for models that do not provide an out-of-band management hard disk backplane information query interface and use out-of-band channel disk positioning, the hard disk backplane model can be queried to determine the maximum number of hard disks supported by the hard disk backplane.

[0052] Through the above-described embodiments of this application, the number of hard drives on the reference hard drive backplane on the server can be obtained in different ways under different circumstances, such as when the server has an out-of-band management information query interface or when the server does not have an out-of-band management information query interface. This allows for the configuration of accurate hard drive serial numbers on the hard drive backplane, thereby improving the accuracy of matching the hard drive ID number identified by the server with the actual location and improving the accuracy of performing the lighting operation on the target hard drive in a server with a large number of hard drives.

[0053] In one alternative implementation, before determining a reference hard disk backplane in an operational state from a plurality of hard disk backplanes based on its presence status, the method includes:

[0054] S1, obtain the first field from the configuration information that matches the reference hard disk backplane, wherein the configuration information is used to indicate the in-situ status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane.

[0055] S2, if the first field is the value of the first field, determine that the hard disk backplane is in working state;

[0056] S3, if the first field is the value of the second field, determine that the hard disk backplane is in a faulty state.

[0057] Optionally, in steps S1-S3 above, the first field of the configuration information matching the reference hard disk backplane is obtained, wherein the configuration information is used to indicate the presence status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane; if the first field is a first field value, it is determined that the hard disk backplane is in a working state; if the first field is a second field value, it is determined that the hard disk backplane is in a fault state.

[0058] In some implementations, the out-of-band information of the rear backplane 4 is queried according to the command to query the hard disk backplane information. The command ipmitool raw 0x3c 0x1c 0x03 0x01 0x04 is executed, and the returned information is the configuration information of the queried rear backplane 4, such as "01 30 0C 0f 0f.......". If the first field in the configuration information is the first field value "1" (i.e. the first byte is 0x01), it means that the rear backplane 4 is in place. If the first field in the configuration information is the second field value "0" (i.e. the first byte is 0x00), it means that the rear backplane 4 is not in place (or in a fault state).

[0059] Through the above-described embodiments of this application, based on the first field in the configuration information matching the reference hard disk backplane, the configuration information is used to indicate the presence status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane; when the first field is a first field value, it is determined that the hard disk backplane is in a working state; when the first field is a second field value, it is determined that the hard disk backplane is in a fault state. The presence status of the hard disk backplane is determined, and the hard disk backplanes in the working state are numbered. If the hard disk is not in place, that is, these hard disks will be ignored during the light-up operation, which can avoid mistakenly lighting up the indicator lights of the positions of hard disks that have been removed or not installed, and reduce the misoperation of maintenance personnel when locating faults.

[0060] In one optional implementation, obtaining the number of hard drives in the reference hard drive backplane includes:

[0061] S1, if the first field in the configuration information is the value of the first field, obtain the second field in the configuration information;

[0062] S2, determine the number of hard drives that can be installed on the reference hard drive backplane based on the second field.

[0063] Optionally, in steps S1-S2 above, if the first field in the configuration information is the first field value, the second field in the configuration information is obtained; and the number of hard drives that can be installed on the reference hard disk backplane is determined based on the second field.

[0064] In some implementations, the out-of-band information of the rear backplane 4 is queried according to the command to query the hard disk backplane information. The command ipmitool raw 0x3c 0x1c 0x03 0x01 0x04 is executed, and the returned information is the configuration information of the queried rear backplane 4, such as "01 30 0c 0f 0f.......". If the first field is the value "1" (i.e. the first byte is 0x01), that is, the rear backplane 4 is in place, the second field in the above configuration information is further obtained. Taking the second field as the third byte in the above configuration information as an example, the third byte 0x0c indicates that the rear backplane 4 supports a maximum number of hard disks of 12.

[0065] Through the above-described embodiments of this application, when the first field in the configuration information is the first field value, the second field in the configuration information is obtained; the number of hard drives that can be installed on the reference hard disk backplane is determined according to the second field, and then the corresponding hard disk code is configured for each hard drive according to the maximum number of hard drives that the hard disk backplane can support, thereby realizing the positioning of the hard drive and the physical location of the hard drive according to the serial number, thereby improving the accuracy of the disk lighting operation.

[0066] In one optional implementation, before determining the target location description information of the target hard drive based on the backplane quantity information and hard drive quantity information of the reference hard drive backplane, the following steps are included:

[0067] S1. Configure a hard disk backplane number for the reference hard disk backplane according to the physical mounting interface location and hard disk backplane type of the reference hard disk backplane. The hard disk backplane type includes front hard disk backplane, rear hard disk backplane and internal backplane hard disk.

[0068] S2, configure the hard drive number according to the physical installation location and hard drive type of the hard drive. The hard drive type includes front hard drive, rear hard drive and internal hard drive.

[0069] Optionally, in step S1 above, a hard disk backplane number is configured for the reference hard disk backplane based on the physical mounting interface location and the hard disk backplane type of the reference hard disk backplane.

[0070] It should be noted that hard drive backplanes have different types of interfaces, such as SATA, SAS, or NVMe. These interfaces may be arranged in a specific way. The interfaces on the hard drive backplane are usually arranged in a certain order, such as from left to right, from top to bottom, or in a specific matrix. The backplane can then be configured with numbers based on the physical installation interface location and the type of hard drive backplane.

[0071] In some alternative implementations, the principle for configuring hard drive numbering is that all front-panel hard drives are ordered from smallest to largest according to the top-to-bottom order of the backplane interfaces; the same applies to other rear and internal backplanes. For example, in an NF5280M6 server with two front-panel hard drives, the numbering configuration would be as follows: Figure 3 As shown: the first front hard drive backplane has a backplane number of "0" and is connected to the server's front interface "port 0". The second front hard drive backplane below the first front hard drive backplane has a backplane number of "1" and is connected to interface "port 1". The first rear hard drive backplane has a backplane number of "0" and is connected to the server's rear interface "port 0". It can be understood that the front hard drive backplane, rear hard drive backplane, and internal hard drive backplane can be determined based on the backplane installation position.

[0072] For example, the target hard drive is located on a front hard drive backplane, and it is the first front hard drive backplane (interface is "0" and backplane number is 0).

[0073] Further in step S2 above, a hard drive number is configured for the hard drive according to the physical installation location and hard drive type of the hard drive, wherein the hard drive type includes front hard drive, rear hard drive and internal hard drive.

[0074] For example, each backplane supports a maximum of 1-2 hard drives. The hard drive number on the backplane with serial number 0 is numbered from 0 to 11 according to the physical mounting slots (the slots where the hard drives are installed) (e.g., top to bottom). The hard drive number on the backplane with serial number 1 is numbered from 1 to 24. The front hard drive is installed on the front hard drive backplane. That is to say, if it is the first hard drive on the first hard drive backplane, the hard drive number is "0".

[0075] Through the above-described embodiments of this application, a hard disk backplane number is configured for the reference hard disk backplane based on its physical mounting interface location and hard disk backplane type; a hard disk number is configured for the hard disk based on its physical mounting interface location and hard disk type; the type of hard disk backplane is distinguished based on its mounting location, and a hard disk backplane number is assigned accordingly; similarly, the hard disks on the hard disk backplane are configured with corresponding numbers in sequence. This enables the determination of the hard disk location based on the hard disk backplane number and the hard disk number, and the lighting operation of the indicator light electrically connected to the hard disk slot is improved.

[0076] In one optional implementation, target location description information of the target hard drive is determined based on the backplane quantity information and hard drive quantity information of the reference hard drive backplane, including:

[0077] S1. Determine the target hard disk backplane number based on the target physical mounting interface location and the hard disk backplane type of the target hard disk backplane, wherein the target hard disk is installed on the target hard disk backplane.

[0078] S2, determine the target hard drive number based on the target physical installation location of the target hard drive;

[0079] S3, determine the target location description information of the target hard drive based on the target hard drive backplane number that matches the target hard drive backplane and the target hard drive number that matches the target hard drive.

[0080] In steps S1-S3 above, the target hard drive backplane number is determined based on the target physical mounting interface location and the hard drive backplane type of the target hard drive backplane, wherein a target hard drive is installed on the target hard drive backplane; the target hard drive number is determined based on the target physical mounting interface location of the target hard drive; and the target location description information of the target hard drive is determined based on the target hard drive backplane number that matches the target hard drive backplane and the target hard drive number that matches the target hard drive.

[0081] Optionally, for example, to obtain the target location description information of the first hard drive on the second front hard drive backplane, it can be understood that, for example, the first hard drive backplane connector corresponds to port "0", and the sequence number of the first hard drive backplane is 0; the second hard drive backplane connector corresponds to port "1", and the sequence number of the second hard drive backplane is 1. The current hard drive status information on the BMC is as follows: Figure 3 As shown, for example, if the first hard drive backplane can support a maximum of 12 hard drives, then the hard drives on the first hard drive backplane are assigned serial numbers 0-11. In sequence, the serial number of the first hard drive on the second hard drive backplane is "12". Then the location description information of the target hard drive can be determined as "0x0c". The above location description information can be "slot index" or the slot number of the hard drive.

[0082] It should be noted that hard drives are connected to the motherboard or hard drive backplane via data cables (such as SATA or SAS). These cables contain signal lines for controlling indicator lights. After determining the target hard drive's location description information (such as serial number), the physical location information of the target hard drive can be determined. Then, based on the electrical connection relationship and communication protocol between the slot and the indicator light signal lines on the server, the corresponding lighting operation can be performed.

[0083] Through the above-described embodiments of this application, the target hard drive for which the hard drive light-up operation is performed is determined, and the backplane serial number and the corresponding hard drive serial number of the hard drive backplane where the target hard drive is located are obtained. The target positioning description information of the target hard drive is determined based on the backplane serial number and the hard drive serial number, that is, the serial number identifier of the slot where the target hard drive is located is determined. Thus, the slot where the target hard drive for which the light-up operation is performed is accurately located based on the serial number identifier. Therefore, the light-up operation of the corresponding indicator light of the target hard drive is realized based on the signal transmission between the slot and the target indicator light.

[0084] In one optional implementation, after performing a lighting operation on the target indicator light associated with the target hard drive based on the target location description information, the process includes:

[0085] S1, if the backplane status update information of the hard disk backplane is obtained within the target period, the updated hard disk backplane in working state is determined from multiple hard disk backplanes according to the backplane status update information, and the hard disk quantity update information matching the updated hard disk backplane is obtained. The backplane status update information is used to indicate the current in-situ status of the hard disk backplane, and the hard disk quantity update information is used to indicate the number of hard disk objects that can be installed on the updated hard disk backplane.

[0086] S2, determine the updated target hard disk backplane number that matches the target hard disk backplane based on the backplane status update information of the updated hard disk backplane.

[0087] S3, determine the update target hard drive number that matches the target hard drive on the target hard drive backplane based on the hard drive quantity update information of the updated hard drive backplane;

[0088] S4. Based on the updated target hard disk backplane number and the updated target hard disk number of the target hard disk backplane, determine the updated location description information of the target hard disk on the target hard disk backplane.

[0089] S5, based on the updated location description information of the target hard drive, performs a lighting operation on the target indicator light that matches the slot where the target hard drive is located.

[0090] The above process is described below using a specific implementation method. For example, if a hard disk status change is detected within 5 seconds after the hardware is in the ready state, assume that the first front backplane changes from the in-place state (working state) to the fault state (not in-place state). That is, the updated hard disk backplane currently in the working state is the front hard disk backplane at the original second interface position and other rear hard disk backplanes. In the fault state, no serial number is assigned to the hard disk backplane. For example, the principle of configuring hard disk numbering is that all front hard disks are sorted in ascending order of the front hard disk backplane serial number, according to the top and bottom order of the hard disk backplane interfaces.

[0091] The original hard drive status information on the BMC is as follows: Figure 3 As shown, on the front hard drive backplane with serial number 0, the hard drive serial numbers range from 0 to 11 according to the physical installation slots (e.g., vertical positions). On the front hard drive backplane with serial number 1, the hard drive serial numbers range from 12 to 15. In the event of a failure in the front hard drive backplane with serial number 0, assuming the maximum number of hard drives that can be installed on the front hard drive backplane with serial number 1 remains unchanged (i.e., the updated hard drive count is 4), the updated hard drive status information on the BMC is as follows: Figure 4 As shown, the hard drive serial numbers on the front hard drive backplane with serial number 1 are automatically reassigned in order. The hard drive with serial number 12 on the front hard drive backplane with original serial number 1 is updated to 0. The hard drive with serial number 13 on the front hard drive backplane with original serial number 1 is updated to 1. The hard drive with serial number 14 on the front hard drive backplane with original serial number 1 is updated to 2. The hard drive with serial number 15 on the front hard drive backplane with original serial number 1 is updated to 3. The backplane serial numbers of the rear hard drive backplane and the serial numbers of the hard drives on the backplane remain unchanged.

[0092] When the in-situ status of the target hard drive backplane is updated, the updated positioning description information of the target hard drive is obtained. For example, if the serial number of the first hard drive on the original second front hard drive backplane is 12, and the serial number of the first hard drive on the updated second front hard drive backplane is 0, this is the updated positioning description information. In other words, after the backplane status is updated and the correspondence between the backplane and the slot is automatically assigned, the index serial number of the target hard drive in the slot is updated. The serial number "0" is used as the slot index. Then, the slot information of the target hard drive and the target indicator light corresponding to the slot where the target hard drive is located can be determined according to the slot index, so as to perform the lighting operation on the target indicator light.

[0093] BMC out-of-band LED activation is achieved under the operating system using the following command, taking "Ipmittool raw 0x3c 0x500x00 0x00 0x00 0x01" as an example. The meanings of the fields are as follows: Figure 5 As shown, 0x3c and 0x50 are fixed instructions; Byte0 indicates the backplane type, where 0x00 indicates the front backplane and 0x01 indicates the rear backplane; Byte1 indicates the slot number (e.g., slot index value); Byte2 indicates the control type, where 0x00 indicates the blue Locate light status control, 0x01 indicates the keyboard power-on / off status control, 0x02 indicates the red Full light status control, and 0x03 indicates the purple Rebuild light status control; Byte3 indicates the status control, where 0x00 indicates the control light is off, 0x01 indicates the control light is on, and 0x03 indicates the Fault light is flashing (supported by some projects).

[0094] Through the above-described embodiments of this application, when backplane status update information of the hard disk backplane is obtained within the target period, the updated hard disk backplane in working condition is determined from multiple hard disk backplanes based on the backplane status update information, and the update information of the number of hard disks matching the updated hard disk backplane is obtained; the updated target hard disk backplane number matching the target hard disk backplane is determined based on the backplane status update information of the updated hard disk backplane, that is, the number of hard disk backplanes on the server is re-determined; the updated target hard disk number matching the target hard disk on the target hard disk backplane is determined based on the update information of the number of hard disks on the updated hard disk backplane, that is, the number of hard disks on the server is re-determined; the updated target hard disk backplane number of the target hard disk backplane and the updated target hard disk number of the target hard disk are determined based on the updated target target hard disk backplane number and the updated target hard disk number of the target hard disk, and the index sequence number of the slot where the hard disk is located is reassigned when the hard disk is lit; the target indicator light matching the slot where the target hard disk is located is lit based on the updated positioning description information of the target hard disk, thereby realizing accurate positioning of the target hard disk based on the updated index sequence number, and thus performing the correct lighting operation.

[0095] The following combination Figure 6 This document describes a complete method for locating and lighting a disk.

[0096] First, S602, the software starts the disk positioning function. That is, when the management software starts the disk positioning function, the disk positioning process starts the following process.

[0097] S604, check the hardware configuration, for example, by using the command ipmitool fru print to determine whether the server model provides an out-of-band management hard disk backplane information query interface and uses out-of-band channel disk positioning.

[0098] S606, traverse hard drive backplane information, backplane in place and maximum number of supported hard drives;

[0099] Specifically, the applicable models use the IPMI query command to traverse all out-of-band channels of all hard disk backplanes under the BMC to determine which backplanes are in place. For the backplanes in place, the maximum number of hard disk backplanes supported by the hard disk backplane is read simultaneously.

[0100] S608 maps LED parameters according to the backplane serial number and the maximum number of supported hard drives;

[0101] Optionally, hard drive serial numbers are assigned to all front hard drives, rear hard drives, and internal hard drives respectively. The assignment principle is the same as the BMC disk positioning light parameters. The hard drive backplane position status and disk positioning light parameters are saved for use by the management software for disk positioning.

[0102] In some optional implementations, the BMC assigns "Slot numbers" based on a fixed sequence of hard drive serial numbers on each backplane, configured by the backplane hardware. All front-panel hard drives are then sorted sequentially from their backplane serial numbers in ascending order. The same applies to other rear and internal backplanes, where hard drive serial numbers are sorted separately from those of the front-panel drives. For example, in the NF6280M6 server, there are two front-panel hard drive backplanes, each supporting a maximum of 12 hard drives. Hard drive number 10 has backplane serial numbers from 0 to 11, and hard drive number 21 has backplane serial numbers from 12 to 24.

[0103] S610, periodically check whether the position status of all backplanes has changed. Specifically, periodically traverse and check the position status of all hard disk backplanes and compare it with the position status of the hard disk backplanes saved in step S606 to see if there has been a change.

[0104] If no change occurs, repeat step S610 to continue the periodic check. If a change occurs, return to step S606 to repeat the check of the backplane's presence status, and issue an alarm for the out-of-band channel of the hard drive backplane that changes from present to absent, thereby re-determining the slot index for performing the LED operation on the hard drive.

[0105] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0106] According to another aspect of the embodiments of this application, a disk positioning lighting device for implementing the above-described disk positioning lighting method is also provided. For example... Figure 7 As shown, the device includes:

[0107] The acquisition unit 702 acquires the respective on-state of multiple hard disk backplanes, wherein the on-state is used to indicate the current working state of the hard disk backplane.

[0108] The first determining unit 704 determines the reference hard disk backplane in working state from multiple hard disk backplanes based on the in-situ state, and obtains the hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane.

[0109] The second determining unit 706 determines the target positioning description information of the target hard disk based on the backplane quantity information and hard disk quantity information of the reference hard disk backplane. The backplane quantity information is used to indicate the number of reference hard disk backplanes in the working state, and the target positioning description information is used to indicate the installation position of the target hard disk.

[0110] The execution unit 708 performs a lighting operation on the target indicator light associated with the target hard disk based on the target location description information.

[0111] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, used to acquire the number of hard drives of the reference hard drive backplane on the server according to the out-of-band management information query interface when the server has an out-of-band management information query interface; and to acquire the machine model information matching each reference hard drive backplane when the server does not have an out-of-band management information query interface, wherein the machine model information records the number of hard drives that can be installed on the hard drive backplane; and to acquire the number of hard drives matching the reference hard drive backplane according to the machine model information.

[0112] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, configured to acquire a first field in configuration information matching a reference hard disk backplane, wherein the configuration information is used to indicate the in-situ status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane; if the first field is a first field value, determine that the hard disk backplane is in a working state; if the first field is a second field value, determine that the hard disk backplane is in a fault state.

[0113] Optionally, the second acquisition unit mentioned above includes: a third determination unit, used to acquire the second field in the configuration information when the first field in the configuration information is the value of the first field; and to determine the number of hard drives that can be installed on the reference hard disk backplane based on the second field.

[0114] Optionally, the second determining unit includes: a configuration module, configured to configure a hard disk backplane number for the reference hard disk backplane according to the physical mounting interface location and the hard disk backplane type of the reference hard disk backplane, wherein the hard disk backplane type includes front hard disk backplane, rear hard disk backplane, and internal backplane hard disk; and to configure a hard disk number for the hard disk according to the physical mounting interface location and the hard disk type of the hard disk, wherein the hard disk type includes front hard disk, rear hard disk, and internal hard disk.

[0115] Optionally, the above configuration module is also used to: determine the target hard drive backplane number of the target hard drive backplane based on the target physical mounting interface location and the hard drive backplane type of the target hard drive backplane, wherein a target hard drive is installed on the target hard drive backplane; determine the target hard drive number of the target hard drive based on the target physical mounting interface location of the target hard drive; and determine the target positioning description information of the target hard drive based on the target hard drive backplane number matching the target hard drive backplane and the target hard drive number matching the target hard drive.

[0116] Optionally, the aforementioned execution unit includes a third acquisition module, configured to, when acquiring backplane status update information of the hard disk backplane within the target period, determine the updated hard disk backplane in a working state from multiple hard disk backplanes based on the backplane status update information, and acquire hard disk quantity update information matching the updated hard disk backplane, wherein the backplane status update information is used to indicate the current in-situ status of the hard disk backplane, and the hard disk quantity update information is used to indicate the number of hard disk objects currently installable on the updated hard disk backplane; determine the updated target hard disk backplane number matching the target hard disk on the target hard disk backplane based on the backplane status update information of the updated hard disk backplane; determine the updated target hard disk number matching the target hard disk on the target hard disk backplane based on the hard disk quantity update information of the updated hard disk backplane; determine the updated positioning description information of the target hard disk on the target hard disk backplane based on the updated target hard disk backplane number of the target hard disk backplane and the updated target hard disk number of the target hard disk; and perform a lighting operation on the target indicator light matching the slot where the target hard disk is located based on the updated positioning description information of the target hard disk.

[0117] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described disk positioning and lighting method in a memory is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses a mobile phone or computer as an example for illustration. Figure 8 As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program, and the processor 804 is configured to execute the steps in any of the above method embodiments via the computer program.

[0118] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0119] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0120] S1, obtain the respective on-state of multiple hard disk backplanes, wherein the on-state is used to indicate the current working state of the hard disk backplane.

[0121] S2, determine the reference hard disk backplane in working state from multiple hard disk backplanes based on the in-situ status, and obtain the hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane.

[0122] S3. Determine the target positioning description information of the target hard drive based on the backplane quantity information and hard drive quantity information of the reference hard drive backplane. The backplane quantity information is used to indicate the number of reference hard drive backplanes in the working state, and the target positioning description information is used to indicate the installation position of the target hard drive.

[0123] S4, based on the target location description information, perform a lighting operation on the target indicator lights associated with the target hard drive.

[0124] Alternatively, as those skilled in the art will understand, Figure 8 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 7 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 7 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 7 The different configurations shown.

[0125] The memory 802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the disk positioning and lighting method and device in this embodiment. The processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, thereby realizing the disk positioning and lighting method described above. The memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 802 may further include memory remotely located relative to the processor 804, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 802 may be used, but is not limited to, to store information such as page elements and page styles. As an example, such as Figure 8 As shown, the memory 802 may include, but is not limited to, the acquisition unit 702, the first determination unit 704, the second determination unit 706, and the execution unit 708 from the disk positioning lighting device. Furthermore, it may include, but is not limited to, other module units from the disk positioning lighting device, which will not be elaborated upon in this example.

[0126] Optionally, the transmission device 806 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 806 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 806 is a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0127] In addition, the above-mentioned electronic device also includes: a display 808; and a connection bus 810 for connecting the various module components in the above-mentioned electronic device.

[0128] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a point-to-point network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this point-to-point network.

[0129] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described above;

[0130] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0131] S1, obtain the respective on-state of multiple hard disk backplanes, wherein the on-state is used to indicate the current working state of the hard disk backplane.

[0132] S2, determine the reference hard disk backplane in working state from multiple hard disk backplanes based on the in-situ status, and obtain the hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane.

[0133] S3. Determine the target positioning description information of the target hard drive based on the backplane quantity information and hard drive quantity information of the reference hard drive backplane. The backplane quantity information is used to indicate the number of reference hard drive backplanes in the working state, and the target positioning description information is used to indicate the installation position of the target hard drive.

[0134] S4, based on the target location description information, perform a lighting operation on the target indicator lights associated with the target hard drive.

[0135] Optionally, in embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0136] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0137] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.

[0138] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0139] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or the indirect coupling or communication connection of units or modules may be electrical or other forms.

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

[0141] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0142] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

[0143] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0144] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0145] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0146] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0147] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0148] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0149] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0150] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.

[0151] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0152] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular hardware and software combination.

[0153] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for positioning and illuminating a disk, characterized in that, include: Obtain the respective in-situ status of multiple hard disk backplanes, wherein the in-situ status is used to indicate the current working status of the hard disk backplane; Based on the in-situ status, a reference hard disk backplane in a working state is determined from among the plurality of hard disk backplanes, and the hard disk quantity information of the reference hard disk backplane is obtained, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane, and the hard disk objects consist of one or more rotating disks. Determining the target positioning description information of the target hard drive based on the backplane quantity information of the reference hard drive backplane and the hard drive quantity information includes: determining the target hard drive backplane number of the target hard drive backplane based on the target physical mounting interface location and the hard drive backplane type of the target hard drive backplane, wherein the target hard drive is mounted on the target hard drive backplane; determining the target hard drive number of the target hard drive based on the target physical mounting interface location of the target hard drive; and determining the target positioning description information of the target hard drive based on the target hard drive backplane number matching the target hard drive backplane and the target hard drive number matching the target hard drive, wherein the backplane quantity information is used to indicate the number of reference hard drive backplanes in working state, and the target positioning description information is used to indicate the installation location of the target hard drive; Based on the target location description information, the target indicator light associated with the target hard drive is turned on.

2. The method according to claim 1, characterized in that, The process of obtaining the number of hard drives on the reference hard drive backplane includes: When the server has an out-of-band management information query interface, the number of hard drives on the reference hard drive backplane on the server is obtained according to the out-of-band management information query interface; If the server does not have the out-of-band management information query interface, obtain the machine model information that matches each of the reference hard disk backplanes, wherein the machine model information records the number of hard disks that can be installed on the hard disk backplane; obtain the number of hard disks that match the reference hard disk backplanes based on the machine model information.

3. The method according to claim 1, characterized in that, Before determining a reference hard disk backplane in operation from among the plurality of hard disk backplanes based on the in-situ status, the process includes: Obtain a first field from configuration information that matches the reference hard disk backplane, wherein the configuration information is used to indicate the in-situ status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane; If the first field is the value of the first field, it is determined that the hard disk backplane is in the working state; If the first field is the value of the second field, the hard disk backplane is determined to be in a faulty state.

4. The method according to claim 3, characterized in that, Obtaining the number of hard drives on the reference hard drive backplane includes: If the first field in the configuration information is the value of the first field, then the second field in the configuration information is obtained; The number of hard drives that can be installed on the reference hard drive backplane is determined based on the second field.

5. The method according to claim 1, characterized in that, Before determining the target location description information of the target hard drive based on the backplane quantity information of the reference hard drive backplane and the hard drive quantity information, the following steps are included: Configure a hard drive backplane number for the reference hard drive backplane according to the physical mounting interface location and the hard drive backplane type of the reference hard drive backplane, wherein the hard drive backplane type includes front hard drive backplane, rear hard drive backplane and internal backplane hard drive. The hard drive is assigned a hard drive number based on its physical installation location and type, where the hard drive type includes front hard drives, rear hard drives, and internal hard drives.

6. The method according to claim 1, characterized in that, After performing the lighting operation on the target indicator light associated with the target hard drive according to the target location description information, the process includes: If the backplane status update information of the hard disk backplane is obtained within the target period, the updated hard disk backplane in the working state is determined from the multiple hard disk backplanes according to the backplane status update information, and the hard disk quantity update information matching the updated hard disk backplane is obtained. The backplane status update information is used to indicate the current in-place state of the hard disk backplane, and the hard disk quantity update information is used to indicate the number of hard disk objects that can be installed on the updated hard disk backplane. The updated target hard disk backplane number matching the target hard disk backplane is determined based on the backplane status update information of the updated hard disk backplane. The updated target hard drive number that matches the target hard drive on the target hard drive backplane is determined based on the updated hard drive number information of the updated hard drive backplane. Based on the updated target hard disk backplane number and the updated target hard disk number of the target hard disk, determine the updated location description information of the target hard disk on the target hard disk backplane; The lighting operation is performed on the target indicator light that matches the slot where the target hard drive is located, based on the updated location description information of the target hard drive.

7. A disk positioning and lighting device, characterized in that, include: The acquisition unit acquires the respective on-site status of multiple hard disk backplanes, wherein the on-site status is used to indicate the current working status of the hard disk backplane. The first determining unit determines a reference hard disk backplane in working condition from among the plurality of hard disk backplanes according to the in-situ state, and obtains the hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the number of hard disk objects that can be installed on the reference hard disk backplane, and the hard disk objects consist of one or more rotating disks. The second determining unit determines the target positioning description information of the target hard drive based on the backplane quantity information of the reference hard drive backplane and the hard drive quantity information, including: determining the target hard drive backplane number of the target hard drive backplane based on the target physical mounting interface location and the hard drive backplane type of the target hard drive backplane, wherein the target hard drive is mounted on the target hard drive backplane; determining the target hard drive number of the target hard drive based on the target physical mounting interface location of the target hard drive; and determining the target positioning description information of the target hard drive based on the target hard drive backplane number matching the target hard drive backplane and the target hard drive number matching the target hard drive, wherein the backplane quantity information is used to indicate the number of reference hard drive backplanes in the working state, and the target positioning description information is used to indicate the installation position of the target hard drive; The execution unit performs a lighting operation on the target indicator light associated with the target hard disk according to the target location description information.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 6.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for positioning hard disk position, computer equipment and storage medium

    CN118708129A