Disk positioning lighting method and device, storage medium and electronic equipment

By obtaining the on-site status and number of hard disks of the hard disk backplane, determining the installation location of the target hard disk, and performing lighting operations on the target indicator lights, solving the problem of lighting positioning errors caused by BMC reallocation, and realizing accurate positioning and lighting operations of the hard disk.

CN119785865AActive Publication Date: 2025-04-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411845033.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-08
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

Due to BMC reallocation, the corresponding relationship between the original binding lighting parameters of the management software and the hard disk slot remains unchanged, resulting in the problem of lighting and positioning the hard disk failure or the lighting position is incorrect.

Method used

By obtaining the in-position status of multiple hard disk backplanes, determining the reference hard disk backplane in the working state, and obtaining its hard disk number information, thereby determining the target positioning description information of the target hard disk, and finally performing the lighting operation on the target indicator based on this information.

Benefits of technology

Accurate hard disk positioning and lighting operations are realized, which avoids lighting failure or location errors caused by BMC reallocation, and improves the reliability and data security of data services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119785865A_ABST
    Figure CN119785865A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a disk positioning lighting method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring in-place states corresponding to a plurality of hard disk backboards; 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 number information of the reference hard disk backplane; target positioning description information of the target hard disk is determined according to backboard number information and hard disk number information of the reference hard disk backboards, the backboard number information is used for indicating the number of the reference hard disk backboards in the working state, and the target positioning description information is used for indicating the installation position of the target hard disk; and according to the target positioning description information, executing a lighting operation on a target indicating lamp associated with the target hard disk. The technical problem that in the related technology, due to the fact that BMC reallocation is conducted, and the corresponding relation between original binding point lamp parameters and hard disk slot positions of management software is not changed, hard disk lighting positioning fails or the lighting position is wrong is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of storage components and chip technology, and more specifically, to a disk positioning lighting method and device, a storage medium, and an electronic device. Background Art

[0002] The existing technology detects through the operating system or storage pool. When there is a hard disk failure, a data read and write error alarm or exception will occur. The hard disk location is determined in combination with the server's hardware topology, and through the remote console or management software. One is to light up the SAS link in-band, but when the hard disk fails and cannot be identified, the lighting link is also disconnected, and the disk positioning cannot be completed; the other technology is to manage the hard disk backplane hard disk light out-of-band through the server's BMC, which does not rely on the SAS link between the IO controller and the hard disk, and is also the current mainstream method of lighting up the disk positioning method.

[0003] However, with the development of technology and the iteration of models, in order to adapt to more models, the new platform's BMC out-of-band management hard disk light logic has also changed from the original fixed relationship with the hard disk slot to an automatic allocation corresponding relationship with the hard disk slot. Under this allocation principle, if the channel of the out-of-band management backplane is abnormal, it will cause the BMC to reallocate the "Slot number". Once the light position is wrong, replacing the hard disk may cause data corruption, seriously affecting data services and data security. In other words, there is a problem in the related technology that the original binding light parameters of the management software and the hard disk slot remain unchanged due to the BMC reallocation, resulting in the failure of the light to locate the hard disk or the wrong light position.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a disk positioning and lighting method and device, a storage medium and an electronic device, so as to at least solve the technical problem in the related art that the corresponding relationship between the original binding lighting parameters of the management software and the hard disk slot remains unchanged due to the reallocation of the BMC, resulting in the failure of lighting and locating the hard disk or the wrong lighting position.

[0006] According to one embodiment of the present application, a disk positioning and lighting method is provided, comprising: obtaining the respective corresponding in-place status of multiple hard disk backplanes, wherein the in-place status is used to indicate the current working status of the hard disk backplane; determining a reference hard disk backplane in a working state from the multiple hard disk backplanes according to the in-place status, and obtaining 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 the target hard disk according to the 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 a working state, and the target positioning description information is used to indicate the installation position of the target hard disk; and performing a lighting operation on a target indicator light associated with the target hard disk according to the target positioning description information.

[0007] According to another aspect of the embodiment of the present application, a disk positioning lighting device is also provided, including: an acquisition unit, which acquires the respective corresponding in-place status of multiple hard disk backplanes, wherein the in-place status is used to indicate the current working status of the hard disk backplane; a first determination unit, which determines a reference hard disk backplane in a working state from multiple hard disk backplanes according to the in-place status, and acquires 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, which determines target positioning description information of the target hard disk according to the 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 a working state, and the target positioning description information is used to indicate the installation position of the target hard disk; an execution unit, which performs a lighting operation on a target indicator light associated with the target hard disk according to the target positioning description information.

[0008] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, used to obtain the hard disk quantity information of the reference hard disk 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; when the server does not have an out-of-band management information query interface, respectively obtain the machine model information matching 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; and obtain the hard disk quantity information matching the reference hard disk backplane according to the machine model information.

[0009] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, used to acquire the first field in the configuration information that matches the reference hard disk backplane, wherein the configuration information is used to indicate the in-place 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 faulty state.

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

