CN113835629A - Hard disk management method and server - Google Patents

Hard disk management method and server Download PDF

Info

Publication number
CN113835629A
CN113835629A CN202111070782.2A CN202111070782A CN113835629A CN 113835629 A CN113835629 A CN 113835629A CN 202111070782 A CN202111070782 A CN 202111070782A CN 113835629 A CN113835629 A CN 113835629A
Authority
CN
China
Prior art keywords
hard disk
cpld
bmc
interface
register
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.)
Pending
Application number
CN202111070782.2A
Other languages
Chinese (zh)
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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202111070782.2A priority Critical patent/CN113835629A/en
Publication of CN113835629A publication Critical patent/CN113835629A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Abstract

The application provides a hard disk management method and a server. The server comprises a BMC, a backboard and a plurality of hard disks, wherein the hard disks are inserted through ports on the backboard and are connected with the BMC through CPLDs inserted into the backboard, each CPLD is preconfigured with a first register and a second register, the first register is used for storing backboard numbers of the backboard where the hard disks are located, and the second register is used for storing port numbers of the backboard ports where the hard disks are located. In the method, the BMC reads hard disk parameters from a target hard disk; reading the number of the backboard from a first register of the target CPLD, and reading the number of the port from a second register of the target CPLD, wherein the target CPLD is the CPLD connected with the target hard disk; and then, recording the read corresponding relation among the backboard number, the port number and the hard disk parameters so as to improve the accuracy of hard disk management.

Description

