CN103036722A - Method for achieving server hot backup in diskless system - Google Patents

Method for achieving server hot backup in diskless system Download PDF

Info

Publication number
CN103036722A
CN103036722A CN2012105416565A CN201210541656A CN103036722A CN 103036722 A CN103036722 A CN 103036722A CN 2012105416565 A CN2012105416565 A CN 2012105416565A CN 201210541656 A CN201210541656 A CN 201210541656A CN 103036722 A CN103036722 A CN 103036722A
Authority
CN
China
Prior art keywords
server
client
data
servers
master
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.)
Pending
Application number
CN2012105416565A
Other languages
Chinese (zh)
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.)
FOUNDER TECHNOLOGY GROUP CORP
Original Assignee
FOUNDER TECHNOLOGY GROUP CORP
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 FOUNDER TECHNOLOGY GROUP CORP filed Critical FOUNDER TECHNOLOGY GROUP CORP
Priority to CN2012105416565A priority Critical patent/CN103036722A/en
Publication of CN103036722A publication Critical patent/CN103036722A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method for achieving server hot backup in a diskless system. The diskless system comprises a client-side and at least two servers. The method comprises the steps that synchronization and data consistency are kept among servers, one of the servers is a main server and other servers are auxiliary servers; the client-side reads data information from the main server through a network, and simultaneously writes data information into the main server and the auxiliary servers according to input operations of a user; and when the main server is broken down, the client-side resets one server of the other servers as a main server, and operations of data reading or data writing are conducted through the main server. The servers conduct data information reading and writing operations in a manner of sectors. A data information storage area is a virtual disk mirror image document. According to the method for achieving the server hot backup in the diskless system, a function of mutual hot backup among the servers under diskless network multi-server environment can be achieved, working property is stable and reliable, and applicable range is wide.

Description