[0011] Optionally, the above-mentioned second determination unit includes: a configuration module, used to configure a hard disk backplane number for the reference hard disk backplane according to the physical installation interface position of the reference hard disk backplane and the hard disk backplane type of the reference hard disk backplane, wherein the hard disk backplane type includes a front hard disk backplane, a rear hard disk backplane and a built-in backplane hard disk; configure a hard disk number for the hard disk according to the physical installation disk position of the hard disk and the hard disk type of the hard disk, wherein the hard disk type includes a front hard disk, a rear hard disk and a built-in hard disk.

[0012] Optionally, the above configuration module is also used to: determine the target hard disk backplane number of the target hard disk backplane based on the target physical installation interface position of the target hard disk backplane and the hard disk backplane type of the target hard disk backplane, wherein the target hard disk backplane is installed with the target hard disk; determine the target hard disk number of the target hard disk based on the target physical installation disk position of the target hard disk; determine the target positioning description information of the target hard disk based on the target hard disk backplane number that matches the target hard disk backplane and the target hard disk number that matches the target hard disk.

[0013] Optionally, the above-mentioned execution unit includes a third acquisition module, which is used to determine an updated hard disk backplane in a working state from multiple hard disk backplanes according to the backplane status update information when the backplane status update information of the hard disk backplane is obtained within the target cycle, and obtain hard disk quantity update information matching the updated hard disk backplane, wherein the backplane status update information is used to indicate the current in-place 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 an updated target hard disk backplane number matching the target hard disk backplane according to the backplane status update information of the updated hard disk backplane; determine an updated target hard disk number matching the target hard disk on the target hard disk backplane according to the hard disk quantity update information of the updated hard disk backplane; determine the updated location description information of the target hard disk on the target hard disk backplane according to 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 according to the updated location description information of the target hard disk.

