CN112328440A - Hard disk physical position determining method and device - Google Patents

Hard disk physical position determining method and device Download PDF

Info

Publication number
CN112328440A
CN112328440A CN202011267797.3A CN202011267797A CN112328440A CN 112328440 A CN112328440 A CN 112328440A CN 202011267797 A CN202011267797 A CN 202011267797A CN 112328440 A CN112328440 A CN 112328440A
Authority
CN
China
Prior art keywords
hard disk
corresponding relation
physical
expander
correspondence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011267797.3A
Other languages
Chinese (zh)
Other versions
CN112328440B (en
Inventor
杨学总
王培培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011267797.3A priority Critical patent/CN112328440B/en
Publication of CN112328440A publication Critical patent/CN112328440A/en
Application granted granted Critical
Publication of CN112328440B publication Critical patent/CN112328440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test

Abstract

The invention discloses a method and a device for determining the physical position of a hard disk, wherein the method comprises the following steps: enabling the hard disk expander to access all hard disks connected with the hard disk expander based on the current physical link to obtain the unique identifier of the hard disk, and generating a first corresponding relation between the physical link and the unique identifier; loading the configuration file by the hard disk expander to generate a second corresponding relation of the expected physical link and the physical position; the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander; enabling the hard disk extender to reload the configuration file based on the backboard state and the in-place signal so as to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position; and enabling the baseboard management controller to acquire the first corresponding relation and the third corresponding relation from the hard disk expander so as to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation. The invention can accurately determine the physical position of the hard disk, improve the operation and maintenance efficiency and reduce the professional requirements of the operation and maintenance.

Description

Hard disk physical position determining method and device
Technical Field
The present invention relates to the field of integrated maintenance, and more particularly, to a method and an apparatus for determining a physical location of a hard disk.
Background
Most of storage hard disks in the storage server are in a SAS/SATA interface protocol, so that an SAS controller and an SAS Expander (Expander) play a core role in the storage server, and are connected with a CPU through the SAS controller, so that the conversion between a PCIE protocol and the SAS protocol is realized, and further, the access to a physical hard disk is realized. The flexible configuration of the storage server also brings difficulties to actual operation and maintenance, positioning of hard disks and the like. The main design scheme at present is that Expander and hard disk carry out OOB (out-of-band data), rate negotiation, identity authentication and other processes through SAS/SATA protocol to obtain information of hard disk. The SAS controller obtains hard disk information from the Expander through a Discovery process. In the process, the SAS card can acquire information of the type, rate, capacity and the like of the hard disk, but cannot acquire the physical slot position of the hard disk, so that when the hard disk is maintained, depending on lighting of the hard disk, experience of maintenance personnel, especially for a completely damaged hard disk, troubleshooting is more difficult.
Aiming at the problem that the physical slot position of the hard disk is difficult to determine in the prior art, so that the maintenance is difficult, no effective solution is available at present.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for determining a physical location of a hard disk, which can accurately determine the physical location of the hard disk, improve operation and maintenance efficiency, and reduce professional requirements for operation and maintenance.
Based on the above object, a first aspect of the embodiments of the present invention provides a method for determining a physical location of a hard disk, including the following steps:
enabling the hard disk expander to access all hard disks connected with the hard disk expander based on the current physical link to obtain the unique identifier of the hard disk, and generating a first corresponding relation between the physical link and the unique identifier;
loading the configuration file by the hard disk expander to generate a second corresponding relation of the expected physical link and the physical position;
the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander;
enabling the hard disk extender to reload the configuration file based on the backboard state and the in-place signal so as to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position;
and enabling the baseboard management controller to acquire the first corresponding relation and the third corresponding relation from the hard disk expander so as to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation.
In some embodiments, the method further comprises: and accessing all the connected hard disks based on the current physical link to acquire the unique hard disk identification, and simultaneously acquiring the respective out-of-band data information, the rate negotiation information and the identity authentication information of all the hard disks.
In some embodiments, the configuration file includes an expected distribution topology of the hard disk backplane and the cable extensions; loading the configuration file to generate a second correspondence of expected physical links to physical locations comprises: the expected second correspondence is determined based on the expected distribution topology in the configuration file.
In some embodiments, causing the complex programmable logic device to detect backplane status and in-place signals of all hard disks and transmit to the hard disk extender comprises: the complex programmable logic device accesses and detects the backboard state and the in-place signal of all hard disks through the general input and output bus and further transmits the backboard state and the in-place signal to the hard disk expander through the internal integrated circuit bus.
In some embodiments, reloading the configuration file based on the backplane status and the in-place signal to update the second correspondence to the determined third correspondence of physical links and physical locations comprises:
updating an expected distribution topology in the configuration file based on the backplane status;
determining that the physical location is not inserted into the hard disk in response to determining that the physical location does not acquire the unique hard disk identification and does not receive the in-place signal;
in response to determining that the physical location does not acquire the unique hard disk identification but receives the in-place signal, determining that the physical location inserted a corrupted hard disk.
In some embodiments, causing the baseboard management controller to obtain the first correspondence and the third correspondence from the hard disk extender comprises: and connecting the baseboard management controller to the hard disk expander through the internal integrated circuit bus to acquire the first corresponding relation and the third corresponding relation.
In some embodiments, causing the baseboard management controller to output a correspondence of the unique identifier to the physical location comprises: and displaying the corresponding relation between the unique identifier and the physical position, the out-of-band data information of the hard disk where the unique identifier is located, the rate negotiation information and the identity authentication information on the interface of the out-of-band web page by the substrate management controller.
A second aspect of the embodiments of the present invention provides an apparatus for determining a physical location of a hard disk, including:
a processor; and
a memory storing program code executable by the processor, the program code when executed performing the steps of:
enabling the hard disk expander to access all hard disks connected with the hard disk expander based on the current physical link to obtain the unique identifier of the hard disk, and generating a first corresponding relation between the physical link and the unique identifier;
loading the configuration file by the hard disk expander to generate a second corresponding relation of the expected physical link and the physical position;
the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander;
enabling the hard disk extender to reload the configuration file based on the backboard state and the in-place signal so as to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position;
and enabling the baseboard management controller to acquire the first corresponding relation and the third corresponding relation from the hard disk expander so as to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation.
In some embodiments, the configuration file includes an expected distribution topology of the hard disk backplane and the cable extensions; loading the configuration file to generate a second correspondence of expected physical links to physical locations comprises: determining an expected second correspondence based on the expected distribution topology in the configuration file;
the method for detecting the backboard state and the in-place signal of all hard disks and transmitting the backboard state and the in-place signal to the hard disk expander by the complex programmable logic device comprises the following steps: the complex programmable logic device accesses and detects the backboard state and the in-place signal of all hard disks through the general input and output bus and further transmits the backboard state and the in-place signal to the hard disk expander through the internal integrated circuit bus.
In some embodiments, reloading the configuration file based on the backplane status and the in-place signal to update the second correspondence to the determined third correspondence of physical links and physical locations comprises: updating an expected distribution topology in the configuration file based on the backplane status; determining that the physical location is not inserted into the hard disk in response to determining that the physical location does not acquire the unique hard disk identification and does not receive the in-place signal; in response to determining that the physical location does not acquire the unique hard disk identification but receives the in-place signal, determining that the physical location inserted a corrupted hard disk.
The invention has the following beneficial technical effects: according to the method and the device for determining the physical position of the hard disk, the hard disk expander accesses all hard disks connected with the hard disk expander on the basis of the current physical link to obtain the unique identifier of the hard disk, and generates a first corresponding relation between the physical link and the unique identifier; loading the configuration file by the hard disk expander to generate a second corresponding relation of the expected physical link and the physical position; the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander; enabling the hard disk extender to reload the configuration file based on the backboard state and the in-place signal so as to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position; the technical scheme that the baseboard management controller obtains the first corresponding relation and the third corresponding relation from the hard disk expander to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation can accurately determine the physical position of the hard disk, improve operation and maintenance efficiency and reduce operation and maintenance professional requirements.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for determining a physical location of a hard disk according to the present invention;
FIG. 2 is a prior art connection diagram;
fig. 3 is a connection relationship diagram of the hard disk physical location determination method provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
Based on the above object, a first aspect of the embodiments of the present invention provides an embodiment of a method for determining a physical location of a hard disk, which improves operation and maintenance efficiency and reduces professional requirements for operation and maintenance. Fig. 1 is a schematic flow chart of a hard disk physical location determining method provided by the present invention.
The method for determining the physical position of the hard disk, as shown in fig. 1, includes the following steps:
step S101, enabling a hard disk expander to access all hard disks connected with the hard disk expander based on a current physical link to obtain a unique hard disk identifier, and generating a first corresponding relation between the physical link and the unique identifier;
step S103, loading the configuration file by the hard disk expander to generate a second corresponding relation between an expected physical link and a physical position;
step S105, the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander;
step S107, the hard disk expander reloads the configuration file based on the backboard state and the in-place signal to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position;
step S109, the baseboard management controller acquires the first corresponding relationship and the third corresponding relationship from the hard disk extender to determine and output a corresponding relationship between the unique identifier and the physical location based on the first corresponding relationship and the third corresponding relationship.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. Embodiments of the computer program may achieve the same or similar effects as any of the preceding method embodiments to which it corresponds.
In some embodiments, the method further comprises: and accessing all the connected hard disks based on the current physical link to acquire the unique hard disk identification, and simultaneously acquiring the respective out-of-band data information, the rate negotiation information and the identity authentication information of all the hard disks.
In some embodiments, the configuration file includes an expected distribution topology of the hard disk backplane and the cable extensions; loading the configuration file to generate a second correspondence of expected physical links to physical locations comprises: the expected second correspondence is determined based on the expected distribution topology in the configuration file.
In some embodiments, causing the complex programmable logic device to detect backplane status and in-place signals of all hard disks and transmit to the hard disk extender comprises: the complex programmable logic device accesses and detects the backboard state and the in-place signal of all hard disks through the general input and output bus and further transmits the backboard state and the in-place signal to the hard disk expander through the internal integrated circuit bus.
In some embodiments, reloading the configuration file based on the backplane status and the in-place signal to update the second correspondence to the determined third correspondence of physical links and physical locations comprises:
updating an expected distribution topology in the configuration file based on the backplane status;
determining that the physical location is not inserted into the hard disk in response to determining that the physical location does not acquire the unique hard disk identification and does not receive the in-place signal;
in response to determining that the physical location does not acquire the unique hard disk identification but receives the in-place signal, determining that the physical location inserted a corrupted hard disk.
In some embodiments, causing the baseboard management controller to obtain the first correspondence and the third correspondence from the hard disk extender comprises: and connecting the baseboard management controller to the hard disk expander through the internal integrated circuit bus to acquire the first corresponding relation and the third corresponding relation.
In some embodiments, causing the baseboard management controller to output a correspondence of the unique identifier to the physical location comprises: and displaying the corresponding relation between the unique identifier and the physical position, the out-of-band data information of the hard disk where the unique identifier is located, the rate negotiation information and the identity authentication information on the interface of the out-of-band web page by the substrate management controller.
Referring to fig. 2 in the prior art, a CPU is connected to an SAS controller via PCIE, and the SAS controller performs protocol conversion between PCIE and SAS/SATA to access and control a hard disk. Expander is an expansion of SAS PHY (physical link) of the SAS controller, and realizes that the SAS controller can support more hard disks under the condition of limited SAS PHY. And the SAS PHY corresponding to the Expander is connected with the hard disk, and OOB, rate negotiation, index and other processes are carried out on the hard disk through the SAS/SATA protocol to acquire information of the hard disk. After the address space of the PCIE is allocated by the BIOS, the SAS controller already obtains information of the hard disk from the Expander through the Discovery process, and in this process, the SAS card can obtain information of the model, rate, capacity, and the like of the hard disk.
The BMC interacts with the SAS controller through I2C, and information acquired by the BMC on the hard disk is consistent with information acquired by the SAS controller but not consistent with an actual physical slot position. Since the SAS controller identifies that the hard disk is random in the Discovery process, the hard disk which is preferentially discovered is allocated to Slot1, and then allocated to slots 2,3,4,5, and the like in sequence. The SAS PHY of the Expander corresponds to the actual physical slot position of the hard disk, but different PHYs of the Expander can be used in the insertion method of the hard disk with different configurations, and the positions of the PHYs of the Expander are not consistent with the actual physical slot position due to the same different wiring modes of the Expander.
On a storage server with flexible configuration, the actual physical slot position display of a hard disk always causes confusion to manufacturers and operators, the confusion is solved by lighting, setting a fixed disk symbol under an OS (operating system) and the like, but aiming at a completely damaged hard disk, the disk symbol cannot be distributed under the OS, the mode of the fixed disk symbol is adopted, the same configuration is adopted, different machines have difference due to the difference of identifying the hard disk, and the uniqueness is not realized under the condition that a plurality of machines operate; the lighting mode is limited by the acquisition of the drive letter and the operation of manual or distributed software.
The following further illustrates embodiments of the invention according to the example shown in fig. 3. Firstly, an SAS PHY corresponding to the Expander is connected with the hard disk, and OOB, rate negotiation, index and other processes are carried out on the SAS/SATA protocol and the hard disk to obtain information of the hard disk. At this time, the unique identifier of the hard disk, such as SN, SAS address or UUID, needs to be obtained.
After the Expander acquires the unique information of the hard disk (in this embodiment, an SAS address is taken as an example), the Expander confirms the hard disk information on the corresponding SAS PHY, establishes a table of the SAS PHY and the SAS address of the hard disk, and confirms the corresponding relationship.
The expansion aiming at the Expander is mainly hard disk backboard or cable expansion, after the configuration of the storage server is selected, the distribution topology of the hard disk can be confirmed, and then a corresponding relation table of the Expander PHY and the hard disk physical position can be established. However, at this time, the information of the hard disk, the information of the CPLD, and the like are not obtained yet, so that the correspondence relationship is not correct after the Expander initialization is completed.
And then, acquiring information of different backplanes through the CPLD, confirming the current configuration by the in-place information of the hard disk, and communicating with the Expander through I2C. Specifically, the CPLD detects the state of the hard disk backboard through the GPIO, confirms the configuration of the storage server, and corresponds to the configuration file in the Expander; and the CPLD detects the in-place information of the hard disk through the GPIO, confirms that the actual physical slot is in place, informs the Expander, and processes the situation that the SAS PHY does not acquire the hard disk information to distinguish the situation that the hard disk fails or is not inserted into the hard disk.
After the Expander acquires the information of the CPLD, the corresponding physical configuration of the storage server is decoded, the corresponding configuration file is reloaded (the part corresponding to the physical position of the SAS PHY and the hard disk is loaded), the acquired hard disk information corresponds to the configuration file, the hard disk is distributed and processed aiming at the fault hard disk or not, and then the corresponding relation between the SAS PHY and the physical slot position is reconfirmed.
The BMC displays the actual physical slot position and the corresponding hard disk information on a BMC Web interface through interaction with the Expander.
As can be seen from the foregoing embodiments, in the method for determining a physical location of a hard disk provided in an embodiment of the present invention, a hard disk expander accesses all hard disks connected thereto based on a current physical link to obtain a unique identifier of the hard disk, and generates a first corresponding relationship between the physical link and the unique identifier; loading the configuration file by the hard disk expander to generate a second corresponding relation of the expected physical link and the physical position; the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander; enabling the hard disk extender to reload the configuration file based on the backboard state and the in-place signal so as to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position; the technical scheme that the baseboard management controller obtains the first corresponding relation and the third corresponding relation from the hard disk expander to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation can accurately determine the physical position of the hard disk, improve operation and maintenance efficiency and reduce operation and maintenance professional requirements.
It should be particularly noted that, the steps in the embodiments of the hard disk physical location determining method described above may be mutually intersected, replaced, added, or deleted, and therefore, the hard disk physical location determining method based on these reasonable permutation and combination transformations shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the described embodiments.
In view of the foregoing, a second aspect of the embodiments of the present invention provides an embodiment of a hard disk physical location determining apparatus for improving operation and maintenance efficiency and reducing professional requirements for operation and maintenance. The hard disk physical position determining device comprises:
a processor; and
a memory storing program code executable by the processor, the program code when executed performing the steps of:
enabling the hard disk expander to access all hard disks connected with the hard disk expander based on the current physical link to obtain the unique identifier of the hard disk, and generating a first corresponding relation between the physical link and the unique identifier;
loading the configuration file by the hard disk expander to generate a second corresponding relation of the expected physical link and the physical position;
the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander;
enabling the hard disk extender to reload the configuration file based on the backboard state and the in-place signal so as to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position;
and enabling the baseboard management controller to acquire the first corresponding relation and the third corresponding relation from the hard disk expander so as to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation.
In some embodiments, the configuration file includes an expected distribution topology of the hard disk backplane and the cable extensions; loading the configuration file to generate a second correspondence of expected physical links to physical locations comprises: determining an expected second correspondence based on the expected distribution topology in the configuration file;
the method for detecting the backboard state and the in-place signal of all hard disks and transmitting the backboard state and the in-place signal to the hard disk expander by the complex programmable logic device comprises the following steps: the complex programmable logic device accesses and detects the backboard state and the in-place signal of all hard disks through the general input and output bus and further transmits the backboard state and the in-place signal to the hard disk expander through the internal integrated circuit bus.
In some embodiments, reloading the configuration file based on the backplane status and the in-place signal to update the second correspondence to the determined third correspondence of physical links and physical locations comprises: updating an expected distribution topology in the configuration file based on the backplane status; determining that the physical location is not inserted into the hard disk in response to determining that the physical location does not acquire the unique hard disk identification and does not receive the in-place signal; in response to determining that the physical location does not acquire the unique hard disk identification but receives the in-place signal, determining that the physical location inserted a corrupted hard disk.
As can be seen from the foregoing embodiments, in the hard disk physical location determining apparatus provided in the embodiments of the present invention, the hard disk expander accesses all hard disks connected thereto based on the current physical link to obtain the unique identifier of the hard disk, and generates the first corresponding relationship between the physical link and the unique identifier; loading the configuration file by the hard disk expander to generate a second corresponding relation of the expected physical link and the physical position; the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander; enabling the hard disk extender to reload the configuration file based on the backboard state and the in-place signal so as to update the second corresponding relation into a third corresponding relation between the determined physical link and the physical position; the technical scheme that the baseboard management controller obtains the first corresponding relation and the third corresponding relation from the hard disk expander to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation can accurately determine the physical position of the hard disk, improve operation and maintenance efficiency and reduce operation and maintenance professional requirements.
It should be particularly noted that, the above-mentioned embodiment of the hard disk physical location determining apparatus adopts the embodiment of the hard disk physical location determining method to specifically describe the working process of each module, and those skilled in the art can easily think that these modules are applied to other embodiments of the hard disk physical location determining method. Of course, since the steps in the embodiment of the method for determining the physical location of a hard disk can be mutually intersected, replaced, added, and deleted, the device for determining the physical location of a hard disk, which is transformed by reasonable permutation and combination, shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the embodiment.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for determining the physical position of a hard disk is characterized by comprising the following steps:
enabling a hard disk expander to access all hard disks connected with the hard disk expander based on a current physical link to obtain a unique hard disk identifier, and generating a first corresponding relation between the physical link and the unique identifier;
causing the hard disk extender to load a configuration file to generate a second correspondence of the physical link and the physical location that is expected;
the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander;
causing the hard disk extender to reload a configuration file based on the backplane status and the in-place signal to update the second correspondence to a determined third correspondence of the physical link and the physical location;
and enabling a baseboard management controller to acquire the first corresponding relation and the third corresponding relation from the hard disk expander so as to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation.
2. The method of claim 1, further comprising: and accessing all the connected hard disks based on the current physical link to acquire the unique hard disk identification, and simultaneously acquiring the respective out-of-band data information, the rate negotiation information and the identity authentication information of all the hard disks.
3. The method of claim 1, wherein the configuration file comprises an expected distribution topology of hard disk backplanes and cable extensions;
loading a configuration file to generate a second expected correspondence of the physical link to the physical location comprises: determining the second correspondence expected based on an expected distribution topology in the profile.
4. The method of claim 3, wherein causing a complex programmable logic device to detect backplane status and in-place signals of all hard disks and transmit to the hard disk extender comprises: the complex programmable logic device accesses and detects the backboard state and the on-site signal of all hard disks through a general input/output bus and further transmits the backboard state and the on-site signal to the hard disk expander through an internal integrated circuit bus.
5. The method of claim 3, wherein reloading the configuration file based on the backplane status and the in-place signal to update the second correspondence to the determined third correspondence of the physical link to the physical location comprises:
updating the expected distribution topology in the configuration file based on the backplane status;
determining that the physical location is not plugged into a hard disk in response to determining that the physical location does not acquire the unique hard disk identification and that the in-place signal is not received;
in response to determining that the physical location does not acquire the unique hard disk identification but receives the in-place signal, determining that a damaged hard disk is inserted by the physical location.
6. The method of claim 1, wherein causing a baseboard management controller to obtain the first and third correspondences from the hard disk extender comprises: and connecting the baseboard management controller to the hard disk expander through an internal integrated circuit bus to acquire the first corresponding relation and the third corresponding relation.
7. The method of claim 2, wherein causing a baseboard management controller to output the correspondence of the unique identifier to the physical location comprises: and displaying the corresponding relation between the unique identifier and the physical position, the out-of-band data information of the hard disk where the unique identifier is located, the rate negotiation information and the identity authentication information on an out-of-band web page interface by the substrate management controller.
8. An apparatus for determining a physical location of a hard disk, comprising:
a processor; and
a memory storing program code executable by the processor, the program code when executed performing the steps of:
enabling a hard disk expander to access all hard disks connected with the hard disk expander based on a current physical link to obtain a unique hard disk identifier, and generating a first corresponding relation between the physical link and the unique identifier;
causing the hard disk extender to load a configuration file to generate a second correspondence of the physical link and the physical location that is expected;
the complex programmable logic device detects the backboard state and in-place signal of all hard disks and transmits the backboard state and in-place signal to the hard disk expander;
causing the hard disk extender to reload a configuration file based on the backplane status and the in-place signal to update the second correspondence to a determined third correspondence of the physical link and the physical location;
and enabling a baseboard management controller to acquire the first corresponding relation and the third corresponding relation from the hard disk expander so as to determine and output the corresponding relation between the unique identifier and the physical position based on the first corresponding relation and the third corresponding relation.
9. The apparatus of claim 8, wherein the configuration file comprises an expected distribution topology of hard disk backplanes and cable extensions; loading a configuration file to generate a second expected correspondence of the physical link to the physical location comprises: determining the second expected correspondence based on an expected distribution topology in the profile;
the method for enabling the complex programmable logic device to detect the backboard states and the in-place signals of all hard disks and transmit the backboard states and the in-place signals to the hard disk expander comprises the following steps: the complex programmable logic device accesses and detects the backboard state and the on-site signal of all hard disks through a general input/output bus and further transmits the backboard state and the on-site signal to the hard disk expander through an internal integrated circuit bus.
10. The apparatus of claim 9, wherein reloading the configuration file based on the backplane status and the in-place signal to update the second correspondence to the determined third correspondence of the physical link to the physical location comprises: updating the expected distribution topology in the configuration file based on the backplane status; determining that the physical location is not plugged into a hard disk in response to determining that the physical location does not acquire the unique hard disk identification and that the in-place signal is not received; in response to determining that the physical location does not acquire the unique hard disk identification but receives the in-place signal, determining that a damaged hard disk is inserted by the physical location.
CN202011267797.3A 2020-11-13 2020-11-13 Hard disk physical position determining method and device Active CN112328440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011267797.3A CN112328440B (en) 2020-11-13 2020-11-13 Hard disk physical position determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011267797.3A CN112328440B (en) 2020-11-13 2020-11-13 Hard disk physical position determining method and device

Publications (2)

Publication Number Publication Date
CN112328440A true CN112328440A (en) 2021-02-05
CN112328440B CN112328440B (en) 2023-01-06

Family

ID=74317592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011267797.3A Active CN112328440B (en) 2020-11-13 2020-11-13 Hard disk physical position determining method and device

Country Status (1)

Country Link
CN (1) CN112328440B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672537A (en) * 2021-09-03 2021-11-19 无锡众星微系统技术有限公司 SATA (Serial advanced technology attachment) equipment hot plug management method and device
CN113867810A (en) * 2021-08-30 2021-12-31 苏州浪潮智能科技有限公司 Method, device, terminal and storage medium for checking server hard disk topology
CN114115728A (en) * 2021-10-29 2022-03-01 苏州浪潮智能科技有限公司 Convenient method and device for hard disk positioning
CN114444137A (en) * 2021-12-17 2022-05-06 苏州浪潮智能科技有限公司 Method, system, equipment and medium for positioning expander of cabinet where hard disk is located
CN114615357A (en) * 2022-03-10 2022-06-10 无锡众星微系统技术有限公司 Method and device for establishing SATA physical link

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352585A (en) * 2020-02-23 2020-06-30 苏州浪潮智能科技有限公司 Method and device for improving performance of multiple hard disks based on expander

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352585A (en) * 2020-02-23 2020-06-30 苏州浪潮智能科技有限公司 Method and device for improving performance of multiple hard disks based on expander

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867810A (en) * 2021-08-30 2021-12-31 苏州浪潮智能科技有限公司 Method, device, terminal and storage medium for checking server hard disk topology
CN113867810B (en) * 2021-08-30 2023-07-14 苏州浪潮智能科技有限公司 Method, device, terminal and storage medium for checking server hard disk topology
CN113672537A (en) * 2021-09-03 2021-11-19 无锡众星微系统技术有限公司 SATA (Serial advanced technology attachment) equipment hot plug management method and device
CN114115728A (en) * 2021-10-29 2022-03-01 苏州浪潮智能科技有限公司 Convenient method and device for hard disk positioning
CN114115728B (en) * 2021-10-29 2023-08-25 苏州浪潮智能科技有限公司 Convenient method and device for positioning hard disk
CN114444137A (en) * 2021-12-17 2022-05-06 苏州浪潮智能科技有限公司 Method, system, equipment and medium for positioning expander of cabinet where hard disk is located
CN114444137B (en) * 2021-12-17 2024-02-02 苏州浪潮智能科技有限公司 Method, system, equipment and medium for positioning cabinet expander where hard disk is located
CN114615357A (en) * 2022-03-10 2022-06-10 无锡众星微系统技术有限公司 Method and device for establishing SATA physical link

Also Published As

Publication number Publication date
CN112328440B (en) 2023-01-06

Similar Documents

Publication Publication Date Title
CN112328440B (en) Hard disk physical position determining method and device
CN110879712B (en) Cloud data center physical host installation method and related device
CN104615455B (en) A kind of the IPMC program remote upgrading methods and device of ATCA frameworks
CN101989205B (en) Software system upgrading method for universal serial bus (USB) equipment
CN111143256B (en) Method and device for reading field replaceable unit information
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
CN104679685B (en) Baseboard management controller access method
CN113434202B (en) Device starting method and device, electronic device and computer storage medium
CN111831345A (en) Management method and device for server hard disk backboard, storage medium and equipment
CN111294413A (en) Method, device and readable medium for determining Internet Protocol (IP) address
CN113406991B (en) Clock management method and device, electronic equipment and storage medium
CN113360437B (en) Disk sequence adjusting device, method, equipment and storage medium of hard disk
CN110515635A (en) Mainboard VR firmware upgrade method, device, server and readable storage medium storing program for executing
US20150220350A1 (en) Information processing device and method for managing information processing device
CN111637079A (en) Mainboard, fan control system and method
CN115129249A (en) SAS link topology identification management method, system, terminal and storage medium
CN116627729A (en) External connection cable, external connection cable in-place detection device, startup self-checking method and system
CN114936033A (en) Cluster firmware upgrading system and intelligent super computing cluster
CN113986317A (en) Method for safely updating BIOS version of mainboard by BMC based on firmware upgrading
CN107239300A (en) A kind of intelligent cabinet RMC and MP batch refreshing methods
CN114003528A (en) OCP switching card, switching system and switching method
CN113835762B (en) Method and system for updating default configuration of hard disk backboard
CN115834379A (en) Server network card upgrading method, device, equipment and storage medium
CN114443150B (en) Method, system, terminal and storage medium for synchronizing factory information of switch
CN113886190B (en) Device management system, method, device and storage medium for server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant