Structured disaster backup system and backup method
Technical field
The present invention relates to the DB Backup technology,, relate to structurized disaster backup system with specifically.
Background technology
Usually, for large-scale database, all need to be equipped with disaster backup system, disaster backup system is geographically isolated with main system, and need separate suitable distance, in the time of can't working for a certain reason to be implemented in main system, can take over the work of main system, continue to provide service.
Because disaster backup system need realize identical work with main system, thus backup center need dispose with main system with a series of, that the performance class is approaching main frame and corresponding database.In the configuration of traditional backup center, use several (such as two 2M's) special lines to link to each other with main system, utilize the Log backup of database and Restoration Mechanism to carry out data sync between main system and the standby system.
More particularly, can check whether have new archive log to need to transmit every ten minutes at the database server running background monitoring process of main system.In case there is new journal file to generate, just be sent to standby system immediately, divide every day simultaneously in standby system, new incoming day to be aimed at recovering in the standby database for three times.Like this, the data difference of two places will remain in the journal file (127M, about 30,000 transaction records), realize " synchronously accurate " between the data of two places.
Adopt traditional backup scenario, have following shortcoming:
1) data sync that only can realize " quasi real time " of this scheme.When main system disaster occurs and can't read hard disc data, will some data lose (may be at most a journal file 127M, about 30,000 transaction records).When database had higher requirement for real-time service, perhaps transaction record had when not reproducible, and the operation of database can be subjected to remarkable influence.
2) present backup policy all is the whole backup of switching, that is, any one parts in the main system break down, and when it can have influence on the overall operation of main system, the integral body of main system all switched to the standby system operation.Such backup policy obviously need spend more time, and present BACKUP TIME is usually all in dozens of minutes to tens hour, and is same, for the database that real-time service has high requirement, can obviously experience backup and switch the influence that brings.
Summary of the invention
At above-mentioned problem, embodiments of the invention provide a kind of structured disaster backup system and backup method, can either realize data between main system and the standby system fully synchronously, can when backup, realize switching apace again.
According to embodiments of the invention, a kind of structured disaster backup system is provided, comprise a main system and a standby system, main system comprises interconnected server subsystem, storage subsystem, network subsystem and communication subsystem, standby system comprises:
The server backup subsystem corresponding to server subsystem, and is realized being connected with storage subsystem, network subsystem and communication subsystem;
The storage backup subsystem corresponding to storage subsystem, and is realized being connected with server subsystem network subsystem and communication subsystem;
The network backup subsystem corresponding to network subsystem, and is realized being connected with server subsystem, storage subsystem and communication subsystem;
The backup communication subsystem corresponding to communication subsystem, and is connected with server subsystem, storage subsystem, network subsystem;
Wherein, be connected to each other between server backup subsystem, storage backup subsystem, network backup subsystem and the backup communication subsystem;
When one in the main system or several subsystem faults, the subsystem that breaks down switches to corresponding subsystem in the standby system, and the subsystem that does not break down in the main system continues to use, and when the main system overall failure, integral body switches to standby system.
The port that this main system provides comprises: atm port, pass through optical fiber access main system for the user; The dial-up access port is visited main system for the user by dial-up access; The internet side mouth, the realization main system is connected with Internet's; Backup port is connected with standby system, carries out data sync.The port that this standby system provides comprises: atm port, and when switching to standby system work, the user of visit main system atm port is routed to the atm port of standby system; The dial-up access port, when switching to standby system work, the user of visit main system dial-up access port is routed to the dial-up access port of standby system; The internet side mouth, the realization standby system is connected with Internet's, and when switching to standby system work, standby system replaces main system to be connected to Internet; The main system port is connected with main system, carries out data sync.
According to an embodiment, the main system port of the backup port of main system and standby system is by the optical fiber direct connection, and main system and standby system backing up in realtime by optical fiber direct connection realization main system and standby system data.
The user of visit main system or standby system comprises:
One class user, the mode of first-selected visit main system or standby system is that optical fiber inserts, mode first dial-up access of alternative visit main system or standby system, first dial-up access is ISDN;
Two class users, the mode of first-selected visit main system or standby system is first dial-up access, and described first dial-up access is ISDN, and mode second dial-up access of alternative visit main system or standby system, second dial-up access are Modem or simulation Modem;
Three class users, the mode of first-selected visit main system or standby system is first dial-up access, first dial-up access is ISDN.
Above-mentioned three class users' route comprises in proper order:
One class user, first Route Selection is by optical fiber visit main system, it is by first dial-up access visit main system that secondary route is selected, and Third Road is by optical fiber visit standby system by selecting, and the 4th Route Selection is by first dial-up access visit standby system;
Two class users, first Route Selection is by first dial-up access visit main system, it is by second dial-up access visit main system that secondary route is selected, and Third Road is by first dial-up access visit standby system by selecting, and the 4th Route Selection is by second dial-up access visit standby system;
Three class users, first Route Selection is by first dial-up access visit main system, it is by first dial-up access visit standby system that secondary route is selected.
According to an embodiment, the bandwidth of the bandwidth of standby system and the connection line of Internet and the connection line of main system and Internet is identical, the connection line of standby system and Internet is in the cold standby state when the main system operate as normal, just open when the main system fault; Standby system uses domain name and the IP address identical with main system with the connection line of Internet.
According to embodiments of the invention, a kind of structured disaster backup method is provided, be applied to a main system and a standby system, comprising:
Main system is divided into server subsystem, storage subsystem, network subsystem and communication subsystem, and interconnects between each subsystem;
Set up the server backup subsystem,, and realize being connected with storage subsystem, network subsystem and communication subsystem corresponding to server subsystem;
Set up the storage backup subsystem,, and realize being connected with server subsystem, network subsystem and communication subsystem corresponding to storage subsystem;
Set up the network backup subsystem,, and realize being connected with server subsystem, storage subsystem and communication subsystem corresponding to network subsystem;
Set up the backup communication subsystem,, and be connected with server subsystem, storage subsystem, network subsystem corresponding to communication subsystem;
Make and be connected to each other between server backup subsystem, storage backup subsystem, network backup subsystem and the backup communication subsystem;
Wherein, when one in the main system or several subsystem faults, only the subsystem that breaks down is switched to corresponding subsystem in the standby system, the subsystem that does not break down in the main system continues to use, when the main system overall failure, integral body switches to standby system.
According to an embodiment, this method also connects main system and standby system by the optical fiber direct connection, and realizes backing up in realtime of main system and standby system data by the optical fiber direct connection; And standby system is connected to Internet, the bandwidth of the bandwidth of standby system and the connection line of Internet and the connection line of main system and Internet is identical, the connection line of standby system and Internet is in the cold standby state when the main system operate as normal, when the main system fault, just open, and standby system uses domain name and the IP address identical with main system with the connection line of Internet.
According to an embodiment, in this method, provide the user's of visit main system or standby system route to be in proper order:
One class user, first Route Selection is by optical fiber visit main system, it is by first dial-up access visit main system that secondary route is selected, and Third Road is by optical fiber visit standby system by selecting, and the 4th Route Selection is by first dial-up access visit standby system; One class user's the first-selection visit main system or the mode of standby system are that optical fiber inserts, mode first dial-up access of alternative visit main system or standby system, and first dial-up access is ISDN;
Two class users, first Route Selection is by first dial-up access visit main system, it is by second dial-up access visit main system that secondary route is selected, and Third Road is by first dial-up access visit standby system by selecting, and the 4th Route Selection is by second dial-up access visit standby system; Two class users' the first-selection visit main system or the mode of standby system are first dial-up access, and first dial-up access is ISDN, and mode second dial-up access of alternative visit main system or standby system, second dial-up access are Modem or simulation Modem;
Three class users, first Route Selection is by first dial-up access visit main system, it is by first dial-up access visit standby system that secondary route is selected; Three class users' the first-selection visit main system or the mode of standby system are first dial-up access, and first dial-up access is ISDN.
In the solution of the present invention, whole system is divided into several modules, when some modules break down, only this module is switched to the corresponding module in the standby system, the module of remaining operate as normal then still continues to use in the main system, like this, can shorten greatly and switch the required time, in the solution of the present invention, when the backup of carrying out certain module was switched, the time of switching can shorten to minute level or second level.Thus, improved the efficient of backup greatly.Simultaneously, the present invention uses optical fiber directly to carry out data backup in real time between main system and standby system, has improved the accuracy of data in the standby system.
Description of drawings
Fig. 1 is the structural representation of structured disaster backup system according to an embodiment of the invention;
Fig. 2 is the flow chart of structured disaster backup system according to an embodiment of the invention.
Embodiment
At first with reference to figure 1, the main design philosophy of structured disaster backup system of the present invention is with system modular, so that backing up when switching and can carrying out the part, accelerate the speed of backup.As shown in Figure 1, this structured disaster backup system comprises a main system 10 and a standby system 20, and main system 10 comprises interconnected server subsystem 11, storage subsystem 12, network subsystem 13 and communication subsystem 14, and standby system 20 comprises:
Server backup subsystem 21 corresponding to server subsystem 11, and is realized being connected with storage subsystem 12, network subsystem 13 and communication subsystem 14;
Storage backup subsystem 22 corresponding to storage subsystem 12, and is realized being connected with server subsystem 11, network subsystem 13 and communication subsystem 14;
Network backup subsystem 23 corresponding to network subsystem 13, and is realized being connected with server subsystem 11, storage subsystem 12 and communication subsystem 14;
Backup communication subsystem 24 corresponding to communication subsystem 14, and is connected with server subsystem 11, storage subsystem 12, network subsystem 13;
Wherein, be connected to each other between described server backup subsystem, storage backup subsystem, network backup subsystem and the backup communication subsystem;
When one in the main system 10 or several subsystem faults, if this fault does not need to carry out whole switching, then only the subsystem that breaks down is switched to corresponding subsystem in the standby system, and the subsystem that does not break down in the main system continues to use.Such as, when the server subsystem in the main system 10 11 breaks down, only use the server backup subsystem 21 in the standby system 20 to substitute this server subsystem 11, the storage subsystem 12 in the main system 10, network subsystem 13 and communication subsystem 14 then continue to use.Because server subsystem 11, storage subsystem 12, network subsystem 13 and communication subsystem 14 in the main system 10 and the backup server subsystem 21 in the standby system 20, back-up storage subsystem 22, backup network subsystem 23 and backup communication subsystem 24 all are to realize interconnectedly, so backup server subsystem 21 can be taken over server subsystem 11 easily and works on.Only replacing the required operation comparison main system 10 of carrying out of parts in the main system 10, to carry out whole replacement many simply, also can save a large amount of time, can shorten to a few minutes or even a few second the switching time when therefore, the present invention makes that by above-mentioned modularized design carrying out incremental backup switches.When main system 10 has a plurality of unit failures, when causing overall failure, just main system 10 integral body are switched to standby system 20.
In an application example, above-mentioned main system 10 provides following connectivity port, comprising:
Atm port passes through optical fiber access main system for the user.
The dial-up access port is visited main system for the user by dial-up access, and dial-up access can be ISDM, Modem or manual simulation's Modem.
The internet side mouth is realized being connected of main system and Internet, main system can be by the internet side cause for gossip the existing business by Internet, such as inquiring about and so on.
Backup port is connected with standby system, carries out data sync.
Accordingly, standby system 20 provides following connectivity port, comprising:
Atm port, when switching to standby system work, the user of visit main system atm port is routed to the atm port of standby system.
The dial-up access port, when switching to standby system work, the user of visit main system dial-up access port is routed to the dial-up access port of standby system, and dial-up access can be ISDM, Modem or manual simulation's Modem.
The internet side mouth, the realization standby system is connected with Internet's, and when switching to standby system work, standby system replaces main system to be connected to Internet, continues the business of realization by Internet.
The main system port is connected with main system, carries out data sync.
According to an embodiment, pass through the optical fiber direct connection between the main system port of the backup port of main system and standby system, utilize the high speed of optical fiber and set private port (use of private port can reduce the influence for other business) as far as possible, can realize backing up in realtime of data between main system and the standby system.
According to an embodiment, the bandwidth of the bandwidth of standby system and the connection line of Internet and the connection line of main system and Internet is identical.Consider the needs that Internet uses, standby system uses domain name and the IP address identical with main system with the connection line of Internet.Therefore, the connection line of standby system and Internet is in the cold standby state when the main system operate as normal, just open when the main system fault.
In an application example, the user of visit main system or standby system comprises:
One class user, the mode of first-selected visit main system or standby system is that optical fiber inserts, mode first dial-up access of alternative visit main system or standby system, first dial-up access is ISDN.
Two class users, the mode of first-selected visit main system or standby system is first dial-up access, and first dial-up access is ISDN, and mode second dial-up access of alternative visit main system or standby system, second dial-up access are Modem or simulation Modem.
Three class users, the mode of first-selected visit main system or standby system is first dial-up access, first dial-up access is ISDN.
For three above-mentioned class users, the route priority that visit is set respectively is as follows:
One class user, first Route Selection is by optical fiber visit main system, it is that promptly at first whether checking is the communication link fails of user side by first dial-up access visit main system that secondary route is selected.Third Road is by optical fiber visit standby system by selecting, and the 4th Route Selection is by first dial-up access visit standby system.This shows that the user at first attempts using own all access waies that had to insert main system, if unsuccessful, the main system fault is described, will switch to standby system and work on.
Two class users, first Route Selection is by first dial-up access visit main system, it is by second dial-up access visit main system that secondary route is selected, and Third Road is by first dial-up access visit standby system by selecting, and the 4th Route Selection is by second dial-up access visit standby system.User's elementary tactics is consistent with an above-mentioned class user.
Three class users, first Route Selection is by first dial-up access visit main system, it is by first dial-up access visit standby system that secondary route is selected.Three class users may not have the standby access way of oneself, thus between attempt to insert standby system.
In one embodiment, if more, then can arrange several dial-up access ports (TMS office) by the number of users of dial mode access main system or standby system.
With reference to shown in Figure 2, the present invention also provides a kind of structured disaster backup method, is applied to a main system and a standby system, comprises following step:
100. main system is divided into server subsystem, storage subsystem, network subsystem and communication subsystem, and interconnects between each subsystem;
101. set up the server backup subsystem,, and realize being connected with storage subsystem, network subsystem and communication subsystem corresponding to server subsystem;
102. set up the storage backup subsystem,, and realize being connected with server subsystem network subsystem and communication subsystem corresponding to storage subsystem;
103. set up the network backup subsystem,, and realize being connected with server subsystem, storage subsystem and communication subsystem corresponding to network subsystem;
104. set up the backup communication subsystem,, and be connected with server subsystem, storage subsystem, network subsystem corresponding to communication subsystem;
105. make and be connected to each other between server backup subsystem, storage backup subsystem, network backup subsystem and the backup communication subsystem;
When one in the main system or several subsystem faults, only the subsystem that breaks down is switched to corresponding subsystem in the standby system, the subsystem that does not break down in the main system continues to use, and when the main system overall failure, integral body switches to standby system.
According to an embodiment, in above-mentioned method, connect main system and standby system, and realize backing up in realtime of main system and standby system data by the optical fiber direct connection by the optical fiber direct connection; And standby system is connected to Internet, the bandwidth of the bandwidth of standby system and the connection line of Internet and the connection line of main system and Internet is identical, the connection line of standby system and Internet is in the cold standby state when the main system operate as normal, when the main system fault, just open, and standby system uses domain name and the IP address identical with main system with the connection line of Internet.
According to an embodiment, for the user of visit main system or standby system, the route that this method provides is in proper order:
One class user, first Route Selection is by optical fiber visit main system, it is by first dial-up access visit main system that secondary route is selected, and Third Road is by optical fiber visit standby system by selecting, and the 4th Route Selection is by first dial-up access visit standby system; One class user's the first-selection visit main system or the mode of standby system are that optical fiber inserts, mode first dial-up access of alternative visit main system or standby system, and first dial-up access is ISDN.
Two class users, first Route Selection is by first dial-up access visit main system, it is by second dial-up access visit main system that secondary route is selected, and Third Road is by first dial-up access visit standby system by selecting, and the 4th Route Selection is by second dial-up access visit standby system; Two class users' the first-selection visit main system or the mode of standby system are first dial-up access, and first dial-up access is ISDN, and mode second dial-up access of alternative visit main system or standby system, second dial-up access are Modem or simulation Modem.
Three class users, first Route Selection is by first dial-up access visit main system, it is by first dial-up access visit standby system that secondary route is selected; Three class users' the first-selection visit main system or the mode of standby system are first dial-up access, and first dial-up access is ISDN.
Need to prove that the details in the said structure disaster backup system can be applied in the structured disaster backup method, here just no longer repeat specification.
Sum up, the present invention is divided into several modules with whole system, when some modules break down, only this module is switched to the corresponding module in the standby system, the module of remaining operate as normal then still continues to use in the main system, like this, can shorten greatly and switch the required time, in the solution of the present invention, when the backup of carrying out certain module was switched, the time of switching can shorten to minute level or second level.Thus, improved the efficient of backup greatly.Simultaneously, the present invention uses optical fiber directly to carry out data backup in real time between main system and standby system, has improved the accuracy of data in the standby system.