[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned disk positioning lighting method when running.

[0015] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above disk positioning lighting method.

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

[0017] Through the present application, firstly, the corresponding in-place status of multiple hard disk backplanes is obtained, and the in-place status is used to indicate the current working status of the hard disk backplane; further, a reference hard disk backplane in working status is determined from the multiple hard disk backplanes according to the in-place status, and the hard disk quantity information of the reference hard disk backplane is obtained, and 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; then, the target positioning description information of the target hard disk is determined according to the backplane quantity information and the 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 working status, and the target positioning description information is used to indicate the installation position of the target hard disk; and the target indicator light associated with the target hard disk is executed according to the target positioning description information, thereby solving the technical problem in the related technology that the corresponding relationship between the original binding lighting parameters of the management software and the hard disk slot remains unchanged due to the reallocation of the BMC, resulting in the failure of lighting and locating the hard disk or the wrong lighting position. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 It is a hardware structure block diagram of a server device of a disk positioning lighting method according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a disk positioning and lighting method according to an embodiment of the present application;

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

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

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

[0024] Figure 6 is a flow chart of another disk positioning and lighting method according to an embodiment of the present application;

[0025] Figure 7 It is a structural schematic diagram of a disk positioning lighting device according to an embodiment of the present application;

[0026] Figure 8 It is a structural schematic diagram of a disk positioning lighting electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

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

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

[0029] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a disk positioning lighting method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the disk positioning lighting method in the embodiment of the present application. The processor 102 executes various functional applications and lighting operations by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

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

[0033] S202, obtaining the respective corresponding in-place status of a plurality of hard disk backplanes, wherein the in-place status is used to indicate the current working status of the hard disk backplane;

[0034] S204, determining a reference hard disk backplane in a working state from a plurality of hard disk backplanes according to the in-position state, and obtaining hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the quantity of hard disk objects that can be installed on the reference hard disk backplane;

[0035] S206, determining target location description information of the target hard disk according to the backplane quantity information and hard disk quantity information of the reference hard disk backplane, wherein the backplane quantity information is used to indicate the quantity of the reference hard disk backplanes in working state, and the target location description information is used to indicate the installation position of the target hard disk;

[0036] S208: Lighting up the target indicator light associated with the target hard disk according to the target location description information.

[0037] In the above step S202, the above working state can be an in-place state or a fault state (not in-place state). In some optional implementations, for example, the corresponding in-place states of multiple hard disk backplanes can be obtained through the out-of-band management hard disk backplane information query interface. For example, the out-of-band information of the rear backplane 4 is queried, and 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 returned is 0x01, it means that the rear backplane 4 is in place, that is, it is in working state.

[0038] Then, step S204 can be executed to determine a reference hard disk backplane in working state from multiple hard disk backplanes according to the in-place status, and obtain 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 optional implementations, for example, the number of hard disks on the hard disk backplane can be obtained through the out-of-band management hard disk backplane information query interface, such as querying the out-of-band information of the rear backplane 4, and obtaining the execution command ipmitool raw 0x3c 0x1c 0x03 0x01 0x04 according to the ipmi query hard disk backplane information instruction format. If the third byte returned is 0x0c, it means that the maximum number of hard disks supported is 12.

[0040] In the above step S206, the target location description information of the target hard disk is determined according to 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 quantity of the reference hard disk backplanes in working state, and the target location description information is used to indicate the installation position of the target hard disk;

[0041] Optionally, the target location description information may be, but is not limited to, a serial number describing the physical location of the target hard disk, such as a slot index or a slot number or label of the slot where the hard disk is located.

[0042] The above is a specific implementation method for determining the target location description information of the target hard disk based on the backplane quantity information and hard disk quantity information of the reference hard disk backplane. For example, the target hard disk is the hard disk on the sixth receiving plate of the first front hard disk backplane, and the number information is as follows: Figure 3As shown, the backplane serial number of the first front hard disk backplane is "0", and the serial number of the hard disk on the 6th tray of the first front hard disk backplane is "5". For example, the above target positioning description information can be determined as "05", or the slot index can be determined as "0x05". It should be noted that each hard disk 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 indicator light to control. In hardware design, the indicator light of each hard disk 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 disk. No specific restrictions are made on the specific content of the above target positioning description information.

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

[0044] It can be understood that a hard disk is a device for storing data, which is composed of one or more rotating disks (platters) coated with magnetic materials for storing data. Through the present application, first, the corresponding in-place status of multiple hard disk backplanes is obtained, and the in-place status is used to indicate the current working status of the hard disk backplane; further, a reference hard disk backplane in a working state is determined from the multiple hard disk backplanes according to the in-place status, and the hard disk quantity information of the reference hard disk backplane is obtained, and 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; then, the target positioning description information of the target hard disk is determined according to the backplane quantity information and the 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 a working state, and the target positioning description information is used to indicate the installation position of the target hard disk; the target indicator light associated with the target hard disk is executed according to the target positioning description information, and the technical problem in the related technology that the corresponding relationship between the original binding lighting parameters of the management software and the hard disk slot remains unchanged due to the reallocation of the BMC is solved, resulting in the failure of lighting and locating the hard disk or the wrong lighting position.

[0045] In an optional implementation, obtaining hard disk quantity information of a reference hard disk backplane includes:

[0046] S1, when the server has an out-of-band management information query interface, obtaining hard disk quantity information of a reference hard disk backplane on the server according to the out-of-band management information query interface;

[0047] S2, when the server does not have an out-of-band management information query interface, obtain the machine model information matching each reference hard disk backplane respectively, wherein the machine model information records the number of hard disks that can be installed on the hard disk backplane; obtain the hard disk quantity information matching the reference hard disk backplane according to the machine model information.

[0048] Optionally, in the above step S1, when the server has an out-of-band management information query interface, the hard disk quantity information of the reference hard disk backplane on the server is obtained according to the out-of-band management information query interface;

[0049] In this embodiment, the out-of-band management hard disk backplane usually provides an information query interface that complies with the IPMI specification. For example, the server where the target hard disk is located is a NF5280M6 model server. According to the BMC "IPMI Command User Manual" of the NF5280M6 model server, the interface command for querying the hard disk backplane information is found. For example, executing the command ipmitool raw 0x3c 0x1c0x03 0x01 0x04 means querying the out-of-band information of the rear backplane 4, specifically for obtaining the in-place status information of the rear backplane 4 and the maximum number of hard disks that the hard disk backplane can support.

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

[0051] In some optional implementations, when the server does not have an out-of-band management information query interface, the machine model information matching each reference hard disk backplane is obtained respectively, and the machine model information records the number of hard disks that can be installed on the hard disk backplane; the hard disk quantity information matching the reference hard disk backplane is obtained according to the machine model information. That is, 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-mentioned implementation modes of the present application, in different situations, 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, the hard disk quantity information of the reference hard disk backplane on the server can be obtained according to different methods, and then accurate hard disk serial numbers can be configured for the hard disks on the hard disk backplane, that is, the accuracy of matching the hard disk ID number identified by the server with the actual position is improved, and the accuracy of lighting up the target hard disk in a server with a large number of hard disks is improved.

[0053] In an optional implementation, before determining a reference hard disk backplane in a working state from a plurality of hard disk backplanes according to the in-position state, the method includes:

[0054] S1, obtaining a first field in configuration information matching a reference hard disk backplane, wherein the configuration information is used to indicate the in-place status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane;

[0055] S2, when the first field is the first field value, determining that the hard disk backplane is in a working state;

[0056] S3: When the first field is equal to the second field value, it is determined that the hard disk backplane is in a fault state.

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

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

[0059] Through the above-mentioned implementation mode of the present application, based on obtaining the first field in the configuration information that matches the reference hard disk backplane, the configuration information is used to indicate the in-place status of the hard disk backplane and the number of hard disk objects installed on the hard disk backplane; when the first field is the first field value, it is determined that the hard disk backplane is in a working state; when the first field is the second field value, it is determined that the hard disk backplane is in a fault state, the in-place status of the hard disk backplane is determined, and the hard disk backplanes in a working state are numbered. If the hard disks are not in place, that is, these hard disks will be ignored in the lighting operation, which can avoid erroneously lighting the indicator lights at the positions of hard disks that have been removed or not installed, thereby reducing the maintenance personnel's misoperation when locating faults.

[0060] In an optional implementation manner, obtaining hard disk quantity information of a reference hard disk backplane includes:

[0061] S1, when the first field in the configuration information is the first field value, obtaining the second field in the configuration information;

[0062] S2, determining the number of hard disks that can be installed on the reference hard disk backplane according to the second field.

[0063] Optionally, in the above steps S1-S2, when 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 disks installable on the reference hard disk backplane is determined according to the second field.

[0064] In some embodiments, the out-of-band information of the rear backplane 4 is queried according to the instruction for querying the hard disk backplane information, and the command ipmitool raw 0x3c 0x 1c 0x03 0x01 0x04 is executed. The returned information is the configuration information of the rear backplane 4 obtained by the query, for example, "01 30 0c 0f 0f.......", and when the first field is the first field value "1" (that is, 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 maximum number of hard disks supported by the rear backplane 4 is 12.

[0065] Through the above-mentioned implementation mode of the present 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 disks that can be installed on the reference hard disk backplane is determined according to the second field, and then the hard disk encoding corresponding to each hard disk configuration is performed according to the maximum number of hard disks that the hard disk backplane can support, thereby realizing the positioning of the hard disk and the physical location of the hard disk according to the serial number, thereby improving the accuracy of the disk lighting operation.

[0066] In an optional implementation manner, before determining the target location description information of the target hard disk according to the backplane quantity information and the hard disk quantity information of the reference hard disk backplane, the method includes:

[0067] S1, configuring a hard disk backplane number for the reference hard disk backplane according to the physical installation interface position of the reference hard disk backplane and the hard disk backplane type of the reference hard disk backplane, wherein the hard disk backplane type includes a front hard disk backplane, a rear hard disk backplane and a built-in backplane hard disk;

[0068] S2, configuring a hard disk number for the hard disk according to the physical installation tray position of the hard disk and the hard disk type of the hard disk, wherein the hard disk type includes a front hard disk, a rear hard disk and a built-in hard disk.

[0069] Optionally, in the above step S1, a hard disk backplane number is configured for the reference hard disk backplane according to the physical installation interface position of the reference hard disk backplane and the hard disk backplane type of the reference hard disk backplane;

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

[0071] In some optional implementations, for example, the principle of configuring hard disk numbering is that all front hard disks are arranged in ascending order from the front hard disk backplane serial number, according to the up and down order of the hard disk backplane interface; the same applies to other rear and built-in backplanes. For example, the NF5280M6 model server has two front hard disk backplanes, and the serial number configuration is as follows: Figure 3 As shown: the backplane serial number of the first front hard disk backplane is "0", which is connected to the "0 port" of the front interface of the server; the backplane serial number of the second front hard disk backplane below the first front hard disk backplane is "1", which is connected to the "1 port" of the interface; the serial number of the first rear hard disk backplane is "0", which is connected to the "0 port" of the rear interface of the server. It can be understood that the front hard disk backplane, the rear hard disk backplane and the built-in hard disk backplane can be determined according to the backplane installation position.

[0072] For example, the target hard disk backplane where the target hard disk is located is a front hard disk backplane type, and is the first front hard disk backplane (the interface is "0" port, and the backplane serial number is 0).

[0073] Further in the above step S2, a hard disk number is configured for the hard disk according to the physical installation tray position of the hard disk and the hard disk type of the hard disk, wherein the hard disk type includes a front hard disk, a rear hard disk and a built-in hard disk.

[0074] For example, each backplane supports a maximum of 1 or 2 hard drives. The hard drive serial numbers on the hard drive backplane with serial number 0 are from 0 to 11 according to the installation order (for example, up and down position) of the physical installation plate (the slot where the hard drive is installed) of the hard drive. The hard drive serial numbers on the hard drive backplane with serial number 1 are from 12 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 serial number is "0".

[0075] Through the above-mentioned implementation mode of the present application, a hard disk backplane number is configured for the reference hard disk backplane according to the physical installation interface position of the reference hard disk backplane and the hard disk backplane type of the reference hard disk backplane, a hard disk number is configured for the hard disk according to the physical installation disk position of the hard disk and the hard disk type of the hard disk, the type of the hard disk backplane is distinguished according to the installation position of the hard disk backplane, and the hard disk backplane is numbered. Similarly, corresponding numbers are configured in sequence for the hard disks on the hard disk backplane, thereby realizing the determination of the location of the hard disk according to the hard disk backplane serial number and the hard disk serial number, and the lighting operation of the indicator light electrically connected to the slot where the hard disk is located, thereby improving the accuracy of the lighting operation.

[0076] In an optional implementation, determining the target location description information of the target hard disk according to the backplane quantity information and the hard disk quantity information of the reference hard disk backplane includes:

[0077] S1, determining a target hard disk backplane number of a target hard disk backplane according to a target physical installation interface position of a target hard disk backplane and a hard disk backplane type of the target hard disk backplane, wherein a target hard disk is installed on the target hard disk backplane;

[0078] S2, determining a target hard disk number of the target hard disk according to a target physical installation docking disk position of the target hard disk;

[0079] S3, determining target location description information of the target hard disk according to the target hard disk backplane number that matches the target hard disk backplane and the target hard disk number that matches the target hard disk.

[0080] In the above steps S1-S3, the target hard disk backplane number of the target hard disk backplane is determined according to the target physical installation interface position of the target hard disk backplane and the hard disk backplane type of the target hard disk backplane, wherein the target hard disk backplane is installed with the target hard disk; the target hard disk number of the target hard disk is determined according to the target physical installation disk position of the target hard disk; the target positioning description information of the target hard disk is determined according to the target hard disk backplane number that matches the target hard disk backplane and the target hard disk number that matches the target hard disk.

[0081] Optionally, for example, taking the target location description information of the first hard disk on the second front hard disk backplane as an example, it can be understood that, for example, the first hard disk backplane wiring port corresponds to the "0" port, the first hard disk backplane is numbered 0, the second hard disk backplane wiring port corresponds to the "1" port, and the second hard disk backplane is numbered 1 in sequence. The hard disk status information on the current BMC is as follows: Figure 3 As shown, for example, if the maximum number of hard disks that the first hard disk backplane can support is 12, then the hard disks on the first hard disk backplane are assigned serial numbers 0-11, and the serial number of the first hard disk on the second hard disk backplane is "12", then the location description information of the target hard disk can be determined to be "0x0c", and the above-mentioned location description information can specifically be a "slot index" or the slot number of the disk where the hard disk is located.

[0082] It should be noted that the hard disk drive is connected to the motherboard or hard disk backplane through a data cable (such as SATA or SAS). These connection lines contain signal lines for controlling indicator lights. After determining the location description information (such as serial number) of the target hard disk, the physical location information of the target hard disk can be determined, and then the corresponding lighting operation can be performed according to the electrical connection relationship between the slot on the server and the signal line of the indicator light and the communication protocol.

[0083] Through the above-mentioned implementation mode of the present application, the target hard disk for performing the hard disk lighting operation is determined, and the backplane serial number of the hard disk backplane where the target hard disk is located and the corresponding hard disk serial number are obtained. The target positioning description information of the target hard disk is determined according to the hard disk backplane serial number and the hard disk serial number, that is, the serial number identifier of the slot where the target hard disk is located is determined, and then the slot where the target hard disk for performing the lighting operation is located is accurately located according to the serial number identifier, thereby realizing the lighting operation of the indicator light corresponding to the target hard disk according to the signal transmission between the slot and the target indicator light.

[0084] In an optional implementation manner, after the target indicator light associated with the target hard disk is turned on according to the target location description information, the method includes:

[0085] S1, when the backplane status update information of the hard disk backplane is obtained within the target period, an updated hard disk backplane in working state is determined from multiple hard disk backplanes according to the backplane status update information, and hard disk quantity update information matching the updated hard disk backplane is obtained, wherein 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 currently installable on the updated hard disk backplane;

[0086] S2, determining the update target hard disk backplane number matching the target hard disk backplane according to the backplane status update information of the updated hard disk backplane;

[0087] S3, determining the updated target hard disk number that matches the target hard disk on the target hard disk backplane according to the hard disk quantity update information of the updated hard disk backplane;

[0088] S4, determining the update location description information of the target hard disk on the target hard disk backplane according to the update target hard disk backplane number of the target hard disk backplane and the update target hard disk number of the target hard disk;

[0089] S5, performing a lighting operation on a target indicator light that matches the slot where the target hard disk is located according to the updated positioning description information of the target hard disk.

[0090] The above process is described below with a specific implementation method. For example, a hard disk state change is detected within 5 seconds after the hardware is in the ready state. It is assumed 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 arranged in ascending order from the front hard disk backplane serial number according to the upper and lower order of the hard disk backplane interfaces;

[0091] The hard disk status information on the original BMC is as follows Figure 3 As shown in the figure, the hard disk serial numbers of the front hard disk backplane with serial number 0 are from 0 to 11 according to the installation sequence position (for example, the upper and lower position) of the physical installation plate (the slot where the hard disk is installed) of the hard disk, and the hard disk serial numbers of the front hard disk backplane with serial number 1 are from 12 to 15. In the case of a failure of the front hard disk backplane with serial number 0, assuming that the maximum number of hard disks that can be installed on the front hard disk backplane with serial number 1 remains unchanged, that is, the hard disk number update information is 4, the hard disk status information on the updated BMC is as follows Figure 4 As shown, the hard disk serial numbers on the front hard disk backplane with serial number 1 are automatically reallocated in order, the hard disk serial number of the hard disk serial number 12 on the front hard disk backplane with original backplane serial number 1 is updated to 0, the hard disk serial number of the hard disk serial number 13 on the front hard disk backplane with original backplane serial number 1 is updated to 1, the hard disk serial number of the hard disk serial number 14 on the front hard disk backplane with original backplane serial number 1 is updated to 2, the hard disk serial number of the hard disk serial number 15 on the front hard disk backplane with original backplane serial number 1 is updated to 3, and the backplane serial numbers of the rear hard disk backplanes and the serial numbers of the hard disks on the backplanes whose other states remain unchanged remain unchanged;

[0092] In the case where the in-place status of the target hard disk backplane is updated, the updated positioning description information of the target hard disk is obtained. For example, the serial number of the first hard disk on the original second front hard disk backplane is 12, and the serial number of the first hard disk on the updated second front hard disk backplane is 0, which is the updated positioning description information. That is, after the backplane status is updated and the corresponding relationship with the slot is automatically assigned, the index serial number of the target hard disk on the slot is updated, and the serial number "0" is used as the Slot index, and then the slot information of the target hard disk and the target indicator corresponding to the slot where the target hard disk is located can be determined according to the slot index, so as to perform a lighting operation on the target indicator;

[0093] The BMC out-of-band lighting is realized in the operating system through the following command. Taking "Ipmittool raw 0×3c 0×500x00 0x00 0×00 0×01" as an example, the meaning of the fields is as follows Figure 5 As shown, 0×3c and 0×50 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 (such as the slot index value); Byte2 indicates the control type, where 0×00 indicates the blue Locate light status control, 0x01 indicates the keyboard power on and 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 that the control light is off, 0x01 indicates that the control light is on, and 0×03 indicates that the Fault light flashes (supported by some projects).

[0094] Through the above-mentioned implementation mode of the present application, in the case where 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 updated target hard disk backplane number matching the target hard disk backplane is determined according to the backplane status update information of the updated hard disk backplane, that is, the number of the hard disk backplane 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 according to the hard disk quantity update information of the updated hard disk backplane, that is, the number of the hard disk on the server is re-determined; according to 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, the updated positioning description information of the target hard disk on the target hard disk backplane is determined, and the index number of the slot where the hard disk is located when the lighting operation is performed on the hard disk is reallocated; according to the updated positioning description information of the target hard disk, the lighting operation is performed on the target indicator light matching the slot where the target hard disk is located, so that the position of the target hard disk is accurately located according to the updated index number, and then the correct lighting operation is performed.

[0095] The following combination Figure 6 A complete disk positioning lighting method is described.

[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, checking the hardware configuration, for example, by using the command ipmitool fru print, to determine whether the server model is a model that provides an out-of-band management hard disk backplane information query interface and uses an out-of-band channel disk positioning.

[0098] S606, traverse the hard disk backplane information, the backplane is in place and the maximum number of hard disks supported;

[0099] Specifically, the applicable model uses the ipmi query hard disk backplane information command to traverse all hard disk backplane out-of-band channels under the BMC to determine which backplanes are in place, and the backplanes in place simultaneously read the maximum number of hard disk backplanes supported by the hard disk backplane.

[0100] S608, mapping lighting parameters according to the backplane serial number and the maximum number of hard disks supported;

[0101] Optionally, hard disk serial numbers are assigned to all front hard disks, rear hard disks, and internal hard disks respectively. The assignment principle is consistent with the BMC disk positioning lighting parameters, and the hard disk backplane in-place status and disk positioning lighting parameters are saved and provided to the management software for disk positioning.

[0102] In some optional implementations, the principle of BMC assigning "Slot number" is that the serial number of each hard disk on the backplane is fixed in order by the backplane hardware configuration, and then all front hard disks are sorted in order from the front hard disk backplane serial number from small to large; other rear and built-in backplanes are the same, and the hard disk serial numbers and front are sorted separately. For example, the NF6280M6 model server has 2 front hard disk backplanes, and each backplane supports a maximum of 12 hard disks. The serial number of the serial number 10 hard disk backplane is from 0 to 11, and the serial number of the serial number 21 hard disk backplane is from 12 to 24.

[0103] S610, periodically checking whether the in-place status of all backplanes has changed. Specifically, periodically traversing and checking the in-place status of all hard disk backplanes to see whether there is any change compared with the in-place status of the hard disk backplanes saved in step S606.

[0104] If there is no change, repeat step S610 to continue the periodic check. If there is a change, return to step S606 to repeat the backplane in-place status check, and issue an out-of-band channel alarm for the hard disk backplane that changes from in-place to out-of-place, and then re-determine the slot index for performing the lighting operation on the hard disk.

[0105] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0106] According to another aspect of the embodiment of the present application, a disk positioning lighting device for implementing the above disk positioning lighting method is also provided. Figure 7 As shown, the device comprises:

[0107] An acquisition unit 702 acquires respective corresponding in-place states of a plurality of hard disk backplanes, wherein the in-place state is used to indicate the current working state of the hard disk backplane;

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

[0109] The second determining unit 706 determines target location description information of the target hard disk according to the backplane quantity information and hard disk quantity information of the reference hard disk backplane, wherein the backplane quantity information is used to indicate the quantity of the reference hard disk backplanes in working state, and the target location 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 according to the target location description information.

[0111] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, used to obtain the hard disk quantity information of the reference hard disk 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; when the server does not have an out-of-band management information query interface, respectively obtain the machine model information matching 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; and obtain the hard disk quantity information matching the reference hard disk backplane according to the machine model information.

[0112] Optionally, the above-mentioned acquisition unit includes: a first acquisition module, used to acquire the first field in the configuration information that matches the reference hard disk backplane, wherein the configuration information is used to indicate the in-place 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 faulty state.

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

[0114] Optionally, the above-mentioned second determination unit includes: a configuration module, used to configure a hard disk backplane number for the reference hard disk backplane according to the physical installation interface position of the reference hard disk backplane and the hard disk backplane type of the reference hard disk backplane, wherein the hard disk backplane type includes a front hard disk backplane, a rear hard disk backplane and a built-in backplane hard disk; configure a hard disk number for the hard disk according to the physical installation disk position of the hard disk and the hard disk type of the hard disk, wherein the hard disk type includes a front hard disk, a rear hard disk and a built-in hard disk.

[0115] Optionally, the above configuration module is also used to: determine the target hard disk backplane number of the target hard disk backplane based on the target physical installation interface position of the target hard disk backplane and the hard disk backplane type of the target hard disk backplane, wherein the target hard disk backplane is installed with the target hard disk; determine the target hard disk number of the target hard disk based on the target physical installation disk position of the target hard disk; determine the target positioning description information of the target hard disk based on the target hard disk backplane number that matches the target hard disk backplane and the target hard disk number that matches the target hard disk.

[0116] Optionally, the above-mentioned execution unit includes a third acquisition module, which is used to determine an updated hard disk backplane in a working state from multiple hard disk backplanes according to the backplane status update information when the backplane status update information of the hard disk backplane is obtained within the target cycle, and obtain hard disk quantity update information matching the updated hard disk backplane, wherein the backplane status update information is used to indicate the current in-place 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 an updated target hard disk backplane number matching the target hard disk backplane according to the backplane status update information of the updated hard disk backplane; determine an updated target hard disk number matching the target hard disk on the target hard disk backplane according to the hard disk quantity update information of the updated hard disk backplane; determine the updated location description information of the target hard disk on the target hard disk backplane according to 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 according to the updated location description information of the target hard disk.

[0117] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned disk positioning lighting method in the memory is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a mobile phone or a computer as an example. 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 through the computer program.

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

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

[0120] S1, obtaining the respective corresponding in-place status of multiple hard disk backplanes, wherein the in-place status is used to indicate the current working status of the hard disk backplane;

[0121] S2, determining a reference hard disk backplane in a working state from a plurality of hard disk backplanes according to the in-position state, and obtaining hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the quantity of hard disk objects that can be installed on the reference hard disk backplane;

[0122] S3, determining target positioning description information of the target hard disk according to the backplane quantity information and hard disk quantity information of the reference hard disk backplane, wherein the backplane quantity information is used to indicate the quantity of the reference hard disk backplanes in working state, and the target positioning description information is used to indicate the installation position of the target hard disk;

[0123] S4, performing a lighting operation on the target indicator light associated with the target hard disk according to the target positioning description information.

[0124] Alternatively, a person skilled in the art may understand that: Figure 8 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 7 Different configurations are shown.

[0125] Among them, the memory 802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the disk positioning lighting method and device in the embodiments of the present application. The processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, realizing the above-mentioned disk positioning lighting method. The memory 802 may include a high-speed random access memory, and may also include a 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 a memory remotely located relative to the processor 804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 802 can be specifically, but not limited to, used 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 in the disk positioning lighting device. In addition, it may also include but is not limited to other module units in the disk positioning lighting device, which will not be repeated in this example.

[0126] Optionally, the transmission device 806 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 806 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0127] In addition, the electronic device mentioned above further includes: a display 808; and a connection bus 810, which is used to connect various module components in the electronic device mentioned above.

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

[0129] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the above various optional implementations;

[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, obtaining the respective corresponding in-place status of multiple hard disk backplanes, wherein the in-place status is used to indicate the current working status of the hard disk backplane;

[0132] S2, determining a reference hard disk backplane in a working state from a plurality of hard disk backplanes according to the in-position state, and obtaining hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the quantity of hard disk objects that can be installed on the reference hard disk backplane;

[0133] S3, determining target positioning description information of the target hard disk according to the backplane quantity information and hard disk quantity information of the reference hard disk backplane, wherein the backplane quantity information is used to indicate the quantity of the reference hard disk backplanes in working state, and the target positioning description information is used to indicate the installation position of the target hard disk;

[0134] S4, performing a lighting operation on the target indicator light associated with the target hard disk according to the target positioning description information.

[0135] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0136] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0137] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.

