CN106814643B - A kind of control method and system of two-node cluster hot backup - Google Patents

A kind of control method and system of two-node cluster hot backup Download PDF

Info

Publication number
CN106814643B
CN106814643B CN201510860518.7A CN201510860518A CN106814643B CN 106814643 B CN106814643 B CN 106814643B CN 201510860518 A CN201510860518 A CN 201510860518A CN 106814643 B CN106814643 B CN 106814643B
Authority
CN
China
Prior art keywords
control panel
judging
control
mainboard
judge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510860518.7A
Other languages
Chinese (zh)
Other versions
CN106814643A (en
Inventor
李鹏斐
黄彦东
孟驰宇
孙亮
李国达
李凤梅
诺力格尔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Railway Signal Co Ltd
Original Assignee
Beijing Railway Signal Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Railway Signal Co Ltd filed Critical Beijing Railway Signal Co Ltd
Priority to CN201510860518.7A priority Critical patent/CN106814643B/en
Publication of CN106814643A publication Critical patent/CN106814643A/en
Application granted granted Critical
Publication of CN106814643B publication Critical patent/CN106814643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

The invention discloses a kind of control methods of two-node cluster hot backup, it include: to judge whether the first control panel and the second control panel can normal communications, if, then: judging after preset duration, whether the first control panel and the second control panel do not receive bus data, if not, then: judging after preset duration, whether the first control panel or the second control panel receive bus data, if so: determine the first control panel for receiving bus data or the second control panel as slave board;Judge whether mainboard breaks down, if so: control slave board is switched to mainboard, into main board work mode.The present invention simply easily realization, high reliablity, at low cost, not will cause the loss of data during active-standby switch.The invention also discloses a kind of control systems of two-node cluster hot backup.

Description

A kind of control method and system of two-node cluster hot backup
Technical field
The present invention relates to motorcycle safety informix monitoring technical field more particularly to a kind of control methods of two-node cluster hot backup And system.
Background technique
Two-node cluster hot backup is refered in particular to based on the hot standby of the two-server in high-availability system, because two machine High Availabitities use at home It is more, therefore two-node cluster hot backup of gaining the name, two-shipper High Availabitity are divided by the switching mode in work: main-standby mode and double host modes, Main-standby mode refers to that a server is in the state of activation of certain business, and another server is in the standby of the business Use state.And double host modes refer to two kinds of different business activestandby state each other on two-server respectively.
Currently, Dual-Computer Hot-Standby System guarantees contacting for main system and back-up system using " heartbeat " method.So-called " heartbeat ", It refers to mutually sending communication signal according to certain time interval between master-slave system, shows the current operation shape of respective system State.Once " heartbeat " signal stops showing that host system breaks down or back-up system can not receive " the heart of host system Jump " signal, then the high availability management software of system thinks that host system breaks down, and host stops working, and system is provided Source is transferred in back-up system, and back-up system plays a role host is substituted, to guarantee that network service operation is uninterrupted.Alternatively, On the backboard of system increase a judgment module, when powering on every time judgment module can work first determine who be host who be Standby host, when host work exception, judgment module can make standby host be switched to host.It can thus be seen that prior art design is multiple It is miscellaneous, it is not easy to realize, reliability will receive certain influence, will cause losing for partial data in host and standby host handoff procedure It loses.
Summary of the invention
It is simple easily realization, high reliablity, at low cost the present invention provides a kind of control method of two-node cluster hot backup, active and standby The loss of data is not will cause in handoff procedure.
The present invention provides a kind of control methods of two-node cluster hot backup, comprising:
Judge the first control panel and the second control panel whether can normal communication, if so:
Judge after preset duration, whether first control panel and the second control panel do not receive bus data, if It is no, then:
Judge after preset duration, whether first control panel or the second control panel receive bus data, if so, Then:
Determine the first control panel for receiving bus data or the second control panel as slave board;
Judge whether mainboard breaks down, if so:
Control slave board is switched to mainboard, into main board work mode.
Preferably, judge after preset duration, whether first control panel and the second control panel do not receive bus Data, if so:
Judge the whether not connected power supply of the pin of first control panel and the second control panel, if it is not, then:
Judge whether the pin of first control panel or the second control panel connects power supply, if so:
It determines first control panel of connection power supply or the second control panel is mainboard.
Preferably, judge the whether not connected power supply of the pin of first control panel and the second control panel, if so:
Whether the working state monitoring signal for judging first control panel and the output of the second control panel is 1, if it is not, Then:
Determine that output services status monitoring signal is 1 the first control panel or the second control panel as slave board.
Preferably, whether the working state monitoring signal for judging first control panel and the output of the second control panel is 1, If so:
Mainboard and slave board are determined by asynchronous communication.
A kind of control system of two-node cluster hot backup, comprising:
First judging unit, for judging whether the first control panel and the second control panel can normal communications;
Second judgment unit, for judging that the first control panel and the second control panel can be normal when first judging unit When communication, judge after preset duration, whether first control panel and the second control panel do not receive bus data;
Third judging unit, for judging after preset duration when second judgment unit, first control panel and second Whether control panel does not receive the result of bus data when being no, judges after preset duration, first control panel or the Whether two control panels receive bus data;
First determination unit, for judging after preset duration when third judging unit, first control panel or second When control panel receives bus data, determine the first control panel for receiving bus data or the second control panel as slave board;
4th judging unit, for judging whether mainboard breaks down;
First control unit is switched to mainboard for when the 4th judging unit judges that mainboard breaks down, controlling slave board, Into main board work mode.
Preferably, the system also includes:
5th judging unit, for judging after preset duration when second judgment unit, first control panel and second When control panel does not receive bus data, the whether not connected electricity of the pin of first control panel and the second control panel is judged Source;
6th judging unit judges that the pin of first control panel and the second control panel is for working as the 5th judging unit When the result of no not connected power supply is no, judge whether the pin of first control panel or the second control panel connects power supply;
Second determination unit, with about the pin for judging first control panel or the second control panel when the 6th judging unit When connecting power supply, determines first control panel of connection power supply or the second control panel is mainboard.
Preferably, the system also includes:
7th judging unit, for judging that the pin of first control panel and the second control panel is equal when the 5th judging unit When not connected power supply, judge whether the working state monitoring signal of first control panel and the output of the second control panel is 1;
Third determination unit, for judging the work of first control panel and the output of the second control panel when the 7th judging unit Make status monitoring signal whether be 1 result be it is no when, determine output services status monitoring signal be 1 the first control panel or Second control panel is as slave board.
Preferably, the system also includes:
4th determination unit, for judging the work of first control panel and the output of the second control panel when the 7th judging unit When making status monitoring signal and being 1, mainboard and slave board are determined by asynchronous communication.
By above scheme it is found that a kind of control method of two-node cluster hot backup provided by the invention, by judging the first control panel With the second control panel whether can normal communication, when the first control panel and the second control panel can normal communication when, when default After length, judge whether the first control panel and the second control panel receive bus data, if when the first control panel after preset duration Receive bus data, it is determined that the first control panel is slave board, and the second control panel is mainboard, if when the second control after preset duration Making sheet receives bus data, it is determined that the second control panel is slave board, and the first control panel is mainboard, when judging that mainboard breaks down When, slave board is switched to mainboard, into the operating mode of mainboard, it can thus be seen that the control method is simply easily realized, is reliable Property it is high, at low cost, not will cause the loss of data during active-standby switch.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the control method of two-node cluster hot backup disclosed in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the control method of two-node cluster hot backup disclosed in the embodiment of the present invention two;
Fig. 3 is a kind of flow chart of the control method of two-node cluster hot backup disclosed in the embodiment of the present invention three;
Fig. 4 is a kind of flow chart of the control method of two-node cluster hot backup disclosed in the embodiment of the present invention four;
Fig. 5 is a kind of structural schematic diagram of the control system of two-node cluster hot backup disclosed in the embodiment of the present invention one;
Fig. 6 is a kind of structural schematic diagram of the control system of two-node cluster hot backup disclosed in the embodiment of the present invention two;
Fig. 7 is a kind of structural schematic diagram of the control system of two-node cluster hot backup disclosed in the embodiment of the present invention three;
Fig. 8 is a kind of structural schematic diagram of the control system of two-node cluster hot backup disclosed in the embodiment of the present invention four.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, for a kind of control method of two-node cluster hot backup disclosed in the embodiment of the present invention one, comprising:
S101, judge the first control panel and the second control panel whether can normal communication, if so, into S102:
When needing to control two-node cluster hot backup, first determine whether to be mounted on the first control panel on motherboard and the second control Plate whether can normal communication, the first control panel and the second control panel can be inserted on motherboard by F48 plug, it should be noted that The physical structure of first control panel and the second control panel is just the same, and internal processes are also just the same, can be used as mainboard or Slave board.The first control panel for being mounted on motherboard of judgement and the second control panel whether can normal communication when, judgement can be passed through First control panel and the second control panel whether can receive the bus data of itself transmission and confirm it is errorless judge, when the One control panel and the second control panel can receive the bus data of itself transmission and confirmation without mistaking, determine the first control panel and Second control panel can normal communication.
S102, judge after preset duration, whether the first control panel and the second control panel do not receive bus data, if It is no, then enter S103:
When judge the first control panel and the second control panel can normal communication after, judge after preset duration, such as 100ms Afterwards, if do not receive bus data, if judging result be it is no, enter next step.
S103, judge after preset duration, whether the first control panel or the second control panel receive bus data, if so, Then enter S104:
When judging that the first control panel and the second control panel after preset duration, have one of control panel to receive number of buses According to rear, further judgement is specifically that the first control panel also the second control panel has received bus data.
S104, determine the first control panel for receiving bus data or the second control panel as slave board;
When judging that the first control panel receives bus data, the first control panel is determined as slave board, by the second control panel It is determined as mainboard;Opposite, when judging that the second control panel receives bus data, the second control panel is determined as slave board, it will First control panel is determined as mainboard.
S105, judge whether mainboard breaks down, if so, into S106:
After determining mainboard and slave board, mainboard enters operating mode, during mainboard enters operating mode, in real time Judge whether mainboard breaks down.
S106, control slave board are switched to mainboard, into main board work mode.
When judging that mainboard breaks down during the work time, slave board is switched to mainboard automatically, i.e., starting slave board allows standby Plate enters operating mode.
In conclusion in the above-described embodiments, by judging whether the first control panel and the second control panel can positive normal opens Letter, when the first control panel and the second control panel can normal communication when, after preset duration, judge that the first control panel and second is controlled Whether making sheet receives bus data, if when after preset duration the first control panel receive bus data, it is determined that first control Making sheet is slave board, and the second control panel is mainboard, if when after preset duration the second control panel receive bus data, it is determined that the Two control panels are slave board, and the first control panel is that slave board is switched to mainboard when judging that mainboard breaks down by mainboard, into master The operating mode of plate, it can thus be seen that the control method simply easily realization, high reliablity, at low cost, in active-standby switch process In not will cause the loss of data.
As shown in Fig. 2, for a kind of control method of two-node cluster hot backup disclosed in the embodiment of the present invention two, comprising:
S201, judge the first control panel and the second control panel whether can normal communication, if so, into S202:
When needing to control two-node cluster hot backup, first determine whether to be mounted on the first control panel on motherboard and the second control Plate whether can normal communication, the first control panel and the second control panel can be inserted on motherboard by F48 plug, it should be noted that The physical structure of first control panel and the second control panel is just the same, and internal processes are also just the same, can be used as mainboard or Slave board.The first control panel for being mounted on motherboard of judgement and the second control panel whether can normal communication when, judgement can be passed through First control panel and the second control panel whether can receive the bus data of itself transmission and confirm it is errorless judge, when the One control panel and the second control panel can receive the bus data of itself transmission and confirmation without mistaking, determine the first control panel and Second control panel can normal communication.
S202, judge after preset duration, whether the first control panel and the second control panel do not receive bus data, if It is no, then enter S203, if so, into S207:
When judge the first control panel and the second control panel can normal communication after, judge after preset duration, such as 100ms Afterwards, if be receive bus data, if judging result be it is no, enter next step.
S203, judge after preset duration, whether first control panel or the second control panel receive bus data, if It is then to enter S204:
When judging that the first control panel and the second control panel after preset duration, have one of control panel to receive number of buses According to rear, further judgement is specifically that the first control panel also the second control panel has received bus data.
S204, determine the first control panel for receiving bus data or the second control panel as slave board;
When judging that the first control panel receives bus data, the first control panel is determined as slave board, by the second control panel It is determined as mainboard;Opposite, when judging that the second control panel receives bus data, the second control panel is determined as slave board, it will First control panel is determined as mainboard.
S205, judge whether mainboard breaks down, if so, into S206:
After determining mainboard and slave board, mainboard enters operating mode, during mainboard enters operating mode, in real time Judge whether mainboard breaks down.
S206, control slave board are switched to mainboard, into main board work mode;
When judging that mainboard breaks down during the work time, slave board is switched to mainboard automatically, i.e., starting slave board allows standby Plate enters operating mode.
S207, the whether not connected power supply of the pin of the first control panel and the second control panel is judged, if it is not, then entering S208:
When judge the first control panel and the second control panel can normal communication after, judge after preset duration, such as 100ms Afterwards, if do not receive bus data, if not receiving bus data, pass through the first control panel of detection and the second control panel ID determine mainboard and slave board.The ID for detecting the first control panel and the second control panel is by controlling to the first control panel and second Whether the pin of making sheet connects to power supply to judge.For example, when the first control panel and the second control panel are connect with motherboard, two pieces One meeting of b12 pin of control panel connects+5V power supply, a meeting ground connection.
S208, judge whether the pin of first control panel or the second control panel connects power supply, if so, into S209:
When the one of connection power supply of the pin for judging the first control panel and the second control panel, further judgement is specifically The pin connection power supply of first control panel or the pin of the second control panel connect power supply.
S209, determine first control panel for connecting power supply or the second control panel for mainboard.
When the pin that the result judged is the first control panel connects power supply, when the pin ground connection of the second control panel, the is determined One control panel is mainboard, and the second control panel is slave board;It is opposite, when the pin that judging result is the second control panel connects power supply, When the pin ground connection of the first control panel, determine that the second control panel is mainboard, the first control panel is slave board.
In conclusion the connection of the first control panel and the second control panel pin can be passed through on the basis of a upper embodiment Mode further determines that mainboard and slave board.
As shown in figure 3, for a kind of control method of two-node cluster hot backup disclosed in the embodiment of the present invention three, comprising:
S301, judge the first control panel and the second control panel whether can normal communication, if so, into S302:
When needing to control two-node cluster hot backup, first determine whether to be mounted on the first control panel on motherboard and the second control Plate whether can normal communication, the first control panel and the second control panel can be inserted on motherboard by F48 plug, it should be noted that The physical structure of first control panel and the second control panel is just the same, and internal processes are also just the same, can be used as mainboard or Slave board.The first control panel for being mounted on motherboard of judgement and the second control panel whether can normal communication when, judgement can be passed through First control panel and the second control panel whether can receive the bus data of itself transmission and confirm it is errorless judge, when the One control panel and the second control panel can receive the bus data of itself transmission and confirmation without mistaking, determine the first control panel and Second control panel can normal communication.
S302, judge after preset duration, whether the first control panel and the second control panel do not receive bus data, if It is no, then enter S303, if so, into S307:
When judge the first control panel and the second control panel can normal communication after, judge after preset duration, such as 100ms Afterwards, if be receive bus data, if judging result be it is no, enter next step.
S303, judge after preset duration, whether first control panel or the second control panel receive bus data, if It is then to enter S304:
When judging that the first control panel and the second control panel after preset duration, have one of control panel to receive number of buses According to rear, further judgement is specifically that the first control panel also the second control panel has received bus data.
S304, determine the first control panel for receiving bus data or the second control panel as slave board;
When judging that the first control panel receives bus data, the first control panel is determined as slave board, by the second control panel It is determined as mainboard;Opposite, when judging that the second control panel receives bus data, the second control panel is determined as slave board, it will First control panel is determined as mainboard.
S305, judge whether mainboard breaks down, if so, into S306:
After determining mainboard and slave board, mainboard enters operating mode, during mainboard enters operating mode, in real time Judge whether mainboard breaks down.
S306, control slave board are switched to mainboard, into main board work mode;
When judging that mainboard breaks down during the work time, slave board is switched to mainboard automatically, i.e., starting slave board allows standby Plate enters operating mode.
S307, the whether not connected power supply of the pin of first control panel and the second control panel is judged, if it is not, then entering S308, if so, into S310:
When judge the first control panel and the second control panel can normal communication after, judge after preset duration, such as 100ms Afterwards, if do not receive bus data, if not receiving bus data, pass through the first control panel of detection and the second control panel ID determine mainboard and slave board.The ID for detecting the first control panel and the second control panel is by controlling to the first control panel and second Whether the pin of making sheet connects to power supply to judge.For example, when the first control panel and the second control panel are connect with motherboard, two pieces One meeting of b12 pin of control panel connects+5V power supply, a meeting ground connection.
S308, judge whether the pin of first control panel or the second control panel connects power supply, if so, into S309:
When the one of connection power supply of the pin for judging the first control panel and the second control panel, further judgement is specifically The pin connection power supply of first control panel or the pin of the second control panel connect power supply.
S309, determine first control panel for connecting power supply or the second control panel for mainboard;
When the pin that the result judged is the first control panel connects power supply, when the pin ground connection of the second control panel, the is determined One control panel is mainboard, and the second control panel is slave board;It is opposite, when the pin that judging result is the second control panel connects power supply, When the pin ground connection of the first control panel, determine that the second control panel is mainboard, the first control panel is slave board.
Whether S310, the working state monitoring signal for judging first control panel and the output of the second control panel are 1, if It is no, then enter S311:
When judging the pin not connected power supply of the first control panel and the second control panel, i.e., it cannot pass through the company of control panel Adapter tube foot is come when determining mainboard and slave board, the working state monitoring signal exported to the first control panel and the second control panel is sentenced It is disconnected, judge whether the working state monitoring signal of the first control panel and the output of the second control panel is 1.
S311, determine that output services status monitoring signal is 1 the first control panel or the second control panel as slave board.
When the working state monitoring signal for judging the first control panel and the output of the second control panel is not simultaneously for 1, work will be exported Make the control panel that status monitoring signal is 1 and is determined as slave board.For example, when the working state monitoring signal of the first control panel output is 1, when the working state monitoring signal of the second control panel output is 0, the first control panel is determined for slave board, based on the second control panel Plate;When the working state monitoring signal of the first control panel output is 0, the working state monitoring signal of the second control panel output is 1 When, determine that the first control panel is mainboard, the second control panel is slave board.
In conclusion the present embodiment is on the basis of the above embodiments, it can be defeated by the first control panel and the second control panel Working state monitoring signal out further determines that mainboard and slave board.
As shown in figure 4, for a kind of control method of two-node cluster hot backup disclosed in the embodiment of the present invention four, comprising:
S401, judge the first control panel and the second control panel whether can normal communication, if so, into S402:
When needing to control two-node cluster hot backup, first determine whether to be mounted on the first control panel on motherboard and the second control Plate whether can normal communication, the first control panel and the second control panel can be inserted on motherboard by F48 plug, it should be noted that The physical structure of first control panel and the second control panel is just the same, and internal processes are also just the same, can be used as mainboard or Slave board.The first control panel for being mounted on motherboard of judgement and the second control panel whether can normal communication when, judgement can be passed through First control panel and the second control panel whether can receive the bus data of itself transmission and confirm it is errorless judge, when the One control panel and the second control panel can receive the bus data of itself transmission and confirmation without mistaking, determine the first control panel and Second control panel can normal communication.
S402, judge after preset duration, whether the first control panel and the second control panel do not receive bus data, if It is no, then enter S403, if so, into S407:
When judge the first control panel and the second control panel can normal communication after, judge after preset duration, such as 100ms Afterwards, if be receive bus data, if judging result be it is no, enter next step.
S403, judge after preset duration, whether first control panel or the second control panel receive bus data, if It is then to enter S404:
When judging that the first control panel and the second control panel after preset duration, have one of control panel to receive number of buses According to rear, further judgement is specifically that the first control panel also the second control panel has received bus data.
S404, determine the first control panel for receiving bus data or the second control panel as slave board;
When judging that the first control panel receives bus data, the first control panel is determined as slave board, by the second control panel It is determined as mainboard;Opposite, when judging that the second control panel receives bus data, the second control panel is determined as slave board, it will First control panel is determined as mainboard.
S405, judge whether mainboard breaks down, if so, into S406:
After determining mainboard and slave board, mainboard enters operating mode, during mainboard enters operating mode, in real time Judge whether mainboard breaks down.
S406, control slave board are switched to mainboard, into main board work mode;
When judging that mainboard breaks down during the work time, slave board is switched to mainboard automatically, i.e., starting slave board allows standby Plate enters operating mode.
S407, the whether not connected power supply of the pin of first control panel and the second control panel is judged, if it is not, then entering S408, if so, into S410:
When judge the first control panel and the second control panel can normal communication after, judge after preset duration, such as 100ms Afterwards, if do not receive bus data, if not receiving bus data, pass through the first control panel of detection and the second control panel ID determine mainboard and slave board.The ID for detecting the first control panel and the second control panel is by controlling to the first control panel and second Whether the pin of making sheet connects to power supply to judge.For example, when the first control panel and the second control panel are connect with motherboard, two pieces One meeting of b12 pin of control panel connects+5V power supply, a meeting ground connection.
S408, judge whether the pin of first control panel or the second control panel connects power supply, if so, into S409:
When the one of connection power supply of the pin for judging the first control panel and the second control panel, further judgement is specifically The pin connection power supply of first control panel or the pin of the second control panel connect power supply.
S409, determine first control panel for connecting power supply or the second control panel for mainboard;
When the pin that the result judged is the first control panel connects power supply, when the pin ground connection of the second control panel, the is determined One control panel is mainboard, and the second control panel is slave board;It is opposite, when the pin that judging result is the second control panel connects power supply, When the pin ground connection of the first control panel, determine that the second control panel is mainboard, the first control panel is slave board.
Whether S410, the working state monitoring signal for judging first control panel and the output of the second control panel are 1, if It is no, then enter S411, if so, into S412:
When judging the pin not connected power supply of the first control panel and the second control panel, i.e., it cannot pass through the company of control panel Adapter tube foot is come when determining mainboard and slave board, the working state monitoring signal exported to the first control panel and the second control panel is sentenced It is disconnected, judge whether the working state monitoring signal of the first control panel and the output of the second control panel is 1.
S411, determine that output services status monitoring signal is 1 the first control panel or the second control panel as slave board;
When the working state monitoring signal for judging the first control panel and the output of the second control panel is not simultaneously for 1, work will be exported Make the control panel that status monitoring signal is 1 and is determined as slave board.For example, when the working state monitoring signal of the first control panel output is 1, when the working state monitoring signal of the second control panel output is 0, the first control panel is determined for slave board, based on the second control panel Plate;When the working state monitoring signal of the first control panel output is 0, the working state monitoring signal of the second control panel output is 1 When, determine that the first control panel is mainboard, the second control panel is slave board.
S412, mainboard and slave board are determined by asynchronous communication.
When the working state monitoring signal for judging the first control panel and the output of the second control panel is 1, show control panel Hardware ID failure, cannot judge the power supply or ground connection that the pin of control panel connects.At this point, the first control panel and the second control Plate can enter standby mode simultaneously in advance, and working state monitoring output can all export 1, can enable between two pieces of control panels at this time asynchronous Telecommunication circuit, each control panel can be generated according to the state of a control of oneself and serial data and be issued, will receive another piece of control panel The serial data of serial data and oneself generation that control panel issues is compared, and is host or standby host by comparing confirmation.
In conclusion the present embodiment is on the basis of the above embodiments, it, can be by opening after the hardware ID failure of control panel Mainboard and slave board are further determined that with asynchronous communication circuit.
As shown in figure 5, for a kind of control system of two-node cluster hot backup disclosed in the embodiment of the present invention one, comprising:
First judging unit 501, for judging whether the first control panel and the second control panel can normal communications;
Second judgment unit 502, for judging the first control panel and the second control panel when first judging unit When normal communication, judge after preset duration, whether first control panel and the second control panel do not receive bus data;
Third judging unit 503, for judging after preset duration when second judgment unit, first control panel and the Two control panels whether do not receive bus data result be it is no when, judge after preset duration, first control panel or Whether the second control panel receives bus data;
First determination unit 504, for judging after preset duration when third judging unit, first control panel or the When two control panels receive bus data, determine the first control panel for receiving bus data or the second control panel as slave board;
4th judging unit 505, for judging whether mainboard breaks down;
First control unit 506, based on when the 4th judging unit judges that mainboard breaks down, control slave board switches Plate, into main board work mode.
The system of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill Art effect is similar, and details are not described herein again.
As shown in fig. 6, for a kind of control system of two-node cluster hot backup disclosed in the embodiment of the present invention two, comprising:
First judging unit 601, for judging whether the first control panel and the second control panel can normal communications;
Second judgment unit 602, for judging the first control panel and the second control panel when first judging unit When normal communication, judge after preset duration, whether first control panel and the second control panel do not receive bus data;
Third judging unit 603, for judging after preset duration when second judgment unit, first control panel and the Two control panels whether do not receive bus data result be it is no when, judge after preset duration, first control panel or Whether the second control panel receives bus data;
First determination unit 604, for judging after preset duration when third judging unit, first control panel or the When two control panels receive bus data, determine the first control panel for receiving bus data or the second control panel as slave board;
4th judging unit 605, for judging whether mainboard breaks down;
First control unit 606, based on when the 4th judging unit judges that mainboard breaks down, control slave board switches Plate, into main board work mode;
5th judging unit 607, for judging after preset duration when second judgment unit, first control panel and the When two control panels do not receive bus data, judge whether the pin of first control panel and the second control panel is not connected Power supply;
6th judging unit 608, for judging the pipe of first control panel and the second control panel when the 5th judging unit When the result of the whether not connected power supply of foot is no, judge whether the pin of first control panel or the second control panel connects electricity Source;
Second determination unit 609 judges first control panel or the second control panel with about when the 6th judging unit When pin connects power supply, determines first control panel of connection power supply or the second control panel is mainboard.
The system of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 2, realization principle and skill Art effect is similar, and details are not described herein again.
As shown in fig. 7, for a kind of control system of two-node cluster hot backup disclosed in the embodiment of the present invention three, comprising:
First judging unit 701, for judging whether the first control panel and the second control panel can normal communications;
Second judgment unit 702, for judging the first control panel and the second control panel when first judging unit When normal communication, judge after preset duration, whether first control panel and the second control panel do not receive bus data;
Third judging unit 703, for judging after preset duration when second judgment unit, first control panel and the Two control panels whether do not receive bus data result be it is no when, judge after preset duration, first control panel or Whether the second control panel receives bus data;
First determination unit 704, for judging after preset duration when third judging unit, first control panel or the When two control panels receive bus data, determine the first control panel for receiving bus data or the second control panel as slave board;
4th judging unit 705, for judging whether mainboard breaks down;
First control unit 706, based on when the 4th judging unit judges that mainboard breaks down, control slave board switches Plate, into main board work mode;
5th judging unit 707, for judging after preset duration when second judgment unit, first control panel and the When two control panels do not receive bus data, judge whether the pin of first control panel and the second control panel is not connected Power supply;
6th judging unit 708, for judging the pipe of first control panel and the second control panel when the 5th judging unit When the result of the whether not connected power supply of foot is no, judge whether the pin of first control panel or the second control panel connects electricity Source;
Second determination unit 709 judges first control panel or the second control panel with about when the 6th judging unit When pin connects power supply, determines first control panel of connection power supply or the second control panel is mainboard;
7th judging unit 710, for judging the pipe of first control panel and the second control panel when the 5th judging unit Foot not connected power supply when, judge working state monitoring signal that first control panel and the second control panel export whether be 1;
Third determination unit 711, for judging first control panel and the output of the second control panel when the 7th judging unit Working state monitoring signal whether be 1 result be it is no when, determine output services status monitoring signal be 1 first control Plate or the second control panel are as slave board.
The system of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 3, realization principle and skill Art effect is similar, and details are not described herein again.
As shown in figure 8, for a kind of control system of two-node cluster hot backup disclosed in the embodiment of the present invention four, comprising:
First judging unit 801, for judging whether the first control panel and the second control panel can normal communications;
Second judgment unit 802, for judging the first control panel and the second control panel when first judging unit When normal communication, judge after preset duration, whether first control panel and the second control panel do not receive bus data;
Third judging unit 803, for judging after preset duration when second judgment unit, first control panel and the Two control panels whether do not receive bus data result be it is no when, judge after preset duration, first control panel or Whether the second control panel receives bus data;
First determination unit 804, for judging after preset duration when third judging unit, first control panel or the When two control panels receive bus data, determine the first control panel for receiving bus data or the second control panel as slave board;
4th judging unit 805, for judging whether mainboard breaks down;
First control unit 806, based on when the 4th judging unit judges that mainboard breaks down, control slave board switches Plate, into main board work mode;
5th judging unit 807, for judging after preset duration when second judgment unit, first control panel and the When two control panels do not receive bus data, judge whether the pin of first control panel and the second control panel is not connected Power supply;
6th judging unit 808, for judging the pipe of first control panel and the second control panel when the 5th judging unit When the result of the whether not connected power supply of foot is no, judge whether the pin of first control panel or the second control panel connects electricity Source;
Second determination unit 809 judges first control panel or the second control panel with about when the 6th judging unit When pin connects power supply, determines first control panel of connection power supply or the second control panel is mainboard;
7th judging unit 810, for judging the pipe of first control panel and the second control panel when the 5th judging unit Foot not connected power supply when, judge working state monitoring signal that first control panel and the second control panel export whether be 1;
Third determination unit 811, for judging first control panel and the output of the second control panel when the 7th judging unit Working state monitoring signal whether be 1 result be it is no when, determine output services status monitoring signal be 1 first control Plate or the second control panel are as slave board;
4th determination unit 812, for judging first control panel and the output of the second control panel when the 7th judging unit Working state monitoring signal when being 1, mainboard and slave board are determined by asynchronous communication.
The system of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 4, realization principle and skill Art effect is similar, and details are not described herein again.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present invention The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer, Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (2)

1. a kind of control method of two-node cluster hot backup characterized by comprising
Judge the first control panel and the second control panel whether can normal communication, if so:
Judge after preset duration, whether first control panel and the second control panel do not receive bus data, if it is not, Then:
Judge after preset duration, whether first control panel or the second control panel receive bus data, if so:
Determine the first control panel for receiving bus data or the second control panel as slave board;
Judge whether mainboard breaks down, if so:
Control slave board is switched to mainboard, into main board work mode;
Wherein, whether first control panel and the second control panel do not receive bus data, if so:
Judge the whether not connected power supply of the pin of first control panel and the second control panel, if it is not, then:
Judge whether the pin of first control panel or the second control panel connects power supply, if so:
It determines first control panel of connection power supply or the second control panel is mainboard;
Wherein, judge the whether not connected power supply of the pin of first control panel and the second control panel, if so:
Whether the working state monitoring signal for judging first control panel and the output of the second control panel is 1, if it is not, then:
Determine that output services status monitoring signal is 1 the first control panel or the second control panel as slave board;
Wherein, whether the working state monitoring signal for judging first control panel and the output of the second control panel is 1, if so, Then:
Mainboard and slave board are determined by asynchronous communication;
It is described by asynchronous communication determine mainboard and slave board, in particular to: first control panel and second control panel are same When enter standby mode, working state monitoring output is all 1, enables asynchronous communication circuit between this two pieces of control panels at this time, each to control Making sheet generates serial data according to the state of a control of oneself and issues, and one of control panel sends out another piece of control panel received The serial data of serial data and oneself generation out is compared, and is host or standby host by comparing confirmation.
2. a kind of control system of two-node cluster hot backup characterized by comprising
First judging unit, for judging whether the first control panel and the second control panel can normal communications;
Second judgment unit, for judging that the first control panel and the second control panel can normal communications when first judging unit When, judge after preset duration, whether first control panel and the second control panel do not receive bus data;
Third judging unit, for judging after preset duration when second judgment unit, first control panel and the second control Plate whether do not receive bus data result be it is no when, judge after preset duration, first control panel or second control Whether making sheet receives bus data;
First determination unit, for judging after preset duration when third judging unit, first control panel or the second control When plate receives bus data, determine the first control panel for receiving bus data or the second control panel as slave board;
4th judging unit, for judging whether mainboard breaks down;
First control unit, for when the 4th judging unit judges that mainboard breaks down, control slave board to be switched to mainboard, entrance Main board work mode;
5th judging unit, for judging after preset duration when second judgment unit, first control panel and the second control When plate does not receive bus data, the whether not connected power supply of the pin of first control panel and the second control panel is judged;
6th judging unit, for judging whether the pin of first control panel and the second control panel is equal when the 5th judging unit When the result of not connected power supply is no, judge whether the pin of first control panel or the second control panel connects power supply;
Second determination unit, for judging the pin connection electricity of first control panel or the second control panel when the 6th judging unit When source, determines first control panel of connection power supply or the second control panel is mainboard;
7th judging unit, for judging that the pin of first control panel and the second control panel does not connect when the 5th judging unit When connecing power supply, judge whether the working state monitoring signal of first control panel and the output of the second control panel is 1;
Third determination unit, for judging the work shape of first control panel and the output of the second control panel when the 7th judging unit State monitoring signals whether be 1 result be it is no when, determine output services status monitoring signal be 1 the first control panel or second Control panel is as slave board;
4th determination unit, for judging the work shape of first control panel and the output of the second control panel when the 7th judging unit When state monitoring signals are 1, mainboard and slave board are determined by asynchronous communication;
It is described by asynchronous communication determine mainboard and slave board, in particular to: first control panel and second control panel are same When enter standby mode, working state monitoring output is all 1, enables asynchronous communication circuit between this two pieces of control panels at this time, each to control Making sheet generates serial data according to the state of a control of oneself and issues, and one of control panel sends out another piece of control panel received The serial data of serial data and oneself generation out is compared, and is host or standby host by comparing confirmation.
CN201510860518.7A 2015-11-30 2015-11-30 A kind of control method and system of two-node cluster hot backup Active CN106814643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510860518.7A CN106814643B (en) 2015-11-30 2015-11-30 A kind of control method and system of two-node cluster hot backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510860518.7A CN106814643B (en) 2015-11-30 2015-11-30 A kind of control method and system of two-node cluster hot backup

Publications (2)

Publication Number Publication Date
CN106814643A CN106814643A (en) 2017-06-09
CN106814643B true CN106814643B (en) 2019-08-23

Family

ID=59155848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510860518.7A Active CN106814643B (en) 2015-11-30 2015-11-30 A kind of control method and system of two-node cluster hot backup

Country Status (1)

Country Link
CN (1) CN106814643B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110837443A (en) * 2018-08-16 2020-02-25 佛山市顺德区顺达电脑厂有限公司 Backup method and backup system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017366A (en) * 2006-12-08 2007-08-15 清华大学 Double generator redundancy control system
CN102073562A (en) * 2010-12-31 2011-05-25 山石网科通信技术(北京)有限公司 Hardware-based main/standby switch arbitration method
WO2012075200A3 (en) * 2010-12-01 2012-08-16 Lsi Corporation Dynamic higher-level redundancy mode management with independent silicon elements
CN103139033A (en) * 2013-02-06 2013-06-05 浙江中控技术股份有限公司 Primary device redundancy switching method of single main communication control bus
CN104424680A (en) * 2013-09-04 2015-03-18 苏州元澄智能科技有限公司 Entrance guard redundancy control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017366A (en) * 2006-12-08 2007-08-15 清华大学 Double generator redundancy control system
WO2012075200A3 (en) * 2010-12-01 2012-08-16 Lsi Corporation Dynamic higher-level redundancy mode management with independent silicon elements
CN102073562A (en) * 2010-12-31 2011-05-25 山石网科通信技术(北京)有限公司 Hardware-based main/standby switch arbitration method
CN103139033A (en) * 2013-02-06 2013-06-05 浙江中控技术股份有限公司 Primary device redundancy switching method of single main communication control bus
CN104424680A (en) * 2013-09-04 2015-03-18 苏州元澄智能科技有限公司 Entrance guard redundancy control system

Also Published As

Publication number Publication date
CN106814643A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN101443778B (en) Communication system, authentication method, information processing device, information processing method, and battery
CN100459447C (en) Method for realizing master and spare conversion of distributing connection equipment
CN107065830A (en) A kind of dual redundant hot backup system based on arbitration mode
CN102724093B (en) A kind of ATCA machine frame and IPMB method of attachment thereof
CN103139033B (en) Single main communications control bus main equipment redundancy switching method
TW201331744A (en) USB hub for supplying power and method thereof
CN103809724A (en) Equipment cabinet and power source control method thereof
CN110427283B (en) Dual-redundancy fuel management computer system
CN102033850A (en) Portable terminal and control method thereof, portable device and control method thereof
CN101378267A (en) Primary and secondary switching device, and switching method using the same
CN103441863A (en) Double-server hot standby system in blank pipe automatic system and control method thereof
CN104516306A (en) Redundant automation system
CN103425553A (en) Duplicated hot-standby system and method for detecting faults of duplicated hot-standby system
CN103809723A (en) Equipment cabinet and power source control method thereof
CN104503947B (en) Multipath server and its signal processing method
CN205068150U (en) Redundant control system
CN107025152A (en) The method of data synchronization of the dual redundant hot spare devices of task based access control level
CN103428114A (en) ATCA (advanced telecom computing architecture) 10-gigabit switching board and system
JP3952298B2 (en) Distributed power supply system and control program for distributed power supply system
CN106814643B (en) A kind of control method and system of two-node cluster hot backup
CN101291201A (en) Heart beat information transmission system and method
CN103793300A (en) Fast active-standby switching device in hot-standby system and active-standby switching method
CN109976489A (en) Automatically reset realization method and system under a kind of iic bus abnormal conditions
CN207992997U (en) I2C bus systems
CN203733107U (en) Quick active/standby shifting device in active-standby system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant