CN113220232A - Method and device for determining hard disk sequence in system and storage configuration system - Google Patents
Method and device for determining hard disk sequence in system and storage configuration system Download PDFInfo
- Publication number
- CN113220232A CN113220232A CN202110523685.8A CN202110523685A CN113220232A CN 113220232 A CN113220232 A CN 113220232A CN 202110523685 A CN202110523685 A CN 202110523685A CN 113220232 A CN113220232 A CN 113220232A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- information
- nvme
- interface information
- determining
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000004590 computer program Methods 0.000 claims description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 11
- 238000007726 management method Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0662—Virtualisation aspects
- G06F3/0664—Virtualisation aspects at device level, e.g. emulation of a storage device or system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0688—Non-volatile semiconductor memory arrays
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for determining the order of hard disks in a system, which comprises the steps of receiving the connection information of a hard disk backboard; determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information; determining virtual interface information of the hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information; and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard. According to the invention, the automatic adjustment of the NVMe hard disk position of the server is realized according to the preset NVMe position information, and workers do not need to strictly ensure that the NVMe hard disk back plate is connected to a specific physical port when equipment is assembled, so that the labor cost in the assembly is reduced, and the stability of the system is improved. The invention also provides a device, equipment, a computer readable storage medium and a storage configuration system for determining the sequence of the hard disks in the system, which have the beneficial effects.
Description
Technical Field
The present invention relates to the field of data storage, and in particular, to a method, an apparatus, a device, a computer-readable storage medium, and a storage configuration system for determining a sequence of hard disks in a system.
Background
As the complexity of the server system increases, the management requirements for the hard disk of the server also increase. Modern hard disks include a variety of types, from SATA disks, SAS disks, to NVMe (U.2) disks, which are increasingly fast. The operation rate of the NVMe hard disks is much higher than that of SAS and SATA hard disks, and the performance is also outstanding, so most storage clients will want to install the operating system of the server in NVMe with a higher speed, and general storage data is stored in the SAS, SATA or other hard disks, which will improve the overall performance of the system well.
In the prior art, the arrangement sequence of the hard disks in the system depends on the scanning sequence of the motherboard management system (BMC) to the hard disks through the I2C port, and the hard disk will be placed in front of the information scanned to the hard disk first, that is, the arrangement sequence of the hard disks in the system is completely determined by the physical interface, and in order to ensure that the positions of the NVMe hard disks serving as system disks in all servers are consistent, it is necessary to ensure that the NVMe hard disk backplanes are connected to the uniformly corresponding I2C physical ports, which greatly increases the labor cost during device installation and improves the instability of the system.
Therefore, how to automatically fix the sequential position of the NVMe hard disk in the system, reduce the equipment installation cost and improve the system stability becomes a problem to be solved by the technical personnel in the field.
Disclosure of Invention
The invention aims to provide a method, a device, equipment, a computer readable storage medium and a storage configuration system for determining the sequence of hard disks in a system, so as to solve the problems of high equipment installation cost and poor system stability caused by the fact that NVMe hard disks cannot be automatically fixed in the sequence position in the system in the prior art.
In order to solve the above technical problem, the present invention provides a method for determining a sequence of hard disks in a system, comprising:
receiving hard disk backboard connection information;
determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information;
determining virtual interface information of the hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information;
and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard.
Optionally, in the method for determining a sequence of hard disks in a system, the determining virtual interface information of a hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information, and preset NVMe position information includes:
determining NVMe virtual interface information corresponding to the NVMe actual interface information according to the NVMe actual interface information and the NVMe position information;
determining non-system storage virtual interface information corresponding to the non-system storage actual interface information according to the non-system storage actual interface information and the NVMe position information;
and determining the virtual interface information of the hard disk backboard according to the NVMe virtual interface information and the non-system storage virtual interface information.
Optionally, in the method for determining a hard disk sequence in a system, after obtaining the hard disk sequence information, the method further includes:
and sending the hard disk sequence information to a display component, and enabling the display component to display the hard disk information corresponding to the hard disk backboard connecting information according to the hard disk sequence information.
Optionally, in the method for determining a sequence of a hard disk in a system, after determining the NVMe actual interface information according to the hard disk backplane connection information, the method further includes:
judging whether the NVMe actual interface information meets a preset NVMe backboard standard or not;
and when the NVMe actual interface information does not meet the NVMe backboard standard, sending error reporting information.
Optionally, in the method for determining a hard disk sequence in a system, the method further includes:
receiving data information to be processed and target hard disk information;
determining target virtual interface information according to the target hard disk information;
determining target actual interface information according to the target virtual interface information;
and sending the data information to be processed to a target hard disk according to the target actual interface information.
An in-system hard disk order determination apparatus comprising:
the receiving module is used for receiving the connection information of the hard disk backboard;
the actual interface determining module is used for determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information;
the virtual interface determining module is used for determining virtual interface information of the hard disk backboard according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information;
and the sequence determining module is used for determining the hard disk sequence information according to the virtual interface information of the hard disk backboard.
Optionally, in the apparatus for determining a hard disk sequence in a system, the virtual interface determining module includes:
the virtual NVMe unit is used for determining NVMe virtual interface information corresponding to the NVMe actual interface information according to the NVMe actual interface information and the NVMe position information;
the virtual non-system storage unit is used for determining non-system storage virtual interface information corresponding to the non-system storage actual interface information according to the non-system storage actual interface information and the NVMe position information;
and the virtual determining unit is used for determining the virtual interface information of the hard disk backboard according to the NVMe virtual interface information and the non-system storage virtual interface information.
An in-system hard disk order determination apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for determining the order of hard disks in a system as described in any one of the above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the in-system hard disk order determination method according to any one of the preceding claims.
A storage configuration system comprises a hard disk backboard, a central processing unit and a routing chip;
the central processing unit is connected with the routing chip through a system management bus, and the routing chip is connected with the hard disk backboard through an I2C bus;
the hard disk back plate comprises a data hard disk, and the central processing unit is used for exchanging data with the data hard disk according to an external network signal;
the route selection chip is used for receiving connection information of the hard disk backboard, determining NVMe actual interface information and non-system storage actual interface information, then determining virtual interface information of the hard disk backboard according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information, and determining hard disk sequence information according to the virtual interface information of the hard disk backboard.
The method for determining the sequence of the hard disks in the system provided by the invention comprises the steps of receiving the connection information of a hard disk backboard; determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information; determining virtual interface information of the hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information; and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard. According to the invention, the actual interface information respectively corresponding to the NVMe hard disk backboard serving as the system disk and the rest of the NVMe hard disk backplanes is distinguished through the hard disk backboard connection information, the virtual interface information of the hard disk backplanes meeting the expectation (namely the NVMe hard disk backplanes are in the target positions in all the hard disk backplanes) is generated according to the preset NVMe position information, the system can sequence the hard disk backplanes in the equipment according to the virtual interface information of the hard disk backplanes, the automatic adjustment of the NVMe hard disk positions of the servers is realized, the NVMe hard disk positions of all the servers in the system are consistent, and workers do not need to strictly ensure that the NVMe hard disk backplanes are connected to a specific physical port when the equipment is assembled, so that the labor cost in the assembly is greatly reduced, and the stability of the system is improved. The invention also provides a device, equipment, a computer readable storage medium and a storage configuration system for determining the sequence of the hard disks in the system, which have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a specific embodiment of a method for determining a hard disk sequence in a system according to the present invention;
fig. 2 is a schematic flow chart of another specific embodiment of a method for determining a hard disk sequence in a system according to the present invention;
FIG. 3 is a flowchart illustrating a method for determining a hard disk sequence in a system according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of an apparatus for determining a hard disk sequence in a system according to the present invention;
FIG. 5 is a schematic structural diagram of an embodiment of a storage configuration system according to the present invention;
FIG. 6 is a schematic structural diagram of another embodiment of a storage configuration system according to the present invention;
FIG. 7 is a schematic structural diagram of a storage configuration system according to another embodiment of the present invention;
FIG. 8 is a logic diagram of the exchange of virtual interface information and actual interface information for a wine body embodiment of the storage configuration system provided by the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the present invention is to provide a method for determining a hard disk sequence in a system, a flow diagram of a specific embodiment of which is shown in fig. 1, and the method comprises the following steps:
s101: and receiving the connection information of the hard disk backboard.
The hard disk backplane information includes hard disk model information, hard disk connection number information, and the like corresponding to the backplane, and may also include other information.
The hard disk backplane chain connection information may include information of a plurality of hard disk backplanes.
S102: and determining the NVMe actual interface information and the non-system storage actual interface information according to the hard disk backboard connecting information.
The NVMe actual interface information refers to information of a physical interface corresponding to a hard disk backplane connected to the NVMe hard disk, and correspondingly, the non-system storage refers to information of a physical interface corresponding to a hard disk backplane of a non-NVMe hard disk, such as an SAS or SATA hard disk.
S103: and determining virtual interface information of the hard disk backboard according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information.
S104: and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard.
According to the NVMe position information, the interface sequence of each hard disk backboard is readjusted, and in most of the host management systems (BMC), the final hard disk sequence corresponding to each hard disk backboard is the sequence in which each hard disk backboard is connected to the physical interface, S103 and S104 in the invention generate newly-ordered virtual interface information, and the difference from the original actual interface information lies in that the interface sequence of each hard disk backboard is adjusted, so that the virtual interface corresponding to the NVMe hard disk backboard is in a preset position in the sequence of the virtual interface with the hard disk backboard.
For example, if there are three hard disk backplanes, namely, a first non-system storage hard disk backplane connected to the first interface, an NVMe hard disk backplane connected to the second interface, and a second non-system storage hard disk backplane connected to the third interface (denoted as 1. first non-system, 2.NVMe, 3. second non-system), if it is desired that the NVMe is placed at the head of the system sequence, the NVMe hard disk can be connected to the first virtual interface, and the remaining two non-system storage hard disk backplanes are connected to the second and third virtual interfaces (denoted as 1 '. NVMe, 2 '. first non-system, 3 '. second non-system) respectively in the original sequence.
The method for determining the sequence of the hard disks in the system provided by the invention comprises the steps of receiving the connection information of a hard disk backboard; determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information; determining virtual interface information of the hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information; and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard. According to the invention, the actual interface information respectively corresponding to the NVMe hard disk backboard serving as the system disk and the rest of the NVMe hard disk backplanes is distinguished through the hard disk backboard connection information, the virtual interface information of the hard disk backplanes meeting the expectation (namely the NVMe hard disk backplanes are in the target positions in all the hard disk backplanes) is generated according to the preset NVMe position information, the system can sequence the hard disk backplanes in the equipment according to the virtual interface information of the hard disk backplanes, the automatic adjustment of the NVMe hard disk positions of the servers is realized, the NVMe hard disk positions of all the servers in the system are consistent, and workers do not need to strictly ensure that the NVMe hard disk backplanes are connected to a specific physical port when the equipment is assembled, so that the labor cost in the assembly is greatly reduced, and the stability of the system is improved.
On the basis of the first specific embodiment, a manner of acquiring the virtual interface information of the hard disk backplane is further defined, which is referred to as a second specific embodiment, and a flow diagram of the second specific embodiment is shown in fig. 2, and includes:
s201: and receiving the connection information of the hard disk backboard.
S202: and determining the NVMe actual interface information and the non-system storage actual interface information according to the hard disk backboard connecting information.
S203: and determining NVMe virtual interface information corresponding to the NVMe actual interface information according to the NVMe actual interface information and the NVMe position information.
S204: and determining non-system storage virtual interface information corresponding to the non-system storage actual interface information according to the non-system storage actual interface information and the NVMe position information.
S205: and determining the virtual interface information of the hard disk backboard according to the NVMe virtual interface information and the non-system storage virtual interface information.
S206: and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard.
In this specific embodiment, a determination method of the virtual interface information of the hard disk backplane is specifically provided, as described above, most BMCs determine the order of the hard disks according to the connection order of the hard disk backplane and the physical interface, so that the actual interface information corresponding to the NVMe hard disk backplane and the actual interface information of the other hard disks to the hardware can be distinguished according to the connection information of the hard disk backplane, the corresponding virtual interface information is respectively generated according to the preset NVMe position information, and then the virtual interface information of the NVMe backplane and the virtual interface information of the NVMe backplane are combined to generate the virtual interface information of the hard disk backplane.
On the basis of the first specific embodiment, a method for exchanging data with a hard disk according to the virtual interface information of the hard disk is further provided, which is called as a third specific embodiment, and a flow diagram of the method is shown in fig. 3, and includes:
s301: and receiving data information to be processed and target hard disk information.
S302: and determining target virtual interface information according to the target hard disk information.
The system is pre-stored with the corresponding relation between the hard disk information and the hard disk backboard information, and the hard disk backboard information and the virtual interface information have one-to-one corresponding relation, so that the target virtual interface information can be determined by the target hard disk information
S303: and determining target actual interface information according to the target virtual interface information.
As described above, the virtual interface information and the actual interface information also have a one-to-one correspondence relationship, so that the target actual interface information can be determined according to the target virtual interface information.
S304: and sending the data information to be processed to a target hard disk according to the target actual interface information.
In the present embodiment, a step of determining target actual interface information according to the target virtual interface information is added, and then the to-be-processed data information is sent according to the target actual interface information. It should be noted that the target virtual interface information and the target actual interface information in this embodiment are the specific hard disk backplane virtual interface information, the specific NVMe actual interface information, and the non-system storage actual interface information described above.
In the following, the device for determining the sequence of hard disks in a system according to the embodiments of the present invention is introduced, and the device for determining the sequence of hard disks in a system described below and the method for determining the sequence of hard disks in a system described above may be referred to correspondingly.
Fig. 4 is a block diagram of a device for determining a hard disk sequence in a system according to an embodiment of the present invention, where the device for determining a hard disk sequence in a system according to fig. 4 may include:
the receiving module 100 is configured to receive hard disk backplane connection information;
the actual interface determining module 200 is configured to determine NVMe actual interface information and non-system storage actual interface information according to the hard disk backplane connection information;
the virtual interface determining module 300 is configured to determine virtual interface information of a hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information, and preset NVMe position information;
and the sequence determining module 400 is configured to determine hard disk sequence information according to the hard disk backplane virtual interface information.
As a preferred embodiment, the virtual interface determining module 300 includes:
the virtual NVMe unit is used for determining NVMe virtual interface information corresponding to the NVMe actual interface information according to the NVMe actual interface information and the NVMe position information;
the virtual non-system storage unit is used for determining non-system storage virtual interface information corresponding to the non-system storage actual interface information according to the non-system storage actual interface information and the NVMe position information;
and the virtual determining unit is used for determining the virtual interface information of the hard disk backboard according to the NVMe virtual interface information and the non-system storage virtual interface information.
As a preferred embodiment, the order determination module 400 further includes:
and the display sending unit is used for sending the hard disk sequence information to a display component after the hard disk sequence information is obtained, so that the display component displays the hard disk information corresponding to the hard disk backboard connecting information according to the hard disk sequence information.
As a preferred embodiment, the actual interface determining module 200 further includes:
the judging unit is used for judging whether the NVMe actual interface information meets a preset NVMe backboard standard or not;
and the error reporting unit is used for sending error reporting information when the NVMe actual interface information does not conform to the NVMe backboard standard.
As a preferred embodiment, the method further comprises:
the data receiving module is used for receiving data information to be processed and target hard disk information;
the target determining module is used for determining target virtual interface information according to the target hard disk information;
the virtual conversion module is used for determining target actual interface information according to the target virtual interface information;
and the target sending module is used for sending the data information to be processed to a target hard disk according to the target actual interface information.
The apparatus for determining a sequence of hard disks in a system of this embodiment is configured to implement the method for determining a sequence of hard disks in a system, and thus specific implementations of the apparatus for determining a sequence of hard disks in a system may be found in the foregoing portions of the method for determining a sequence of hard disks in a system, for example, the receiving module 100, the actual interface determining module 200, the virtual interface determining module 300, and the sequence determining module 400 are respectively configured to implement steps S101, S102, S103, and S104 in the method for determining a sequence of hard disks in a system, so that the specific implementations thereof may refer to descriptions of corresponding embodiments of each portion, and are not described herein again.
The device for determining the hard disk sequence in the system provided by the invention is used for receiving the connection information of the hard disk backboard through the receiving module 100; the actual interface determining module 200 is configured to determine NVMe actual interface information and non-system storage actual interface information according to the hard disk backplane connection information; the virtual interface determining module 300 is configured to determine virtual interface information of a hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information, and preset NVMe position information; and the sequence determining module 400 is configured to determine hard disk sequence information according to the hard disk backplane virtual interface information. According to the invention, the actual interface information respectively corresponding to the NVMe hard disk backboard serving as the system disk and the rest of the NVMe hard disk backplanes is distinguished through the hard disk backboard connection information, the virtual interface information of the hard disk backplanes meeting the expectation (namely the NVMe hard disk backplanes are in the target positions in all the hard disk backplanes) is generated according to the preset NVMe position information, the system can sequence the hard disk backplanes in the equipment according to the virtual interface information of the hard disk backplanes, the automatic adjustment of the NVMe hard disk positions of the servers is realized, the NVMe hard disk positions of all the servers in the system are consistent, and workers do not need to strictly ensure that the NVMe hard disk backplanes are connected to a specific physical port when the equipment is assembled, so that the labor cost in the assembly is greatly reduced, and the stability of the system is improved.
The invention also provides a device for determining the sequence of hard disks in the system, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the method for determining the order of hard disks in a system as described in any one of the above when executing the computer program. The method for determining the sequence of the hard disks in the system provided by the invention comprises the steps of receiving the connection information of a hard disk backboard; determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information; determining virtual interface information of the hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information; and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard. According to the invention, the actual interface information respectively corresponding to the NVMe hard disk backboard serving as the system disk and the rest of the NVMe hard disk backplanes is distinguished through the hard disk backboard connection information, the virtual interface information of the hard disk backplanes meeting the expectation (namely the NVMe hard disk backplanes are in the target positions in all the hard disk backplanes) is generated according to the preset NVMe position information, the system can sequence the hard disk backplanes in the equipment according to the virtual interface information of the hard disk backplanes, the automatic adjustment of the NVMe hard disk positions of the servers is realized, the NVMe hard disk positions of all the servers in the system are consistent, and workers do not need to strictly ensure that the NVMe hard disk backplanes are connected to a specific physical port when the equipment is assembled, so that the labor cost in the assembly is greatly reduced, and the stability of the system is improved.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the in-system hard disk order determination method as described in any of the above. The method for determining the sequence of the hard disks in the system provided by the invention comprises the steps of receiving the connection information of a hard disk backboard; determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information; determining virtual interface information of the hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information; and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard. According to the invention, the actual interface information respectively corresponding to the NVMe hard disk backboard serving as the system disk and the rest of the NVMe hard disk backplanes is distinguished through the hard disk backboard connection information, the virtual interface information of the hard disk backplanes meeting the expectation (namely the NVMe hard disk backplanes are in the target positions in all the hard disk backplanes) is generated according to the preset NVMe position information, the system can sequence the hard disk backplanes in the equipment according to the virtual interface information of the hard disk backplanes, the automatic adjustment of the NVMe hard disk positions of the servers is realized, the NVMe hard disk positions of all the servers in the system are consistent, and workers do not need to strictly ensure that the NVMe hard disk backplanes are connected to a specific physical port when the equipment is assembled, so that the labor cost in the assembly is greatly reduced, and the stability of the system is improved.
The present application further provides a storage configuration system, a schematic structural diagram of a specific embodiment of which is shown in fig. 5, which is called as a fifth specific embodiment, and includes a hard disk backplane 03, a central processing unit 01, and a routing chip 02;
the central processing unit 01 is connected with the routing chip 02 through a system management bus, and the routing chip 02 is connected with the hard disk backplane 03 through an I2C bus;
the hard disk back board 03 comprises a data hard disk, and the central processing unit 01 is used for exchanging data with the data hard disk according to an external network signal;
the routing chip 02 is used for receiving connection information of the hard disk back plate 03, determining NVMe actual interface information and non-system storage actual interface information, then determining virtual interface information of the hard disk back plate 03 according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information, and determining hard disk sequence information according to the virtual interface information of the hard disk back plate 03.
As a specific implementation, the central processing unit 01 is connected to the routing chip 02 through SMBBus. The routing chip 02 may include a PCA9548 chip, or the functions of the PCA9548 chip are implemented in a software form, as shown in fig. 6 and 7, where fig. 6 is a case where the PCA9548 chip is separated from the rest of the structure of the routing chip 02, fig. 7 is a case where the PCA9548 is implemented by a logic function of a programmable logic device (CPLD), where the HDBP in the diagram is different hard disk backplanes 03, and the BMC in fig. 6 and 7 refers to the central processing unit 01.
The CPLD internal logic realizes the switching (Switch Control) of I2C, the switching logic refers to FIG. 8, the "Decode" in FIG. 8 refers to the decoding process, the BMC informs the CPLD hard disk sequence through SMBus2, and the informed truth table can refer to Table 1:
TABLE 1I 2C switch truth table
Table 1 shows the correspondence between the virtual interface and the actual interface information in the foregoing, where the number of Input is the virtual interface number, and the number of Output is the actual interface number, and if it is now necessary to send a certain piece of information to the interface with the virtual number of 0, and the number of the actual interface corresponding to the interface with the virtual number of 0 is 3, the sent true value is "011" according to table 1.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is to be noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, apparatus, device, computer readable storage medium and storage configuration system for determining the sequence of hard disks in a system provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A method for determining the sequence of hard disks in a system is characterized by comprising the following steps:
receiving hard disk backboard connection information;
determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information;
determining virtual interface information of the hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information;
and determining the hard disk sequence information according to the virtual interface information of the hard disk backboard.
2. The method for sequentially determining hard disks in a system according to claim 1, wherein the determining virtual interface information of a hard disk backplane according to the NVMe actual interface information, the non-system storage actual interface information, and preset NVMe position information includes:
determining NVMe virtual interface information corresponding to the NVMe actual interface information according to the NVMe actual interface information and the NVMe position information;
determining non-system storage virtual interface information corresponding to the non-system storage actual interface information according to the non-system storage actual interface information and the NVMe position information;
and determining the virtual interface information of the hard disk backboard according to the NVMe virtual interface information and the non-system storage virtual interface information.
3. The method for determining the order of hard disks in a system according to claim 1, after obtaining the order information of hard disks, further comprising:
and sending the hard disk sequence information to a display component, and enabling the display component to display the hard disk information corresponding to the hard disk backboard connecting information according to the hard disk sequence information.
4. The method for determining the order of the hard disks in the system according to claim 1, wherein after determining the NVMe actual interface information according to the hard disk backplane connection information, the method further comprises:
judging whether the NVMe actual interface information meets a preset NVMe backboard standard or not;
and when the NVMe actual interface information does not meet the NVMe backboard standard, sending error reporting information.
5. The method for determining the order of hard disks in a system according to claim 1, further comprising:
receiving data information to be processed and target hard disk information;
determining target virtual interface information according to the target hard disk information;
determining target actual interface information according to the target virtual interface information;
and sending the data information to be processed to a target hard disk according to the target actual interface information.
6. An apparatus for determining an order of hard disks in a system, comprising:
the receiving module is used for receiving the connection information of the hard disk backboard;
the actual interface determining module is used for determining NVMe actual interface information and non-system storage actual interface information according to the hard disk backboard connecting information;
the virtual interface determining module is used for determining virtual interface information of the hard disk backboard according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information;
and the sequence determining module is used for determining the hard disk sequence information according to the virtual interface information of the hard disk backboard.
7. The in-system hard disk order determination apparatus of claim 6, wherein the virtual interface determination module comprises:
the virtual NVMe unit is used for determining NVMe virtual interface information corresponding to the NVMe actual interface information according to the NVMe actual interface information and the NVMe position information;
the virtual non-system storage unit is used for determining non-system storage virtual interface information corresponding to the non-system storage actual interface information according to the non-system storage actual interface information and the NVMe position information;
and the virtual determining unit is used for determining the virtual interface information of the hard disk backboard according to the NVMe virtual interface information and the non-system storage virtual interface information.
8. An in-system hard disk order determining apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for determining the order of hard disks in a system according to any one of claims 1 to 5 when executing said computer program.
9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the in-system hard disk order determination method according to any one of claims 1 to 5.
10. A storage configuration system is characterized by comprising a hard disk backboard, a central processing unit and a routing chip;
the central processing unit is connected with the routing chip through a system management bus, and the routing chip is connected with the hard disk backboard through an I2C bus;
the hard disk back plate comprises a data hard disk, and the central processing unit is used for exchanging data with the data hard disk according to an external network signal;
the route selection chip is used for receiving connection information of the hard disk backboard, determining NVMe actual interface information and non-system storage actual interface information, then determining virtual interface information of the hard disk backboard according to the NVMe actual interface information, the non-system storage actual interface information and preset NVMe position information, and determining hard disk sequence information according to the virtual interface information of the hard disk backboard.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110523685.8A CN113220232A (en) | 2021-05-13 | 2021-05-13 | Method and device for determining hard disk sequence in system and storage configuration system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110523685.8A CN113220232A (en) | 2021-05-13 | 2021-05-13 | Method and device for determining hard disk sequence in system and storage configuration system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113220232A true CN113220232A (en) | 2021-08-06 |
Family
ID=77095563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110523685.8A Pending CN113220232A (en) | 2021-05-13 | 2021-05-13 | Method and device for determining hard disk sequence in system and storage configuration system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113220232A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115904251A (en) * | 2023-01-03 | 2023-04-04 | 苏州浪潮智能科技有限公司 | Hard disk sequence adjusting method, device, system, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180335971A1 (en) * | 2017-05-16 | 2018-11-22 | Cisco Technology, Inc. | Configurable virtualized non-volatile memory express storage |
CN109189627A (en) * | 2018-10-08 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of hard disk failure monitor and detection method, apparatus, terminal and storage medium |
CN109240869A (en) * | 2018-09-21 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of method and apparatus of determining target hard disk backboard |
CN109446000A (en) * | 2018-10-08 | 2019-03-08 | 郑州云海信息技术有限公司 | The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards |
CN109614035A (en) * | 2018-11-01 | 2019-04-12 | 郑州云海信息技术有限公司 | A kind of method and system for supporting settlement server storage medium sequence flexible configuration |
CN110543404A (en) * | 2019-07-19 | 2019-12-06 | 广东浪潮大数据研究有限公司 | Server, hard disk lighting method and system and computer readable storage medium |
CN112162706A (en) * | 2020-09-30 | 2021-01-01 | 新华三云计算技术有限公司 | Hard disk management method, device, equipment and machine readable storage medium |
-
2021
- 2021-05-13 CN CN202110523685.8A patent/CN113220232A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180335971A1 (en) * | 2017-05-16 | 2018-11-22 | Cisco Technology, Inc. | Configurable virtualized non-volatile memory express storage |
CN109240869A (en) * | 2018-09-21 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of method and apparatus of determining target hard disk backboard |
CN109189627A (en) * | 2018-10-08 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of hard disk failure monitor and detection method, apparatus, terminal and storage medium |
CN109446000A (en) * | 2018-10-08 | 2019-03-08 | 郑州云海信息技术有限公司 | The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards |
CN109614035A (en) * | 2018-11-01 | 2019-04-12 | 郑州云海信息技术有限公司 | A kind of method and system for supporting settlement server storage medium sequence flexible configuration |
CN110543404A (en) * | 2019-07-19 | 2019-12-06 | 广东浪潮大数据研究有限公司 | Server, hard disk lighting method and system and computer readable storage medium |
CN112162706A (en) * | 2020-09-30 | 2021-01-01 | 新华三云计算技术有限公司 | Hard disk management method, device, equipment and machine readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115904251A (en) * | 2023-01-03 | 2023-04-04 | 苏州浪潮智能科技有限公司 | Hard disk sequence adjusting method, device, system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112597153B (en) | Block chain-based data storage method, device and storage medium | |
US9680930B2 (en) | Data communication system for a storage management system and communication method thereof | |
US10630399B2 (en) | Testing distributed applications that have an established exchange in an advanced message queuing protocol (AMQP) message broker | |
US20140149617A1 (en) | I2c bus structure and device availability query method | |
CN105468302A (en) | Data processing method, apparatus and system | |
EP3482294A1 (en) | Methods and modules relating to allocation of host machines | |
CN110912814A (en) | Interface data distribution method and device | |
CN113220232A (en) | Method and device for determining hard disk sequence in system and storage configuration system | |
JP2019175424A (en) | Method and system for checking error of cable | |
CN115114219A (en) | PCI-E topological method, device, equipment and storage medium | |
CN115904251A (en) | Hard disk sequence adjusting method, device, system, electronic equipment and storage medium | |
US20180145869A1 (en) | Debugging method of switches | |
WO2018040359A1 (en) | Method and device for setting position information | |
CN107168776B (en) | Event statistical method, device, equipment and storage medium | |
CN115952129A (en) | Blade server setting method and device and readable storage medium | |
CN111061576B (en) | Method and system for creating entity object | |
CN112463670A (en) | Storage controller access method and related device | |
CN111737181A (en) | Heterogeneous processing equipment, system, port configuration method, device and storage medium | |
CN111444129A (en) | Method for transmitting MDB data and terminal equipment | |
CN111013157A (en) | Game loading method, device, equipment and storage medium | |
CN112463713B (en) | Automatic seek method and device for processor | |
TWM625953U (en) | Switching system for automated transmission | |
CN110046120B (en) | Data processing method, device and system based on IIC protocol and storage medium | |
TWI601013B (en) | Error resolving method or switch | |
CN118069562A (en) | Method, device, equipment and storage medium for managing hard disk backboard of double-node 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210806 |
|
RJ01 | Rejection of invention patent application after publication |