[0138] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0139] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

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

[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0142] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

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

[0144] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

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

[0146] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0147] In an 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] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0149] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0150] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0151] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0152] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0153] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A disk positioning lighting method, characterized in that: include: Obtaining respective corresponding in-place states of a plurality of hard disk backplanes, wherein the in-place states are used to indicate current working states of the hard disk backplanes; Determine a reference hard disk backplane in working state from the multiple hard disk backplanes according to the in-place state, and obtain hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the quantity of hard disk objects that can be installed on the reference hard disk backplane; Determine target location description information of the target hard disk according to the backplane quantity information of the reference hard disk backplane and the hard disk quantity information, wherein the backplane quantity information is used to indicate the quantity of the reference hard disk backplanes in working state, and the target location description information is used to indicate the installation position of the target hard disk; A lighting operation is performed on a target indicator light associated with the target hard disk according to the target location description information.

2. The method according to claim 1, characterized in that The step of obtaining the hard disk quantity information of the reference hard disk backplane includes: In the case where the server has an out-of-band management information query interface, obtaining the hard disk quantity information of the reference hard disk backplane on the server according to the out-of-band management information query interface; In the case where the server does not have the out-of-band management information query interface, the machine model information matching each of the reference hard disk backplanes is obtained respectively, wherein the machine model information records the number of hard disks that can be installed on the hard disk backplane; and the hard disk quantity information matching the reference hard disk backplane is obtained based on the machine model information.

