Background technology
With the rise of the technologies such as internet, cloud computing and big data, server has become strategic infrastructure.
Under the overall situation of server demands amount rapid growth, the demands such as manageability, maintainability, stability of server become to get over
Come more important.Wherein, server disposition and management all use BMC (Baseboard Management Controller, substrate
Management Controller) as the scheme of outband management system master absolute majority is accounted for, this is also proposed to BMC band external system stability
Higher requirement.In addition, BMC outband managements system, as a set of independent system, update BMC programs have been to safeguard entirely
The means that must be used that server system is stablized.When BMC systems need to update the improper FLASH damages for BMC occur or BMC
FLASH go wrong in itself, will just influence management and the O&M of entire server, and influence stablizing and making for server system
Into customer care inconvenience.
In addition, current server system, the redundancy approach of the FLASH about BMC, current each manufacturer server is not yet
Pay much attention to.Major part server system is all that BMC only has unique FLASH modules (or FLASH chip) or remaining at present
What part manufacturer took is the replacement that FLASH modules are carried out by the way of pedestal dismounting, has the advantages that maintain easily, but
The method needs to power off, the FLASH modules that could more renew.
For the problems in the relevant technologies, currently no effective solution has been proposed.
Invention content
For the problems in the relevant technologies, the present invention proposes a kind of redundant apparatus and its control method.
The technical proposal of the invention is realized in this way:
According to an aspect of the invention, there is provided a kind of redundant apparatus.
The redundant apparatus includes:BMC module, CPLD modules, SPI switch modules, two FLASH modules, wherein, BMC moulds
Block and the communication connection of CPLD modules and SPI switch modules are opened respectively with BMC module and the communication connection of CPLD modules and SPI
Module is closed to communicate to connect with two FLASH moulds FLASH module in the block.
According to one embodiment of present invention, BMC module is communicated to connect by the first GPIO interface and CPLD modules.
According to one embodiment of present invention, CPLD modules are communicated to connect by the second GPIO interface and SPI switch modules.
According to one embodiment of present invention, the connection of the SPI interface of SPI switch modules and BMC module and SPI switches
SPI interface of the module also with two FLASH moulds FLASH module in the block is connect.
According to another aspect of the present invention, a kind of control method is provided.
The control method includes:CPLD modules send control signal to SPI switch modules;SPI switch modules are according to reception
To control signal, disconnect the communication connection with current FLASH modules and establish communication connection with another FLASH module;
CPLD modules send reset signal to BMC module, so that BMC module is initialized.
According to one embodiment of present invention, it further includes:Within the preset period, CPLD modules determine whether to receive
The ready signal that BMC module is sent;In the case where CPLD modules receive ready signal, BMC module normal operation;In CPLD
In the case that module does not receive ready signal, CPLD modules send control signal to SPI switch modules.
According to one embodiment of present invention, it further includes:After BMC module initialization, BMC module is sent to CPLD modules
Ready signal.
The advantageous effects of the present invention are:
The present invention by BMC module and CPLD modules communication connection and SPI switch modules respectively with BMC module and
The communication connection of CPLD modules and SPI switch modules and two FLASH moulds FLASH module in the block communicate to connect, so as to
Flexibly control which FLASH module BMC module connects by CPLD modules, and then can realize the FLASH modules of server B MC
Redundancy, meanwhile, server maintenance efficiency and server BMC management stability can also be promoted.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art's all other embodiments obtained belong to what the present invention protected
Range.
According to an embodiment of the invention, a kind of redundant apparatus is provided.
As shown in Figure 1, redundant apparatus according to embodiments of the present invention includes:BMC module, CPLD (Complex
Programmable Logic Device, Complex Programmable Logic Devices) module, SPI switch modules (or SPI switch chips),
Two FLASH modules, wherein, BMC module and CPLD modules communication connection and SPI switch modules respectively with BMC module and
The communication connection of CPLD modules and SPI switch modules and two FLASH moulds FLASH module in the block communicate to connect.
In this embodiment, as shown in Figure 1, the redundant apparatus includes:BMC module, CPLD modules, SPI switch modules, two
A FLASH modules, wherein, which includes:FLASH A modules and FLASH B modules, BMC module and CPLD moulds
Block communicates to connect, meanwhile, which also connect simultaneously with BMC module and CPLD modules respectively, in addition, SPI switching moldings
Block acquiescence links together FLASH A modules and BMC module, in the case where FLASH A modules break down, passes through CPLD
The control signal of module, the SPI switch modules link together BMC module and FLASH B modules, that is, are disconnected FLASH A
Module is connected with BMC module volume.In addition, the BMC module and SPI switch modules pass through SPI (Serial Peripheral
Interface, Serial Peripheral Interface (SPI)) interface connection and the SPI switch modules and FLASH A modules or FLASH B modules
Connection is also what is realized by SPI interface.
In addition, the concrete signal connection of the redundant apparatus is as follows:Select the GPIO (General of a BMC module
Purpose Input Output, universal input/output) interface send out ready (READY) signal access CPLD module conducts
BMC module normal initialization completes signal;The control signal that the GPIO interface of one CPLD module of selection is sent out goes control SPI to open
Close module;One SPI switch module of selection is used to switch which FLASH module BMC module connects;One CPLD module of selection
The signal that GPIO interface is sent out accesses reset (RESET) signal of BMC module and BMC peripheral chips as output signal.
By means of the above-mentioned technical proposal of the present invention, switched by BMC module and the communication connection of CPLD modules and SPI
Module respectively with BMC module and the communication connection of CPLD modules and SPI switch modules and one in the block of two FLASH moulds
FLASH modules communicate to connect, so as to flexibly control which FLASH module BMC module connects, and then can realize by CPLD modules
The redundancy of the FLASH modules of server B MC, meanwhile, server maintenance efficiency can also be promoted and server BMC management is stablized
Property.
According to one embodiment of present invention, BMC module is communicated to connect by the first GPIO interface and CPLD modules.
According to one embodiment of present invention, CPLD modules are communicated to connect by the second GPIO interface and SPI switch modules.
According to one embodiment of present invention, according to one embodiment of present invention, SPI switch modules and BMC module
The SPI interface of SPI interface connection and SPI switch modules also with two FLASH moulds FLASH module in the block is connect, from
And the SPI switch modules are by by the SPI of the SPI interface of BMC module and two FLASH moulds FLASH module in the block
The connection of interface, to realize the connection of BMC module and a FLASH module.
According to an embodiment of the invention, a kind of control method is additionally provided.
As shown in Fig. 2, control method according to embodiments of the present invention includes:Step S201, CPLD module is to SPI switching moldings
Block sends control signal;SPI switch modules are according to control signal is received, and disconnection and the communication connection of current FLASH modules are simultaneously
It establishes and communicates to connect with another FLASH module;CPLD modules send reset signal to BMC module, so that BMC module carries out
Initialization.
According to one embodiment of present invention, it further includes:Within the preset period, CPLD modules determine whether to receive
The ready signal that BMC module is sent;In the case where CPLD modules receive ready signal, BMC module normal operation;In CPLD
In the case that module does not receive ready signal, CPLD modules send control signal to SPI switch modules.
According to one embodiment of present invention, it further includes:After BMC module initialization, BMC module is sent to CPLD modules
Ready signal.
In order to preferably describe technical scheme of the present invention, it is described in detail below by specific embodiment.
First, as the program placed in above-mentioned FLASH A modules and FLASH B modules is, so as to protect
FLASH modules after card switching are remained to so that BMC module is normally worked.In addition, as shown in figure 3, under normal circumstances,
SPI switch modules acquiescence connects BMC module with FLASH A modules, and after system electrification, BMC module is at FLASH A modules
Obtain startup program.Then, the ready signal of BMC module is transmitted to by BMC module after completing to initialize by GPIO interface
CPLD modules, at this time CPLD will not take measures.But when BMC module update failure or FLASH A modules exist in itself
During problem, BMC module can not be completed to initialize by the FLASH A modules of acquiescence at this time, then, BMC module will be unable at this time
Ready signal is transmitted to by CPLD modules by GPIO interface, CPLD modules can be in the preset time (such as 3 minutes) powered on, such as
Fruit does not receive the ready signal that BMC module is sent, and then CPLD modules will control SPI switch modules by GPIO interface,
The SPI of BMC module is connected to FLASH B modules, the reset signal of BMC module is then controlled, reinitializes BMC module,
BMC module is allowed to complete initialization program loading from FLASH B modules.
In conclusion by means of the above-mentioned technical proposal of the present invention, communicated to connect by BMC module and CPLD modules, with
And SPI switch modules respectively with BMC module and CPLD modules communication connection and SPI switch modules and two FLASH modules in
The communication connection of a FLASH module, so as to BMC module flexibly be controlled to connect which FLASH module by CPLD modules, and then
The redundancy of the FLASH modules of server B MC can be achieved, meanwhile, server maintenance efficiency and server BMC pipes can also be promoted
Manage stability.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.