Without the method that realizes the server Hot Spare in the disc system
Technical field
The invention belongs to areas of information technology, relate to the multiserver real time backup method, be specifically related to a kind of method that in without disc system, realizes the server Hot Spare.
Background technology
In the prior art, the technology that conventional multiserver is backed up in realtime realizes by the server cluster mode that generally the cost of its realization and maintenance is very high.So in generally without the Disk Network environment, multiserver backup is not real-time, such as the delay situation of machine of generation server, client can be out of service, and must restart client could start operation from other backup servers.Can cause like this producing the problem that client data is lost.
Summary of the invention
The objective of the invention is to overcome above-mentioned the problems of the prior art, a kind of method without realizing the server Hot Spare in the disc system is provided, the method can realize without the function of Hot Spare each other between the server under the Disk Network environment of multi-server, and stable and reliable working performance, the scope of application are comparatively extensive.
To achieve these goals, the technical solution used in the present invention is as follows:
A kind of method without realizing the server Hot Spare in the disc system describedly comprises client and two-server at least without disc system, and described client is connected with each server by network, said method comprising the steps of:
1) the synchronous and data consistency of maintenance between described each server, an and described client setting wherein station server is master server, and other server is secondary server;
2) described client is by network read data information from described master server, and according to user's input operation data writing information in described master server and the described secondary server simultaneously;
When 3) described master server broke down, the station server that described client resets in other server was master server, and undertaken step 2 by this master server) described reading or the operation of data writing.
In the said method, the data message read-write mode in the described server is for to carry out read-write operation in the mode of sector.
In the said method, the data information memory zone in the described server is the virtual disk image file.
In the said method, whether described server detects a mirror image bag version number every a Preset Time consistent, if inconsistent, then to carry out the mirror image bag from master server synchronous for secondary server.Preferably, described Preset Time was 1 second.
A kind of adopt said method realize the server Hot Spare without disc system, comprise client and two-server at least, described client is connected with each server by network; Keep synchronous and data consistency between described each server, and wherein a station server is master server, other server is secondary server; Described client is by network read data information from described master server, and writes input data information simultaneously in described master server and described secondary server according to user's input operation; When described master server broke down, the station server that described client is set in other server was master server.
Method without realizing the control of server Hot Spare in the disc system of the present invention, because wherein the virtual disk image file of server is to read and write in the mode of sector, rather than with the read-write of the form of file, thereby synchronous data are identical between the assurance server, and the data that client reads when switching server also are on all four; Client is when writing ephemeral data to server simultaneously, can be simultaneously toward two each other the server of Hot Spare respectively write a identical data, so just guaranteed when a station server has fault, client can continue normally to read and write data from another hot standby server, and the situation of loss of data can not occur, thereby realized without the function of Hot Spare each other between the server under the Disk Network environment of multi-server.Even the client of server institute load also can on-line automaticly switch to normal server under the state of start operation, client can not crash, not have yet pause, and operation is fully normal, thereby client is not had any impact; Client can automatically be converted to normal server and read and write data, and this process is transparent, seamless for the user, and stable and reliable working performance, the scope of application are comparatively extensive, especially can be applied to the industry of the high reliability request such as finance, army.
Description of drawings
Fig. 1 be embodiment dispose schematic diagram without server end in the method that realizes the control of server Hot Spare in the disc system.
Fig. 2 be embodiment without the read-write process schematic diagram of client and server end under normal circumstances in the method that realizes the control of server Hot Spare in the disc system.
Fig. 3 be embodiment without client and server end read-write process schematic diagram under the master server failure condition in the method that realizes the control of server Hot Spare in the disc system.
Embodiment
In order more clearly to understand technology contents of the present invention, describe in detail especially exemplified by following examples.
See also shown in Figure 1, the method without realization server Hot Spare control in the disc system of present embodiment, it is described to comprise client and two-server at least without disc system, and described client all is connected with each server by network, and the method may further comprise the steps:
(1) client and server all starts and initialization operation;
(2) keep synchronous and data consistency between described each server, and described client is set wherein, and a station server is master server;
(3) described client is by network read data information from master server;
(4) described client writes input data information simultaneously according to user's input operation in described master server and other server;
(5) in the situation that described master server breaks down, client resets that a station server is master server in other server, and namely client is converted to normal server automatically;
(6) return above-mentioned step (3), client reading out data or to data writing wherein from new master server.
In the said method, the data message read-write mode in the described server is for to carry out read-write operation in the mode of sector, and the data information memory zone in the described server is the virtual disk image file.
Said method mainly realized without under the Disk Network environment of multi-server, the function of Hot Spare each other between the server.Be characterized in having realized " real-time online Hot Spare ", simply, be exactly that delay machine or other faults of certain station server such as accident causes and can't normally move, even the client of this server institute load also can on-line automaticly switch to normal server under the state of start operation so, client can not crash, not have yet pause, and operation is fully normal.
The realization principle of said method is: the virtual disk image file of service end is to read and write in the mode of sector, rather than reads and writes with the form of file; In addition, whether server detects a mirror image bag version number every a Preset Time (such as 1 second) consistent, if inconsistent, then can to begin to carry out the mirror image bag from master server synchronous for secondary server, so just can guarantee between the server that synchrodata is timely with identical, client data that read when switching server also are on all four.And client is when writing ephemeral data to server, can be simultaneously toward at least two each other the server of Hot Spare respectively write a identical data (while writes ephemeral data in the write-back catalogue of each server), so just guaranteed when a station server has fault, client can continue normally to read and write data from another hot standby server, and the situation of loss of data can not occur, thereby realize warm standby function.Its implementation can be two-node cluster hot backup, also can be multiple-node backup, decides on different application demands.
The below illustrates the specific implementation step of said method take two-server as example:
(1) suppose A, B two-server, A is master server (can be set by client), and B is secondary server, as shown in Figure 1; Secondary server is guaranteed the two-server data consistent from the master server real-time synchronization;
(2) client C is from the A startup of server, from A server reading out data, and can write identical data to A, B two-server simultaneously during data writing, as shown in Figure 2;
(3) if this moment, the A server broke down, therefore client C can't obtain data from the A server, and then its handover mechanism comes into effect, and client C can be immediately to B server request data, as shown in Figure 3; Because A, B two-server content are identical, so client C still can normally read.And data writing part has been because previous client C has write identical content toward two-server simultaneously, thus after switching to secondary server B, still can continue normal data writing, thus guaranteed that client normally moves.
Simultaneously, said method is real-time Hot Spare completely, in the situation that multiserver backs up mutually, such as the delay situation of machine of generation server accident, so the client of its load do not had any impact, client can automatically be converted to normal server and read and write data, and this process is transparent, seamless for the user, and client keeps normal operation.So by server Hot Spare technology of the present invention, make the industry that can be applied to the high reliability request such as finance, army without disc system.
Method without realizing the control of server Hot Spare in the disc system of the present invention, because wherein the virtual disk image file of server is to read and write in the mode of sector, rather than with the read-write of the form of file, thereby synchronous data are identical between the assurance server, and the data that client reads when switching server also are on all four.Client is when writing ephemeral data to server simultaneously, can be simultaneously toward two each other the server of Hot Spare respectively write a identical data, so just guaranteed when a station server has fault, client can continue normally to read and write data from another hot standby server, and the situation of loss of data can not occur, thereby realized without the function of Hot Spare each other between the server under the Disk Network environment of multi-server.Even the client of server institute load also can on-line automaticly switch to normal server under the state of start operation, client can not crash, not have yet pause, and operation is fully normal, thereby client is not had any impact; Client can automatically be converted to normal server and read and write data, and this process is transparent, seamless for the user, and stable and reliable working performance, the scope of application are comparatively extensive, especially can be applied to the industry of the high reliability request such as finance, army.
Above embodiment is only in order to technical scheme of the present invention to be described but not limit it; those of ordinary skill in the art can make amendment or is equal to replacement technical scheme of the present invention; and not breaking away from the spirit and scope of the present invention, protection scope of the present invention should be as the criterion so that claims are described.