3. The method according to claim 1, characterized in that Before determining a reference hard disk backplane in working state from a plurality of hard disk backplanes according to the in-position state, the method includes: Acquire a first field in configuration information matching the reference hard disk backplane, wherein the configuration information is used to indicate the in-place status of the hard disk backplane and the number of the hard disk objects installed on the hard disk backplane; When the first field is a first field value, determining that the hard disk backplane is in the working state; When the first field is equal to the second field value, it is determined that the hard disk backplane is in a fault state.

4. The method according to claim 3, characterized in that Obtaining the hard disk quantity information of the reference hard disk backplane includes: When the first field in the configuration information is the first field value, obtaining the second field in the configuration information; The number of hard disks installable on the reference hard disk backplane is determined according to the second field.

5. The method according to claim 1, characterized in that Before determining the target location description information of the target hard disk according to the backplane quantity information of the reference hard disk backplane and the hard disk quantity information, the method includes: According to the physical installation interface position of the reference hard disk backplane and the hard disk backplane type of the reference hard disk backplane, the hard disk backplane type includes a front hard disk backplane, a rear hard disk backplane and a built-in backplane hard disk; A hard disk number is configured for the hard disk according to the physical installation disk position of the hard disk and the hard disk type of the hard disk, wherein the hard disk type includes a front hard disk, a rear hard disk and a built-in hard disk.