Hard disk management method and server
Technical Field
The present application relates to the field of computer technologies, and in particular, to a hard disk management method and a server.
Background
A mass storage server (hereinafter referred to as a server) generally includes at least one backplane and a plurality of hard disks, each hard disk being inserted through a port on the backplane. The hard disk inserted into the backplane is connected to different channels of the routing module in the server through a physical cable, and then the routing module is controlled by a Baseboard Management Controller (BMC) to switch between different channels, so as to manage different hard disks.
In hard disk management, in addition to the parameters of the hard disk itself (e.g., capacity, rotation speed, access time, etc.), the mounting position information of the hard disk is also important. At present, the determination of the hard disk installation position mainly depends on the fixed wiring relationship between the hard disk and the routing module, for example, a cable of the hard disk inserted through the port 1 is fixedly connected to the channel 1 of the routing module; the cable of the hard disk inserted through the port 2 is fixedly connected to the channel 2 of the routing module. Thus, when the BMC accesses the hard disk through the channel 2, the hard disk can be directly determined to be positioned on the port 2.
However, in actual wiring, a cable is often connected in a wrong manner, for example, a cable of a hard disk inserted through the port 1 is connected to the channel 2, and a cable of a hard disk inserted through the port 2 is connected to the channel 1. At this time, if the BMC still determines the hard disk installation location according to the pre-planned fixed wiring relationship, the wrong management information may be obtained, for example, the hard disk accessed through the channel 1 is mistakenly considered to be located on the port 1 (actually located on the port 2), which results in a hard disk management error.
Disclosure of Invention
In view of the above, the present application provides a hard disk management method and a server, so as to improve the accuracy of hard disk management.
In order to achieve the purpose of the application, the application provides the following technical scheme:
in a first aspect, the present application provides a hard disk management method, which is applied to a server, where the server includes a BMC, at least one backplane, and a plurality of hard disks, each hard disk is inserted through a port on the backplane and connected to the BMC through a Complex Programmable Logic Device (CPLD) inserted into the backplane, each CPLD is preconfigured with a first register and a second register, the first register is used to store a backplane number of the backplane where the hard disk is located, and the second register is used to store a port number of the port where the hard disk is located, where the method includes:
the BMC reads the hard disk parameters from the target hard disk;
the BMC reads the number of the backboard from a first register of a target CPLD, and reads the number of a port from a second register of the target CPLD, wherein the target CPLD is a CPLD connected with the port of the target hard disk;
and the BMC records the read corresponding relation among the backboard number, the port number and the hard disk parameter.
Optionally, the BMC includes at least one first interface corresponding to each backplane, where the first interface is an interface on the BMC connected to the CPLD on the backplane, and before the BMC reads the backplane number from the first register of the target CPLD, the method further includes:
for each first interface, the BMC determines the backboard corresponding to the first interface according to the connection relation between the distributed interface and the CPLD on the backboard;
and the BMC writes the backboard number of the backboard corresponding to the first interface into the first register of the CPLD connected with the first interface through the first interface.
Optionally, before the BMC reads the port number from the second register of the target CPLD, the method further includes:
and when the target CPLD detects a hardware signal of the port where the target hard disk is located, writing the port number of the port into a second register in the CPLD.
Optionally, the BMC further includes at least one second interface corresponding to each backplane, where the second interface is an interface connected to the hard disk on the backplane and the CPLD through the routing module, and the BMC reads the backplane number from the first register of the target CPLD and the port number from the second register of the target CPLD, and the interface includes:
and the BMC reads the backboard number from the first register of the target CPLD and reads the port number from the second register of the target CPLD by accessing the second interface of the target hard disk.
Optionally, after the BMC records the read corresponding relationship between the backplane number, the port number, and the hard disk parameter, the method further includes:
and the BMC pushes the corresponding relation among the backboard number, the port number and the hard disk parameter to a BMC management interface.
In a second aspect, the present application provides a server, where the server includes a BMC, at least one backplane, and a plurality of hard disks, each hard disk is inserted through a port on the backplane and connected to the BMC through a CPLD inserted on the backplane, each CPLD is preconfigured with a first register and a second register, the first register is used to store a backplane number of the backplane where the hard disk is located, the second register is used to store a port number of the port where the hard disk is located,
the BMC is used for reading hard disk parameters from the target hard disk;
the BMC is further used for reading a backboard number from a first register of a target CPLD and a port number from a second register of the target CPLD aiming at a target hard disk which is accessed currently, wherein the target CPLD is a CPLD connected with a port where the target hard disk is located;
the BMC is further used for recording the corresponding relation among the read backboard number, the read port number and the hard disk parameter.
Optionally, the BMC includes at least one first interface corresponding to each backplane, where the first interface is an interface on the BMC connected to the CPLD on the backplane,
the BMC is further used for determining the backboard corresponding to each first interface according to the connection relation between the distributed interfaces and the CPLD on the backboard;
the BMC is further configured to write a backplane number of the backplane corresponding to the first interface into a first register of the CPLD connected to the first interface through the first interface.
Optionally, the target CPLD is configured to write a port number of a port to a second register in the CPLD when detecting a hardware signal of the port where the target hard disk is located.
Optionally, the BMC further includes at least one second interface corresponding to each backplane, where the second interface is an interface connected to the hard disk and the CPLD on the backplane through the routing module on the BMC,
the BMC is specifically configured to read a backplane number from a first register of the target CPLD and read a port number from a second register of the target CPLD by accessing a second interface of the target hard disk.
Optionally, the BMC is further configured to push a corresponding relationship between the backplane number, the port number, and the hard disk parameter to a BMC management interface.
As can be seen from the above description, in the embodiment of the present application, since the relationship between the backplane and the CPLD is fixed, and the connection relationship between the CPLD and the port is fixed (connected by the printed lines on the backplane), the CPLD can accurately acquire the backplane information where the hard disk is located and the port information, and store the backplane information and the port information in the register of the CPLD, and the BMC can accurately determine the corresponding relationship between the hard disk parameters and the hard disk positions by reading the hard disk parameters in the hard disk and reading the backplane number and the port number in the register of the CPLD, thereby improving the accuracy of hard disk management.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 2 is a flowchart of a hard disk management method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an implementation procedure for updating a first register according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the embodiments of the present application, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the negotiation information may also be referred to as second information, and similarly, the second information may also be referred to as negotiation information without departing from the scope of the embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, a schematic structural diagram of a server according to an embodiment of the present application is shown. The server comprises 2 back boards, namely a back board 1 and a back board 2; each backboard is provided with 3 ports, namely port 1-port 3; each port can be inserted with a hard disk, for example, the hard disk 1 to the hard disk 3 are respectively inserted into the port 1 to the port 3 of the backboard 1, and the hard disk 4 to the hard disk 6 are respectively inserted into the port 1 to the port 3 of the backboard 2.
After the hard disk is inserted into the port, the hard disk is electrically connected with the CPLD through a printed line (also called a PCB line) between the port and the CPLD, and the CPLD can also be directly and indirectly connected with the BMC (through a routing module).
Here, it should be noted that the CPLD and the routing module are usually connected by a physical cable, which is a data cable of a hard disk. That is to say, the data line of the hard disk is connected to the routing module in addition to the CPLD, and the physical cable of each hard disk is correspondingly connected to one channel of the routing module. For example, a cable 1 of the hard disk 1 is connected to a channel 1 of the routing module 1; the cable 2 of the hard disk 2 is connected to the channel 2 of the routing module 1; and so on.
Referring to fig. 2, a flowchart of a hard disk management method according to an embodiment of the present application is shown, where the flowchart may include the following steps:
step 201, the BMC reads the hard disk parameters from the target hard disk.
Here, the target hard disk may be any hard disk currently accessed by the BMC. It is to be understood that the reference to the target hard disk is merely a name for convenience of distinction and is not intended to be limiting.
The hard disk parameters include but are not limited to the hard disk capacity, the hard disk rotation speed, the access time and other relevant information of the hard disk.
Step 202, the BMC reads the backplane number from the first register of the target CPLD and the port number from the second register of the target CPLD.
In the embodiment of the application, each CPLD is preconfigured with two registers, namely a first register and a second register. It should be understood that the first register and the second register are named for convenience of distinguishing and are not used for limitation.
The first register is used for storing the backboard number of the backboard where the hard disk is located; the second register is used for storing the port number of the port where the hard disk is located.
When the BMC accesses the target hard disk, the value of the first register in the CPLD (hereinafter referred to as the target CPLD) connected with the port of the target hard disk is updated to the backboard number of the backboard where the target hard disk is located, and the value of the second register in the target CPLD is updated to the port number of the port where the target hard disk is located.
Step 203, the BMC records the read corresponding relationship between the backplane number, the port number, and the hard disk parameter.
For example, the BMC reads the hard disk parameter (denoted as parameter 1) of the hard disk 1 through step 201; by reading that the backplane number of the backplane where the hard disk 1 is located is 1 and the port number of the port where the hard disk 1 is located is 1 in step 202, the corresponding relationship shown in table 1 can be generated:
hard disk parameters Back plate numbering Port numbering
Parameter 1 1 1
TABLE 1
Thus, the flow shown in fig. 2 is completed.
As can be seen from the flow shown in fig. 2, in the embodiment of the present application, since the relationship between the backplane and the CPLD is fixed, and the connection relationship between the CPLD and the port is fixed (connected by the printed lines on the backplane), the CPLD can accurately acquire the backplane information where the hard disk is located and the port information, and store the backplane information and the port information in the register of the CPLD, and the BMC can accurately determine the corresponding relationship between the hard disk parameter and the hard disk position by reading the hard disk parameter in the hard disk and reading the backplane number and the port number in the register of the CPLD, thereby improving the accuracy of hard disk management.
The process of updating the first register in the CPLD is described below. Referring to fig. 3, an implementation flow for updating the first register is shown in the embodiment of the present application.
As shown in fig. 3, the process may include the following steps:
step 301, for each first interface, the BMC determines the backplane corresponding to the first interface according to the connection relationship between the laid interface and the backplane CPLD.
Here, the first interface is an interface connected to the backplane CPLD on the BMC. For example, in fig. 1, interface 1 and interface 3. It is to be understood that the first interface is named merely for convenience of distinction and is not intended to be limiting.
And the BMC determines the backboard corresponding to each first interface according to the connection relation between the distributed interfaces and the backboard CPLD. For example, in fig. 1, the distributed interface 1 is connected to the CPLD1 on the backplane 1; interface 3 is connected to CPLD2 on backplane 2, and therefore, it can be determined that interface 1 corresponds to backplane 1 and interface 3 corresponds to backplane 2.
Step 302, the BMC writes the backplane number of the backplane corresponding to the first interface to the first register of the CPLD connected to the first interface through the first interface.
Still taking interface 1 and interface 3 as examples, after determining that the backplane corresponding to interface 1 is backplane 1 through step 301, the BMC may write the backplane number of backplane 1 into the first register of CPLD1 connected to interface 1 through interface 1; similarly, after determining that the backplane corresponding to the interface 3 is the backplane 2 in step 301, the BMC may write the backplane number of the backplane 2 into the first register of the CPLD2 connected to the interface 3 through the interface 3.
The flow shown in fig. 3 is completed.
The setting of the first register in the CPLD can be realized by the flow shown in fig. 3. Here, it should be noted that, since the backplane to which the CPLD belongs is fixed, for example, CPLD1 is fixed on backplane 1, and CPLD2 is fixed on backplane 2, the BMC only needs to set the value of the first register (backplane number) in the CPLD once at the time of startup.
The process of updating the second register in the CPLD is described below.
As an embodiment, when the target CPLD detects a hardware signal (for example, a hard disk bit signal, a data signal, etc.) of a port where the target hard disk is located, a port number of the port where the hardware signal is detected is written into the second register of the present CPLD.
Here, it should be noted that, the CPLD is connected to each port on the backplane through a printed line on the backplane, so that when the select module gates the port where the target hard disk is located, the target CPLD can detect (sense) a hardware signal on the port, determine that the port is the port where the target hard disk is located, and write the port number of the port into the second register of the CPLD.
It can be seen that, in the embodiment of the present application, the port number in the second register changes with different access to the hard disk (different port where the hard disk is located), so as to ensure that the port number of the port where the hard disk being accessed is located is always stored in the second register.
As an embodiment, the BMC further includes at least one second interface corresponding to each backplane, where the second interface is an interface connected to the hard disk and the CPLD on the backplane through the routing module on the BMC. It is to be understood that the reference to the second interface is merely a nomenclature for ease of distinction and is not intended to be limiting.
For example, in fig. 1, an interface 2 and an interface 4, where the interface 2 is connected to each hard disk and the CPLD1 on the backplane 1 through the routing module 1; the interface 4 is connected with each hard disk on the backplane 2 and the CPLD2 through the routing module 2.
In addition, as described above, the BMC is further connected to the CPLD through the first interface, and writes the backplane number into the first register of the CPLD through the first interface. For example, in fig. 1, the BMC writes the backplane number of backplane 1 to the first register of CPLD1 through interface 1; the backplane number of backplane 2 is written to the first register of CPLD2 through interface 3.
It can be seen that, in the present application, the same CPLD and the two interfaces (the first interface and the second interface) on the BMC have a connection relationship. For example, the CPLD1 has a connection relationship with an interface 1 (first interface) and an interface 2 (second interface) on the BMC; the CPLD2 is connected to interface 3 (first interface) and interface 4 (second interface) on the BMC. As an example, the first interface and the second interface of the same CPLD connection may both be Integrated Circuit bus (IIC) interfaces.
In the embodiment of the present application, the CPLD itself may be simulated as two devices (e.g., IIC devices) respectively presented on the corresponding first interface and the second interface.
Based on this, after the BMC writes data (backplane number) into the first register of the CPLD through the first interface, the BMC can read the data of the first register in the CPLD through the second interface connected to the CPLD.
Therefore, in step 202, the BMC may read the backplane number from the first register of the target CPLD and the port number from the second register of the target CPLD by accessing the second interface of the target hard disk. For example, in fig. 1, the BMC may read the backplane number previously written to the first register in CPLD1 through interface 1 and read the port number in the second register by accessing interface 2 of hard disk 2.
In addition, it should be added that the BMC may push the corresponding relationship between the hard disk parameter recorded in step 203 and the backplane number and the port number to the BMC management interface for display, so that the user can intuitively perceive the corresponding relationship between the hard disk parameter and the hard disk installation position.
The following description will be made by taking the server shown in fig. 1 as an example.
As an embodiment, the hard disk inserted by the server may be a Non-Volatile Memory standard (NVMe) hard disk. The BMC included in the server can manage each hard disk through IIC interfaces (interface 1-interface 4).
The BMC is connected with the CPLD1 through an interface 1 and an interface 2, and the CPLD1 is simulated into two IIC devices which are respectively displayed on the interface 1 and the interface 2; the BMC is connected with the CPLD2 through the interface 3 and the interface 4, and the CPLD2 is simulated to be two IIC devices respectively presented on the interface 3 and the interface 4.
In addition, CPLD1 and CPLD2 are both configured with two registers, which are respectively marked as REG [0] and REG [1], wherein REG [0] is used for storing the backplane number; REG [1] is used to store the port number.
When the BMC is started, the BMC may write a backplane number, for example, 1, of the backplane 1 into REG [0] of the CPLD1 through the interface 1; the backplane number of backplane 2, e.g., 2, is written into REG [0] of CPLD2 through interface 3.
When the BMC accesses the hard disk 5 through the interface 4 (i.e., the routing module 2 gates the port 2 corresponding to the channel 1), the CPLD2 may sense a hardware signal on the port 2, and therefore, it is determined that the currently accessed hard disk is located on the port 2, the CPLD2 writes the port number, e.g., 2, of the port 2 into the REG [1] of the CPLD 2.
The BMC reads a hard disk parameter (marked as parameter 2) in the hard disk 5; and reading REG [0] and REG [1] in the CPLD2 through the interface 4 to obtain the backplane number "2" and the port number "2", recording the corresponding relationship between the parameter 2 and the backplane number "2" and the port number "2" by the BMC, and pushing the corresponding relationship to the BMC management interface for display, so that a user can intuitively perceive the corresponding relationship between the hard disk parameter of the hard disk 5 and the installation position (the port 2 on the backplane 2) of the hard disk 5.
It can be seen from the above description that no matter which channel of the routing module 2 the cable 5 corresponding to the hard disk 5 is connected to, the accurate acquisition of the installation position information of the hard disk is not affected, and then the corresponding relationship between the hard disk parameter and the installation position of the hard disk is accurately determined, so that the accuracy of hard disk management is effectively improved.
The method provided by the embodiment of the present application is described above, and the server provided by the embodiment of the present application is described below:
the server comprises a BMC, at least one backboard and a plurality of hard disks, wherein each hard disk is inserted through a port on the backboard and is connected with the BMC through a CPLD inserted into the backboard, each CPLD is pre-configured with a first register and a second register, the first register is used for storing the backboard number of the backboard where the hard disk is located, the second register is used for storing the port number of the port where the hard disk is located,
the BMC is used for reading hard disk parameters from the target hard disk;
the BMC is further used for reading a backboard number from a first register of a target CPLD and a port number from a second register of the target CPLD aiming at a target hard disk which is accessed currently, wherein the target CPLD is a CPLD connected with a port where the target hard disk is located;
the BMC is further used for recording the corresponding relation among the read backboard number, the read port number and the hard disk parameter.
As an embodiment, the BMC includes at least one first interface corresponding to each backplane, the first interface is an interface on the BMC connected to the CPLD on the backplane,
the BMC is further used for determining the backboard corresponding to each first interface according to the connection relation between the distributed interfaces and the CPLD on the backboard;
the BMC is further configured to write a backplane number of the backplane corresponding to the first interface into a first register of the CPLD connected to the first interface through the first interface.
As an embodiment, the target CPLD is configured to write a port number of a port to a second register in the CPLD when the target CPLD detects a hardware signal of the port where the target hard disk is located.
As an embodiment, the BMC further includes at least one second interface corresponding to each backplane, where the second interface is an interface connected to the hard disk and the CPLD on the backplane through the routing module on the BMC,
the BMC is specifically configured to read a backplane number from a first register of the target CPLD and read a port number from a second register of the target CPLD by accessing a second interface of the target hard disk.
As an embodiment, the BMC is further configured to push a corresponding relationship between the backplane number, the port number, and the hard disk parameter to a BMC management interface.
This completes the description of the server. In the embodiment of the application, because the relationship between the back plate and the CPLD is fixed, and the connection relationship between the CPLD and the port is fixed (connected by the printed lines on the back plate), the CPLD can accurately acquire the information of the back plate where the hard disk is located and the information of the port, and store the information in the register of the CPLD, and the BMC can accurately determine the corresponding relationship between the hard disk parameters and the hard disk position by reading the hard disk parameters in the hard disk and reading the back plate number and the port number in the register of the CPLD, thereby improving the accuracy of hard disk management.
The above description is only a preferred embodiment of the present application, and should not be taken as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application shall be included in the scope of the present application.

