A kind of data reconstruction method of baseboard management controller
Technical field
The present invention relates to a kind of data reconstruction method being applicable to the baseboard management controller of server.
Background technology
IPMI (Intelligent Platform ManagementInterface, IPMI) is a kind of hardware management interface specification of open standard, defines the ad hoc approach that embedded management subsystem carries out communicating.IPMI information is exchanged by the baseboard management controller (Baseboard ManagementController, BMC) be positioned on the nextport hardware component NextPort of IPMI specification.The core of IPMI is baseboard management controller, it does not also rely on the processor of server, BIOS or operating system and carrys out work, be independent in the extreme, be one run in system separately without proxy management subsystem, as long as there is BMC and IPMI firmware, it just can be started working, and a BMC normally independently board be arranged on server master board.In general, BMC has following functions:
1. conducted interviews by the serial port of system
2. fault log record and SNMP alarm send
3. access system event log (System Event Log, SEL) and sensor condition
4. control to comprise startup and shutdown
5. independent of the support of system power supply or duty
6. for Operation system setting, be redirected based on the text control desk of text common program and operating system control desk
Therefore, BMC is one of of paramount importance management system on server, which ensure that the normal operation of server.But in actual applications, BMC system crash can be caused due to maloperation or abnormal conditions, BMC still can not be recovered normal by AC-Cycle even again.
In the development phase, the BMC slip-stick artist of specialty can write by special tool software duplicate removal or refresh BMC under the systems such as DOS, windows, but does not have the common server managerial personnel of BMC development Experience that these instruments just cannot be used to recover the BMC data of collapse.
In view of this, common user how is made to be a problem facing of person skilled in the industry by the BMC management system that a simple solution is recovered to have collapsed.
Summary of the invention
For above-mentioned defect of the prior art, the invention provides a kind of data reconstruction method of baseboard management controller.
According to one aspect of the present invention, provide a kind of data reconstruction method of baseboard management controller, be applicable to a server, this server comprises a server system and a baseboard management controller, baseboard management controller is connected to server system, for the duty of monitoring server system, the data reconstruction method of baseboard management controller comprises the following steps:
There is provided a trigger element, be connected to baseboard management controller, described baseboard management controller comprises a bootstrap module and and runs module;
There is provided an external boot disk, connect the external-connected port of external boot disk to server system, external boot disk comprises a recovery routine and and recovers data;
The state of trigger element is set to trigger state, and baseboard management controller is closed according to the trigger state of trigger element and is run module, switches to bootstrap module;
Performing start makes server system power on, and starts server system from external boot disk, and server system performs recovery routine and recovery data are sent to baseboard management controller;
Baseboard management controller receives and recovers data, and performs date restoring by bootstrap module to operation module after completing reception.
Preferably, external-connected port is USB (universal serial bus).
Preferably, external boot disk be USB flash disk, portable hard drive, CD one of them.
Preferably, trigger element is the jumper wire construction obtained after one universal input/output pin programming.
Preferably, recovery routine comprises a batch program, and recovery data packets is containing a baseboard management controller data image.
Preferably, when connecting trigger element and be connected external boot disk, server is in off-position.
Preferably, the method more comprises: after carrying out date restoring, trigger element is set to non-toggle state, disconnects external boot disk, and sends one and restart order to baseboard management controller.
Preferably, before transmission one restarts order to baseboard management controller, the method more comprises: verify the firmware of baseboard management controller, if verify unsuccessfully, then re-executes the data recovery procedure of this baseboard management controller.
Preferably, after transmission one restarts order to baseboard management controller, the method more comprises: restart server system.
Adopt the data reconstruction method of baseboard management controller of the present invention, after by server system power-off, trigger element on baseboard management controller will be arranged on, i.e. GPIO pin, be set to trigger state, make BMC close the operation module of system of being in charge of and be switched to bootstrap module, under this module, BMC only can control basic GPIO and only perform the most basic refresh command.User only need will have the external boot disk of recovery routine and recovery data, and such as USB flash disk is connected with server system, and starts server system, just the BMC data image recovered in data can be flushed in the firmware of BMC.Even if so domestic consumer also can utilize external boot disk automatically to complete the operation of the substrate management controller system recovering collapse.
Accompanying drawing explanation
Reader, after having read the specific embodiment of the present invention with reference to accompanying drawing, will become apparent various aspects of the present invention.Wherein,
Fig. 1 illustrates the signal wiring schematic diagram according to one embodiment of the invention; And
Fig. 2 illustrates the process flow diagram carrying out date restoring in the system of fig. 1.
Embodiment
With reference to the accompanying drawings, the specific embodiment of the present invention is described in further detail.Those of ordinary skill in the art is to be understood that, embodiment hereinafter just schematically illustrates technical scheme of the present invention, and preferably introduce the structure of the data reconstruction method of the specific embodiment of the present invention and baseboard management controller of the present invention, but the present invention has more than and is confined to this.
Fig. 1 illustrates the signal wiring schematic diagram according to one embodiment of the invention.With reference to Fig. 1, the data operation of whole server is responsible for by central processing unit 100, itself and South Bridge chip group 102, i.e. i/o controller center (I/O controller hub, ICH) connect, South Bridge chip group 102 is responsible for the communication between I/O bus, as pci bus, USB, LAN, ATA, SATA, Audio Controller, keyboard controller, real-time clock controller, Advanced Program Zoom etc.South Bridge chip group 102 again with I/O center 104 (Input Output Hub, IOH) connect, the function of the communication of I/O center 104 primary responsibility I/O bus is various I/O equipment, is connected to the bridge of the central processing unit 100 possessing QPI bus.And baseboard management controller 108 (Baseboard Management Controller, BMC) is then connected with I/O center 104 by LPC (Low Pin Count) interface, the above-mentioned hardware arrangement being usual server system.The external boot disk 106 used at present, such as USB flash disk, portable hard drive, CD etc. all pass through the external-connected port at I/O center 104, and such as USB (universal serial bus) and server carry out data transmission.In addition, baseboard management controller 108 is also connected with multiple trigger element, in the present embodiment, trigger element is the jumper wire construction obtained after the programming of universal input/output (General Purpose Input Output, GPIO) pin 110, and it utilizes industrial standard I2C, SMBus
tMor SPI
tMinterface simplifies the expansion of I/O mouth, and when microcontroller or chipset do not have enough I/O ports, or when system needs adopt far-end serial communication or control, GPIO can provide extra control & monitor function, and it is set to jumper wire construction by programming.
Disclose the hardware configuration of the data reconstruction method being suitable for baseboard management controller of the present invention in above-mentioned Fig. 1, incorporated by reference to reference to Fig. 1 and Fig. 2, Fig. 2, the process flow diagram in the system of fig. 1 baseboard management controller being carried out to date restoring is shown.The ultimate principle of the data reconstruction method of baseboard management controller of the present invention is, server comprises a server system and a baseboard management controller 108, baseboard management controller 108 is connected to this server system, for monitoring the duty of this server system, the baseboard management controller 108 described in the present embodiment comprises bootstrap module (Boot block) and runs module (Runtimeblock).Bootstrap module is the hardware configuration for baseboard management controller 108, under bootstrap module state, baseboard management controller 108 only can control basic GPIO (such as active LED), i.e. General Purpose Input Output (universal input/output), or bus extender, and only perform the most basic refreshing (flash) order.And running the management function that module has complexity, the collapse of baseboard management controller 108 system usually occurs in operation module.Carry out making it to become trigger element after programming is arranged in the GPIO pin 110 had baseboard management controller 108, after this trigger element is set to trigger state, after pin 110 connection of jumper wire construction, baseboard management controller 108 is switched to bootstrap module, now substrate reason controller 108 can by operations module closedown and etc. to be refreshed.Now user just can be connected having recovery routine with the external-connected port of server system with the external boot disk 106 recovering data, it recovers data can from web download, and external boot disk 106 is made as starter gear, wherein, recovery routine comprises a batch program, recovery data packets is containing a baseboard management controller data image, when date restoring is carried out to baseboard management controller 108, start batch program and go the data calling baseboard management controller refurbishing procedure (flash BMC utility) and baseboard management controller data image recovery baseboard management controller 108.
Specifically, when baseboard management controller 108 collapse and restart also cannot recover time, first closing server makes it be in off-position (step 200), then the trigger element and when server is in off-position on connection substrate Management Controller 108, namely as the pin 110 of jumper wire construction, and will the external boot disk 106 of recovery data and a recovery routine be had, the such as external-connected port at USB flash disk, portable hard drive, CD one of them and I/O center 104, such as USB (universal serial bus) connects (step 202).Next step, performing start makes server system power on, owing to the pin 110 as trigger element being connected, now baseboard management controller 108 will run module closedown according to the trigger state of trigger element, and switching to bootstrap module, system just can be called recovery data and carry out date restoring (step 204) to baseboard management controller from external boot disk 106.Specifically, under normal service condition, pin 110 as trigger element is for low level, i.e. non-toggle state, high level will be set to when pin 110 is connected, i.e. trigger state, external-connected port and USB interface are the insert ports having the USB flash disk recovering data and recovery routine, when server dispatches from the factory, USB port is the first boot device of BIOS system default, server is started after inserting USB flash disk, just server system is started from external boot disk 106, such baseboard management controller 108 just enters bootstrap module, then system can run the batch program comprised in the recovery routine of USB flash disk automatically, this Programmable detection is in bootstrap module to baseboard management controller 108, just recovery data are sent to baseboard management controller 108.Then, after baseboard management controller 108 completes reception recovery data, the baseboard management controller data image (BMC image) just utilizing the recovery data packets in USB flash disk to contain by bootstrap module performs date restoring by BMC refurbishing procedure (flash BMC utility) to operation module.After completing date restoring, trigger element is set to non-toggle state, namely disconnects the connection of pin 110, external boot disk 106 is extracted from external-connected port, and send one and restart order to server (step 206).This completes the date restoring of baseboard management controller 108.
In addition, before transmission restarts order to baseboard management controller 108, also can verify the firmware of baseboard management controller 108, if verify unsuccessfully, then re-execute the data recovery procedure of this baseboard management controller 108.After transmission restarts order to baseboard management controller 108, also server system can be restarted.
Adopt the data reconstruction method of baseboard management controller of the present invention, after by server system power-off, trigger element on baseboard management controller will be arranged on, i.e. GPIO pin, be set to trigger state, make BMC close the operation module of system of being in charge of and be switched to bootstrap module, under this module, BMC only can control basic GPIO and only perform the most basic refresh command.User only need will have the external boot disk of recovery routine and recovery data, and such as USB flash disk is connected with server system, and starts server system, just the BMC data image recovered in data can be flushed in the firmware of BMC.Even if so domestic consumer also can utilize external boot disk automatically to complete the operation of the substrate management controller system recovering collapse.
Above, the specific embodiment of the present invention is described with reference to the accompanying drawings.But those skilled in the art can understand, when without departing from the spirit and scope of the present invention, various change and replacement can also be done to the specific embodiment of the present invention.These change and replace and all drop in claims of the present invention limited range.