6. The method according to claim 5, characterized in that The step of determining the target location description information of the target hard disk according to the backplane quantity information of the reference hard disk backplane and the hard disk quantity information includes: Determine the target hard disk backplane number of the target hard disk backplane according to the target physical installation interface position of the target hard disk backplane and the hard disk backplane type of the target hard disk backplane, wherein the target hard disk backplane is installed with the target hard disk; Determine a target hard disk number of the target hard disk according to a target physical installation docking disk position of the target hard disk; The target location description information of the target hard disk is determined according to the target hard disk backplane number that matches the target hard disk backplane and the target hard disk number that matches the target hard disk.

7. The method according to claim 6, characterized in that After the target indicator light associated with the target hard disk is turned on according to the target location description information, the method includes: In the case where the backplane status update information of the hard disk backplane is obtained within the target period, an updated hard disk backplane in the working state is determined from the multiple hard disk backplanes according to the backplane status update information, and hard disk quantity update information matching the updated hard disk backplane is obtained, wherein 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 the hard disk objects currently installable on the updated hard disk backplane; Determine the update target hard disk backplane number that matches the target hard disk backplane according to the backplane status update information of the update hard disk backplane; Determine the updated target hard disk number that matches the target hard disk on the target hard disk backplane according to the hard disk quantity update information of the updated hard disk backplane; Determine update location description information of the target hard disk on the target hard disk backplane according to the update target hard disk backplane number of the target hard disk backplane and the update target hard disk number of the target hard disk; The lighting operation is performed on the target indicator light that matches the slot where the target hard disk is located according to the updated positioning description information of the target hard disk.

8. A disk positioning lighting device, characterized in that: include: An acquisition unit, which acquires the respective corresponding in-place status of a plurality of hard disk backplanes, wherein the in-place status is used to indicate the current working status of the hard disk backplane; A first determining unit is configured to determine a reference hard disk backplane in a working state from the multiple hard disk backplanes according to the in-place state, and obtain hard disk quantity information of the reference hard disk backplane, wherein the hard disk quantity information is used to indicate the quantity of hard disk objects that can be installed on the reference hard disk backplane; A second determining unit determines target positioning description information of a target hard disk according to the backplane quantity information of the reference hard disk backplane and the hard disk quantity information, wherein the backplane quantity information is used to indicate the quantity of the 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; An execution unit performs a lighting operation on a target indicator light associated with the target hard disk according to the target location description information.

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

10. 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, the steps of the method described in any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Hard disk positioning method and device, electronic equipment and storage medium

    CN110427308A

  • Hard disk lighting method and device, electronic equipment and storage medium

    CN114443445A

  • Hard disk backboard monitoring method and device, computer equipment and storage medium

    CN118519853A

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

    CN118708129A

  • Method and system for flexible deployment and easy CPLD management of backplane

    WO2021017232A1