Claims (10)

1. A hard disk management method is applied to a server, the server comprises a Baseboard Management Controller (BMC), at least one backboard and a plurality of hard disks, each hard disk is inserted through a port on the backboard and is connected with the BMC through a Complex Programmable Logic Device (CPLD) inserted into the backboard, each CPLD is configured with a first register and a second register in advance, the first register is used for storing the backboard number of the backboard where the hard disk is located, the second register is used for storing the port number of the port where the hard disk is located, and the method comprises the following steps:
the BMC reads the hard disk parameters from the target hard disk;
the BMC reads the number of the backboard from a first register of a target CPLD, and reads the number of a port from a second register of the target CPLD, wherein the target CPLD is a CPLD connected with the port of the target hard disk;
and the BMC records the read corresponding relation among the backboard number, the port number and the hard disk parameter.
2. The method of claim 1, wherein the BMC includes at least one first interface corresponding to each backplane, the first interface being an interface on the BMC connected to the CPLD on the backplane, and before the BMC reads the backplane number from the first register of the target CPLD, the method further comprises:
for each first interface, the BMC determines the backboard corresponding to the first interface according to the connection relation between the distributed interface and the CPLD on the backboard;
and the BMC writes the backboard number of the backboard corresponding to the first interface into the first register of the CPLD connected with the first interface through the first interface.
3. The method of claim 1, wherein prior to the BMC reading a port number from the second register of the target CPLD, the method further comprises:
and when the target CPLD detects a hardware signal of the port where the target hard disk is located, writing the port number of the port into a second register in the CPLD.
4. The method of claim 1, wherein the BMC further comprises at least one second interface corresponding to each backplane, the second interface is an interface connected to the hard disk on the backplane and the CPLD through a routing module on the BMC, the BMC reads the backplane number from the first register of the target CPLD and the port number from the second register of the target CPLD, and the method comprises:
and the BMC reads the backboard number from the first register of the target CPLD and reads the port number from the second register of the target CPLD by accessing the second interface of the target hard disk.
5. The method of claim 1, wherein after the BMC records the read correspondence between the backplane number, the port number, and the hard disk parameter, the method further comprises:
and the BMC pushes the corresponding relation among the backboard number, the port number and the hard disk parameter to a BMC management interface.
6. A server is characterized by comprising a Baseboard Management Controller (BMC), at least one backboard and a plurality of hard disks, wherein each hard disk is inserted through a port on the backboard and is connected with the BMC through a Complex Programmable Logic Device (CPLD) inserted into the backboard, each CPLD is pre-configured with a first register and a second register, the first register is used for storing the backboard number of the backboard where the hard disk is located, the second register is used for storing the port number of the port where the hard disk is located,
the BMC is used for reading hard disk parameters from the target hard disk;
the BMC is further used for reading a backboard number from a first register of a target CPLD and a port number from a second register of the target CPLD aiming at a target hard disk which is accessed currently, wherein the target CPLD is a CPLD connected with a port where the target hard disk is located;
the BMC is further used for recording the corresponding relation among the read backboard number, the read port number and the hard disk parameter.
7. The server according to claim 6, wherein the BMC comprises at least one first interface corresponding to each backplane, the first interface being an interface on the BMC that interfaces with the CPLD on the backplane,
the BMC is further used for determining the backboard corresponding to each first interface according to the connection relation between the distributed interfaces and the CPLD on the backboard;
the BMC is further configured to write a backplane number of the backplane corresponding to the first interface into a first register of the CPLD connected to the first interface through the first interface.
8. The server of claim 6, wherein:
and the target CPLD is used for writing the port number of the port into the second register in the CPLD when detecting the hardware signal of the port where the target hard disk is located.
9. The server according to claim 6, wherein the BMC further comprises at least one second interface corresponding to each backplane, the second interface is an interface on the BMC connected to the hard disk and the CPLD on the backplane via the routing module,
the BMC is specifically configured to read a backplane number from a first register of the target CPLD and read a port number from a second register of the target CPLD by accessing a second interface of the target hard disk.
10. The server of claim 6, wherein:
the BMC is further used for pushing the corresponding relation among the backboard number, the port number and the hard disk parameter to a BMC management interface.
CN202111070782.2A 2021-09-13 2021-09-13 Hard disk management method and server Pending CN113835629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111070782.2A CN113835629A (en) 2021-09-13 2021-09-13 Hard disk management method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111070782.2A CN113835629A (en) 2021-09-13 2021-09-13 Hard disk management method and server