Claims (10)

1. one kind without the method that realizes the server Hot Spare in the disc system, describedly comprises client and two-server at least without disc system, and described client is connected with each server by network, said method comprising the steps of:
1) the synchronous and data consistency of maintenance between described each server, an and described client setting wherein station server is master server, and other server is secondary server;
2) described client is by network read data information from described master server, and according to user's input operation data writing information in described master server and the described secondary server simultaneously;
When 3) described master server broke down, the station server that described client resets in other server was master server, and undertaken step 2 by this master server) described reading or the operation of data writing.
2. the method for claim 1, it is characterized in that: described server carries out the data message read-write operation in the mode of sector.
3. the method for claim 1 is characterized in that: the data information memory zone in the described server is the virtual disk image file.
4. the method for claim 1 is characterized in that: whether described server detects a mirror image bag version number every a Preset Time consistent, if inconsistent, then to carry out the mirror image bag from master server synchronous for secondary server.
5. method as claimed in claim 4, it is characterized in that: described Preset Time was 1 second.
One kind realize the server Hot Spare without disc system, comprise client and two-server at least, described client is connected with each server by network; Keep synchronous and data consistency between described each server, and wherein a station server is master server, other server is secondary server; Described client is by network read data information from described master server, and according to user's input operation data writing information in described master server and the described secondary server simultaneously; When described master server broke down, the station server that described client is set in other server was master server.
7. as claimed in claim 6 without disc system, it is characterized in that: described server carries out the data message read-write operation in the mode of sector.
8. as claimed in claim 6 without disc system, it is characterized in that: the data information memory zone in the described server is the virtual disk image file.
9. as claimed in claim 6 without disc system, it is characterized in that: whether described server detects a mirror image bag version number every a Preset Time consistent, if inconsistent, then to carry out the mirror image bag from master server synchronous for secondary server.
10. as claimed in claim 9 without disc system, it is characterized in that: described Preset Time was 1 second.
CN2012105416565A 2012-12-13 2012-12-13 Method for achieving server hot backup in diskless system Pending CN103036722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105416565A CN103036722A (en) 2012-12-13 2012-12-13 Method for achieving server hot backup in diskless system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105416565A CN103036722A (en) 2012-12-13 2012-12-13 Method for achieving server hot backup in diskless system

Publications (1)

Publication Number Publication Date
CN103036722A true CN103036722A (en) 2013-04-10

Family

ID=48023235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105416565A Pending CN103036722A (en) 2012-12-13 2012-12-13 Method for achieving server hot backup in diskless system

Country Status (1)

