Disclosure of Invention
The invention mainly aims to provide a management method of a server hard disk backboard, and aims to solve the technical problem of difficult maintenance of a server due to backboard expansion.
The invention provides a management method of a server hard disk backboard, which comprises the following steps:
powering up the server, and starting the BMC;
acquiring interface information of the back plate CPLD;
judging whether an instruction for importing the configuration information of the backboard is received;
if yes, importing backboard configuration information;
reading interface information of all the back plate CPLDs, and constructing machine type information according to the back plate configuration information;
and reading the hard disk information on the back plate according to the model information, and matching the serial numbers of the physical disks to ensure that the serial numbers of the disk positions presented on the management interface completely correspond to the silk-screen printing of the hard disks on the appearance of the server case.
Preferably, before the step of determining whether the instruction for importing the backplane configuration information is received, the method includes:
setting the corresponding relation between the hard disk and the backboard through an IPMI command, wherein the set content comprises CPLD address information of the newly added backboard and a serial number of connection I2C;
and updating information processing according to the modified backboard configuration information, and converting and storing the corresponding modified backboard configuration information.
The invention also provides a management device of the server hard disk backboard, which comprises:
the host is used for setting the configuration information of the backboard;
the BMC control processor is used for reading interface information of the back plate CPLD;
and the hard disk back plate CPLD module is used for the BMC control processor to read the interface information of the back plate CPLD.
The present invention also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the management method of the server hard disk backplane is implemented.
The invention also provides a computer device, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the management method of the server hard disk backplane.
The invention has the beneficial effects that: the BMC collects the acquired hard disk backboard information, then dynamically generates model information according to the configuration information corresponding table, and further sets the hard disk serial number, so that the effect of silk-screen alignment of a BMC management page and the appearance of the case is achieved. Maintenance personnel can intuitively and remotely maintain the hard disk, and the maintenance efficiency of the server is improved. And the backboard and the model support need to be added, the setting can be carried out through the BMC interface, the configuration information corresponding table is updated, the firmware does not need to be modified, the capacity expansion performance is good, and the stability of the server is enhanced.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the present invention provides a management method for a server hard disk backplane, including:
s1: powering up the server, and starting the BMC;
s2: acquiring interface information of the back plate CPLD;
s3: judging whether an instruction for importing the configuration information of the backboard is received;
s4: if yes, importing backboard configuration information;
s5: reading interface information of all the back plate CPLDs, and constructing machine type information according to the back plate configuration information;
s6: and reading the hard disk information on the back plate according to the model information, and matching the serial numbers of the physical disks to ensure that the serial numbers of the disk positions presented on the management interface completely correspond to the silk-screen printing of the hard disks on the appearance of the server case.
In the embodiment of the invention, the server is powered on, and the BMC is started. The BMC obtains the specific model of the current backplane, such as the backplane a, the backplane B, or the backplane C, through an interface of the CPLD (Complex programmable logic Device). The BMC provides an interface for importing and exporting the current backplane configuration information. After the server receives the instruction of importing the backplane configuration information, the BMC imports the backplane configuration information, specifically, the backplane configuration information is a configuration information correspondence table, and matches and indexes related information of the current backplane, such as how many hard disk interfaces the current backplane supports, by the acquired specific model of the current backplane. The BMC collects the read information of the hard disk backboard, then dynamically generates model information according to the configuration information corresponding table, the configuration information comprises the wiring mode of the hard disk, and further sets the serial number of the hard disk according to the model information, so that the slot position information of the hard disk of the BMC management interface completely corresponds to the appearance silk screen of the server case, the hard disk can be maintained remotely more visually, and the maintenance efficiency of the server is improved. In addition, if a backboard and model support need to be added, setting can be carried out through a BMC interface, the configuration information corresponding table is updated, firmware does not need to be modified, good capacity expansion performance is achieved, and the stability of the server is enhanced.
Before step S3, the method for determining whether an instruction to import backplane configuration information is received includes:
s31: setting the corresponding relation between the hard disk and the backboard through an IPMI command, wherein the set content comprises CPLD address information of the newly added backboard and a serial number of connection I2C;
s32: and updating information processing according to the modified backboard configuration information, and converting and storing the corresponding modified backboard configuration information.
In the embodiment of the present invention, thehost 1 sets a corresponding relationship between the hard disk and the backplane through an IPMI (Intelligent Platform management interface) command, where the set content includes CPLD address information of the newly added backplane and a serial number of connection I2C; and updating information processing according to the modified backboard configuration information, and converting and storing the corresponding modified backboard configuration information. The BMC provides a modification interface, and the backplane configuration information is added, so that the BMC firmware can be compatible with a new backplane without changing the BMC firmware, and the maintenance is simple.
Referring to fig. 2, the present invention provides a management device for a server hard disk backplane, including:
thehost 1 is used for setting the configuration information of the backboard;
theBMC control processor 2 is used for reading interface information of the back plate CPLD;
and the hard disk backplate CPLD module 3 is used for theBMC control processor 2 to read the interface information of the back plate CPLD.
In the embodiment of the invention, the topological structure of the management device of the server hard disk backboard comprises ahost 1, aBMC control processor 2 and a hard diskbackboard CPLD module 3. TheBMC control processor 2 reads the specific model of the backboard through theCPLD module 3 of the hard disk backboard, a default configuration information corresponding table is arranged in the BMC, the BMC collects the acquired hard disk backboard information, then the model information is dynamically generated according to the configuration information corresponding table, and the serial number of the hard disk is set, so that the effect of aligning the BMC management page and the appearance screen printing of the case is achieved. Maintenance personnel can intuitively and remotely maintain the hard disk, and the maintenance efficiency of the server is improved. And the backboard and the model support need to be added, the setting can be carried out through the BMC interface, the configuration information corresponding table is updated, the firmware does not need to be modified, the capacity expansion performance is good, and the stability of the server is enhanced.
Referring to fig. 3, the present application further provides astorage medium 100, in which acomputer program 200 is stored in thestorage medium 100, and when the computer program runs on a computer, the computer is enabled to execute the management method of the server hard disk backplane described in the above embodiment.
Referring to fig. 4, the present application further provides adevice 300 containing instructions, which when run on thedevice 300, causes thedevice 300 to execute the management method of the server hard disk backplane described in the above embodiment through aprocessor 400 disposed inside thedevice 300.
Those skilled in the art will appreciate that the method for managing a server hard disk backplane of the present invention and the above-described apparatus for performing one or more of the methods described in the present application are related. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs or applications that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.