Publications (1)

Publication Number Publication Date
CN113835629A true CN113835629A (en) 2021-12-24

Family

ID=78959004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111070782.2A Pending CN113835629A (en) 2021-09-13 2021-09-13 Hard disk management method and server

Country Status (1)

Country Link
CN (1) CN113835629A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443545A (en) * 2022-04-02 2022-05-06 飞腾信息技术有限公司 Interface expansion method, device, management system and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144914A (en) * 2018-07-25 2019-01-04 郑州云海信息技术有限公司 Communication means and CPLD between a kind of storage server, mainboard and hard disk
CN111831345A (en) * 2020-07-17 2020-10-27 深圳市同泰怡信息技术有限公司 Management method and device for server hard disk backboard, storage medium and equipment
CN112162706A (en) * 2020-09-30 2021-01-01 新华三云计算技术有限公司 Hard disk management method, device, equipment and machine readable storage medium
CN113204475A (en) * 2021-05-08 2021-08-03 山东英信计算机技术有限公司 Lighting device and method for hard disk of server backboard and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144914A (en) * 2018-07-25 2019-01-04 郑州云海信息技术有限公司 Communication means and CPLD between a kind of storage server, mainboard and hard disk
CN111831345A (en) * 2020-07-17 2020-10-27 深圳市同泰怡信息技术有限公司 Management method and device for server hard disk backboard, storage medium and equipment
CN112162706A (en) * 2020-09-30 2021-01-01 新华三云计算技术有限公司 Hard disk management method, device, equipment and machine readable storage medium
CN113204475A (en) * 2021-05-08 2021-08-03 山东英信计算机技术有限公司 Lighting device and method for hard disk of server backboard and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443545A (en) * 2022-04-02 2022-05-06 飞腾信息技术有限公司 Interface expansion method, device, management system and related equipment
CN114443545B (en) * 2022-04-02 2022-07-08 飞腾信息技术有限公司 Interface expansion method, device, management system and related equipment

