1. Technical Field
Embodiments of the present disclosure relates to data processing technology, and more particularly, to a server and a data synchronization method.
2. Description of related art
An identification programmable read only memory (IDPROM) is a special electrically erasable programmable read-only memory (EEPROM) installed on a motherboard of a server. The IDPROM address space provides system information, such as a machine type, a serial number, an Ethernet address, and a manufacturing date of the server. A field replacement unit (FRU) is a chip controlled by a baseboard management controller (BMC) of the server. During a test stage of the server, the system information is written into the IDPROM using special assistant tools and special software environment provided by the manufacture of the server. Then, the system information is read from the IDPROM and written into the FRU, so that the data stored in the IDPROM and the FRU are synchronized. However, this data synchronization method depends on special assistant tools and special software environment provided by the manufacture.
The disclosure, including the accompanying drawings in which like references indicate similar elements, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In step S41, the data read module 311 reads data from the storage device 60. The data includes system information, such as a machine type, a serial number, an Ethernet address, and a manufacturing date of the server 100. Examples of the external storage device 60 include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In step S42, the data writing module 312 writes the read data into the FRU 40 using commands, such as intelligent platform management interface (IPMI) commands.
In step S43, the control module 314 sends a first control signal to close the switch 50, to establish a connection between the EEPROM 20 and the BMC 30 and a connection between the EEPROM 20 and the FRU 40. For example, the control module 314 may control the BMC to produce a high-level voltage signal (such as a logic 1) to close the switch 50.
In step S44, the data read module 311 reads the data from the FRU 40 using the IPMI commands, for example.
In step S45, the determination module S313 determines whether the data stored in the EEPROM 20 is the same as the data stored in the FRU 40. If the data stored in the EEPROM 20 is the same as the data stored in the FRU 40, step S47 is implemented, the control module 314 sends a second control signal to open the switch 50. Otherwise, if the data stored in the EEPROM 20 is different from the data stored in the FRU 40, step S46 is implemented, the data read module 311 reads the data from the FRU 40, and the data writing module 312 writes the read data into the EEPROM 20 using intelligent platform management interface (IPMI) commands. In this embodiment, the second control signal is a low-level voltage signal (such as a logic 0).
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110097702.2 | Apr 2011 | CN | national |