Country Link
CN (1) CN103036722A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501290A (en) * 2013-09-18 2014-01-08 万达信息股份有限公司 High-reliability service system establishment method based on dynamic-backup virtual machines
CN103942127A (en) * 2014-02-21 2014-07-23 上海华力微电子有限公司 Backup structure and backup method for WAT
CN104468652A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 A method for data synchronization and digital media server
CN105007293A (en) * 2015-05-25 2015-10-28 国家计算机网络与信息安全管理中心 Double master control network system and double writing method for service request therein
CN111352943A (en) * 2018-12-24 2020-06-30 华为技术有限公司 Method and device for realizing data consistency, server and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127051A (en) * 2007-09-29 2008-02-20 腾讯科技(深圳)有限公司 Document synchronization method and system
CN101426026A (en) * 2008-09-17 2009-05-06 北京六维世纪网络技术有限公司 Method and system for data synchronization between multiple servers
CN102065138A (en) * 2010-12-22 2011-05-18 上海锐起信息技术有限公司 Method for realizing thermal backup control of servers in disk-less system
CN102098344A (en) * 2011-02-21 2011-06-15 中国科学院计算技术研究所 Method and device for synchronizing editions during cache management and cache management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127051A (en) * 2007-09-29 2008-02-20 腾讯科技(深圳)有限公司 Document synchronization method and system
CN101426026A (en) * 2008-09-17 2009-05-06 北京六维世纪网络技术有限公司 Method and system for data synchronization between multiple servers
CN102065138A (en) * 2010-12-22 2011-05-18 上海锐起信息技术有限公司 Method for realizing thermal backup control of servers in disk-less system
CN102098344A (en) * 2011-02-21 2011-06-15 中国科学院计算技术研究所 Method and device for synchronizing editions during cache management and cache management system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468652A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 A method for data synchronization and digital media server
CN103501290A (en) * 2013-09-18 2014-01-08 万达信息股份有限公司 High-reliability service system establishment method based on dynamic-backup virtual machines
CN103942127A (en) * 2014-02-21 2014-07-23 上海华力微电子有限公司 Backup structure and backup method for WAT
CN103942127B (en) * 2014-02-21 2016-08-24 上海华力微电子有限公司 The backup architecture of a kind of WAT test and backup method
CN105007293A (en) * 2015-05-25 2015-10-28 国家计算机网络与信息安全管理中心 Double master control network system and double writing method for service request therein
CN111352943A (en) * 2018-12-24 2020-06-30 华为技术有限公司 Method and device for realizing data consistency, server and terminal

Similar Documents

Publication Publication Date Title
CN101609419B (en) Continuous on-line transferring data backup method of virtual machine and device thereof
US10042579B1 (en) Crash consistent snapshot
US8694700B1 (en) Using I/O track information for continuous push with splitter for storage device
US8935498B1 (en) Splitter based hot migration
US8726066B1 (en) Journal based replication with enhance failover
US9619172B1 (en) Method and system for managing changed block tracking and continuous data protection replication
WO2021136422A1 (en) State management method, master and backup application server switching method, and electronic device
CN103036722A (en) Method for achieving server hot backup in diskless system
CN102065138A (en) Method for realizing thermal backup control of servers in disk-less system
US11947429B2 (en) Data disaster recovery method and site
CN103840961A (en) Dual-computer hot backup system
CN106850255B (en) Method for implementing multi-machine backup
CN105159795A (en) Data synchronization method, apparatus and system
CN105677516A (en) Method for efficient and reliable backup recovery in calculation approach storage cloud platform
CN102368222A (en) Online repairing method of multiple-copy storage system
WO2014114135A1 (en) Disk fault tolerance method, device and system
US20080307254A1 (en) Information-processing equipment and system therefor
CN103516549B (en) A kind of file system metadata log mechanism based on shared object storage
US8527454B2 (en) Data replication using a shared resource
CN115292283A (en) Master-slave high-availability switching method based on disk cabinet
CN106383756A (en) Method for realizing disaster recovery switching of storage without interrupting Linux system service
CN103544081B (en) The management method of double base data server and device
CN110674539B (en) Hard disk protection device, method and system
CN100362484C (en) Method of multi-computer back-up
JP2005055995A (en) Storage control method and server system with redundancy function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130410