Similar Documents

Publication Publication Date Title
US5960462A (en) Method and apparatus for analyzing a main memory configuration to program a memory controller
US5644705A (en) Method and apparatus for addressing and testing more than two ATA/IDE disk drive assemblies using an ISA bus
CN103197999B (en) A kind of memory failure automatic positioning method and device
CN109669635B (en) Command LBA (logical block addressing) coincidence detection method and device for solid-state storage master control chip
CN113835629A (en) Hard disk management method and server
US20070150684A1 (en) Apparatus for transmitting data via the I2C bus, method of transmitting data via the I2C bus, and program for transmitting data via the I2C bus
US5982572A (en) Method and apparatus for enabling fast access to a logical block on a tape medium
CZ283632B6 (en) Personal computer
US7444437B2 (en) Input/output device and method of setting up identification information in input/output device
US10911259B1 (en) Server with master-slave architecture and method for reading and writing information thereof
CN113204475B (en) Lighting device and method for hard disk of server backboard and server
TWI502350B (en) Flash memory accessing apparatus and method thereof
CN108873668A (en) Time calibrating method, processor and time calibration system
US20030226090A1 (en) System and method for preventing memory access errors
CN107589904B (en) SD card reading and writing method and device
CN108231134B (en) RAM yield remediation method and device
US8019926B2 (en) Automatically assigning a multi-dimensional physical address to a data storage device
JPH04137153A (en) Check system for connection route
EP3557422A1 (en) Method for accessing code sram, and electronic device
US5797032A (en) Bus for connecting extension cards to a data processing system and test method
CN111949198A (en) Bad block management method and device and storage equipment
CN111324507B (en) Service interface monitoring system and method of main control equipment
KR100276885B1 (en) Reliability Test Method for Disks for Exchange Storage Media
US6314382B1 (en) Methodology for testing a high capacity floppy disk unit installed in a notebook computer
CN107229422A (en) Data processing method and device

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