A kind of two-way SGPIO switching method and system based on redundancy SAS backboard
Technical field
The invention belongs to technical field of circuit design, and in particular to a kind of two-way SGPIO switching based on redundancy SAS backboard
Method and system.
Background technique
The development of server technology now is higher and higher to the reliability requirement of server, and RAID card must match as server
Peripheral hardware, as the self-operated controller of system and data, failure directly affects client and service;RAID card redundancy be
System reliability provides safeguard, and RAID card data redundancy can be realized by RAID card redundancy.
But the hard disk backboard LED control interconnected with RAID card can not be directly realized by by RAID card redundancy, hard disk backboard
LED light is realized by SGPIO, cannot achieve the automatic switchover of two-way SGPIO, different in main RAID card to reach hard disk backboard LED
It is often switched to from after RAID card and switches purpose without interval.This is in place of the deficiencies in the prior art.
Therefore, in view of the above-mentioned drawbacks in the prior art, provide and design a kind of two-way SGPIO based on redundancy SAS backboard
Switching method and system.
Summary of the invention
It is an object of the present invention to be carried on the back in view of the above-mentioned drawbacks of the prior art, providing and designing one kind based on redundancy SAS
The two-way SGPIO switching method and system of plate, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A kind of two-way SGPIO switching method based on redundancy SAS backboard, which comprises the following steps:
S1: being arranged the main RAID card being mutually redundant and is connected to SAS backboard from RAID card, and by main RAID card and from RAID card
Control chip;
S2: standby from RAID card when main RAID card works normally;At this point, the end SGPIO of main RAID card issues
The clock signal of 100KHz is high level from the end the SGPIO clock signal of RAID card;Control the corresponding hard disk instruction of chip controls
Lamp is bright;
S3: it when main RAID card exception, activates from RAID card;The end the SGPIO clock signal of main RAID card is high level, from RAID
The end SGPIO of card issues the clock signal of 100KHz;After control chip receives clock signal, corresponding hard disk indication lamp is controlled
It is bright.
Preferably, in the step S1, main RAID card and also passes through SAS bus from RAID card and be connected to SAS backboard
Control chip.
Preferably, in the step S1, main RAID card and the control that SAS backboard is connected to from the end SGPIO of RAID card
Chip.
The present invention gives a kind of two-way SGPIO switching system based on redundancy SAS backboard characterized by comprising
Main RAID card, the end SGPIO from RAID card, main RAID card and from RAID card are all connected to the control chip of SAS backboard;It is main
RAID card and also passes through SAS bus from RAID card and be connected to SAS backboard;
The control chip is connected with LED light.
Preferably, when main RAID card works normally, it is standby from RAID card;At this point, the SGPIO of main RAID card
End issues the clock signal of 100KHz, is high level from the end the SGPIO clock signal of RAID card;It is hard accordingly to control chip controls
Disk indicator light is bright.
Preferably, activating when main RAID card exception from RAID card;The end the SGPIO clock signal of main RAID card is high electricity
It is flat, the clock signal of 100KHz is issued from the end SGPIO of RAID card;After control chip receives clock signal, control is corresponding
Hard disk indication lamp is bright.
The beneficial effects of the present invention are according to the technical solution of the present invention, by main RAID card and from the SGPIO of RAID card
It is signally attached on the control chip of SAS backboard, the automatic switchover of two-way SGPIO is realized, to reach hard disk backboard LED in master
RAID card, which is switched to extremely from after RAID card, switches purpose without interval.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation
Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of two-way SGPIO switching system based on redundancy SAS backboard provided by the invention.
Fig. 2 is the SGPIO connection schematic diagram of main RAID card when main RAID card work is awaited orders from RAID card.
Fig. 3 is to be connected to schematic diagram from the SGPIO of RAID card when main RAID card failure works from RAID card.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention
Explanation, and the invention is not limited to following implementation.
Embodiment 1:
A kind of two-way SGPIO switching method based on redundancy SAS backboard, which comprises the following steps:
S1: being arranged the main RAID card being mutually redundant and is connected to SAS backboard from RAID card, and by main RAID card and from RAID card
Control chip;
S2: standby from RAID card when main RAID card works normally;At this point, the end SGPIO of main RAID card issues
The clock signal of 100KHz is high level from the end the SGPIO clock signal of RAID card;Control the corresponding hard disk instruction of chip controls
Lamp is bright;
S3: it when main RAID card exception, activates from RAID card;The end the SGPIO clock signal of main RAID card is high level, from RAID
The end SGPIO of card issues the clock signal of 100KHz;After control chip receives clock signal, corresponding hard disk indication lamp is controlled
It is bright.
In the present embodiment, in the step S1, main RAID card and also passes through SAS bus from RAID card and be connected to SAS backboard
Control chip.
In the present embodiment, in the step S1, main RAID card and the control that SAS backboard is connected to from the end SGPIO of RAID card
Coremaking piece.
Embodiment 2:
As shown in Figure 1-3, a kind of two-way SGPIO switching system based on redundancy SAS backboard provided in this embodiment, feature exist
In, comprising:
Main RAID card, the end SGPIO from RAID card, main RAID card and from RAID card are all connected to the control chip of SAS backboard;It is main
RAID card and also passes through SAS bus from RAID card and be connected to SAS backboard;
The control chip is connected with LED light.
It is standby from RAID card when main RAID card works normally in the present embodiment;At this point, main RAID card
The end SGPIO issues the clock signal of 100KHz, is high level from the end the SGPIO clock signal of RAID card;Control chip controls phase
The hard disk indication lamp answered is bright.
In the present embodiment, when main RAID card exception, activation is from RAID card;The end the SGPIO clock signal of main RAID card is height
Level issues the clock signal of 100KHz from the end SGPIO of RAID card;After control chip receives clock signal, control is corresponding
Hard disk indication lamp it is bright.
For Fig. 1 into Fig. 3, SGPIO0 represents the end SGPIO of main RAID card, and SGPIO1 is represented from the end SGPIO of RAID card,
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, the technology of any this field
What personnel can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and profit
Decorations, should all be within the scope of the present invention.