CN104268032A - Multi-controller snapshot processing method and device - Google Patents

Multi-controller snapshot processing method and device Download PDF

Info

Publication number
CN104268032A
CN104268032A CN201410483883.6A CN201410483883A CN104268032A CN 104268032 A CN104268032 A CN 104268032A CN 201410483883 A CN201410483883 A CN 201410483883A CN 104268032 A CN104268032 A CN 104268032A
Authority
CN
China
Prior art keywords
controller
snapshot
snapped volume
configuration file
mark
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.)
Granted
Application number
CN201410483883.6A
Other languages
Chinese (zh)
Other versions
CN104268032B (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.)
Shanghai Wave Cloud Computing Service Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201410483883.6A priority Critical patent/CN104268032B/en
Publication of CN104268032A publication Critical patent/CN104268032A/en
Application granted granted Critical
Publication of CN104268032B publication Critical patent/CN104268032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a multi-controller snapshot processing method which is applied to an application system provided with two or more controllers. The multi-controller snapshot processing method comprises the steps of respectively setting configuration files with snap-shooting relation and saving the files in the corresponding controllers according to pre-established snap-shooting relation of the controllers, wherein IDs of the corresponding controllers are set in the configuration files; monitoring working states of the controllers in real time and transferring the configuration file saved in a certain broken-down controller to another normally working controller when the controller is abnormal; establishing a snapshot roll in the normal controller and mapping the snap-shooting relation of the abnormal controller into the established snapshot roll according to the transferred configuration file. By means of the technical scheme, fault-tolerance processing for the multi-controller snapshot processing is achieved, and accordingly data consistency and safety are ensured.

Description

A kind of snap processing method of multi-controller and device
Technical field
The present invention relates to the disaster tolerance technology that computing machine cloud stores, espespecially a kind of snap processing method of multi-controller and device.
Background technology
Along with the fast development of computer technology, digital information progressively replaces paper media's data, presents daily exponential growth.Mass data has expedited the emergence of the development of cloud computing, greatly data and mass storage system (MSS), also more and more higher to the demand of memory device and storage application.Government's industry, banking system, electric power enterprise etc. have higher requirement to the security of data and business continuance, must provide online data protection.And snapshot is exactly the effective ways that a kind of Online storage device prevents loss of data, in increasing high-end storage systems nowadays, snapshot has become a basic indispensable technology.
The major function of snapshot is to back up as required online data and to recover.Fast data recovery can be carried out, by the state of date restoring to certain pot life point when memory device generation application and trouble or file corruption.
In traditional application system, after system malfunctions, the snapshot of this system cannot continue to use, thus data exist the risk of losing.At present, under the application system with the multi-controller such as dual control or eight controls, general disposal route is, the book will setting up snapshot is mapped under each controller, then, when needs carry out beating snapshot, then undertaken playing snapshot command process by the controller of normal operation, such disposal route, making business processing logic can be more loaded down with trivial details, easily there is entanglement in the mark ID of snapshot, and in the maintenance of snapshot, easily there is entanglement, thus cause the inconsistency of data.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of snap processing method and device of multi-controller, realize carrying out fault-tolerant processing to the snapshot process under multi-controller, consistance and the security of data can be ensured.
In order to reach the object of the invention, the invention provides a kind of snap processing method of multi-controller, being applied in the application system with two and plural controller, comprising:
According to the snapshot relation of each controller set up in advance, the configuration file of each snapshot relation is set respectively and is kept in corresponding controller; Wherein, the ID of corresponding controller is provided with in configuration file;
The duty of real-time each controller of monitoring, when certain controller occurs abnormal, is transferred in other controller working properly by the configuration file preserved in the controller broken down;
Under this normal controller, set up a snapped volume, will there is the snapshot relationship map of abnormal controller in the snapped volume set up in the configuration file according to transfer.
Further, also comprise before the method: under each controller, set up a snapped volume respectively, according to the snapped volume set up, carrying out beating before snapshot process, the mapping relations of source book corresponding for this dozen of snapshot process and snapped volume are being saved in the snapshot relation set up in advance.
Further, according to the configuration file of transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, the method also comprises:
The ID of the controller in amendment configuration file is the ID of controller working properly, and is kept in this controller working properly by amended configuration file.
Further, mapping relations comprise: the corresponding relation between the size of the mark of the mark of source book, the size of source book, snapped volume, the size of snapped volume, the mark of metadata volume and metadata volume.
Further, according to the configuration file of transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, the method also comprises:
The mark that the mark of snapped volume in amendment snapshot relation and the size of snapped volume are respectively the snapped volume set up in this controller working properly and the size of snapped volume set up in this controller working properly.
Present invention also offers a kind of snapshot treating apparatus of multi-controller, be applied in the application system with two and plural controller, comprise: profile module, shift module and processing module; Wherein,
Profile module, for the snapshot relation according to each controller set up in advance, arranges the configuration file of each snapshot relation respectively and is kept in corresponding controller; Wherein, the ID of corresponding controller is provided with in configuration file;
Shift module, for monitoring the duty of each controller in real time, when certain controller occurs abnormal, is transferred in other controller working properly by the configuration file preserved in the controller broken down;
Processing module, for setting up a snapped volume under this normal controller, will there is the snapshot relationship map of abnormal controller in the snapped volume set up in the configuration file according to transfer.
Further, this device also comprises: snapshot relationship module, for setting up a snapped volume under each controller respectively, according to the snapped volume set up, carrying out beating before snapshot process, the mapping relations of source book corresponding for this dozen of snapshot process and snapped volume are being saved in the snapshot relation set up in advance.
Further, according to the configuration file of transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, profile module also for:
The ID of the controller in amendment configuration file is the ID of controller working properly, and is kept in this controller working properly by amended configuration file.
Further, mapping relations comprise: the corresponding relation between the mark of the mark of the mark of source book, the size of source book, snapped volume, the size of snapped volume, metadata volume, the size of metadata volume.
Further, according to the configuration file of transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, snapshot relationship module also for:
The mark that the mark of snapped volume in amendment snapshot relation and the size of snapped volume are respectively the snapped volume set up in this controller working properly and the size of snapped volume set up in this controller working properly.
Technical solution of the present invention comprises: according to the snapshot relation of each controller set up in advance, arranges the configuration file of each snapshot relation respectively and is kept in corresponding controller; Wherein, the ID of corresponding controller is provided with in configuration file; The duty of real-time each controller of monitoring, when certain controller occurs abnormal, is transferred in other controller working properly by the configuration file preserved in the controller broken down; Under this normal controller, set up a snapped volume, will there is the snapshot relationship map of abnormal controller in the snapped volume set up in the configuration file according to transfer.By technical scheme provided by the invention, achieve and fault-tolerant processing is carried out to the snapshot process under multi-controller, thus ensure that consistance and the security of data.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the snap processing method of multi-controller of the present invention;
Fig. 2 is the structural representation of the snapshot treating apparatus of multi-controller of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Fig. 1 is the process flow diagram of the snap processing method of multi-controller of the present invention, as shown in Figure 1, is applied in the application system with two and plural controller, comprises:
Step 101, according to the snapshot relation of each controller set up in advance, arranges the configuration file of each snapshot relation respectively and is kept in corresponding controller; Wherein, the ID of corresponding controller is provided with in configuration file.
It should be noted that, the title of each configuration file is different, is common practise well-known to those skilled in the art, does not repeat them here about how to name.
Before step 101, the method also comprises: under each controller, set up a snapped volume respectively, according to the snapped volume set up, carrying out beating before snapshot process, the mapping relations of source book corresponding for this dozen of snapshot process and snapped volume are being saved in the snapshot relation set up in advance.
Wherein, mapping relations comprise: the mark of the mark of source book, the size of source book, snapped volume, the size of snapped volume, the mark of metadata volume, and the corresponding relation between the size of metadata volume.
Step 102, the in real time duty of each controller of monitoring, when certain controller occurs abnormal, be transferred to the configuration file preserved in the controller broken down in other controller working properly.
It should be noted that in this step, other controller working properly can be any one in the controller working properly of random selecting, does not limit at this.In addition, namely the transfer in step 102 is be copied to by configuration file in other controller working properly, about the conventional techniques means how shifting (copy) and belong to those skilled in the art, does not repeat them here.
Wherein, there is abnormal comprising in certain controller: controller is restarted or system exception or Network Abnormal or software and hardware abnormal etc.These cause carrying out snapshot process extremely.
Step 103, sets up a snapped volume under this normal controller, and the configuration file according to transfer the snapshot relationship map of abnormal controller will occur in the snapped volume set up.
This step it should be noted that, under this normal controller, setting up a snapped volume, to set up mode with the snapped volume set up under each controller before step 101 be the same, different names can be taked different to distinguish it to each snapped volume.
Specifically comprise: the information that this configuration file comprises is imported in controller working properly, controller working properly reads the information that this configuration file comprises, in the snapped volume that the snapshot relationship map that abnormal controller occurs is set up by the information comprised according to this configuration file under this normal controller.Namely realize the snapshot relational application of abnormal controller to occur in controller working properly.Wherein, the information that configuration file comprises refers to the information of each snapshot relation, i.e. mapping relations.
It should be noted that, about how according to configuration file by snapshot relationship map in snapped volume, belong to common practise well-known to those skilled in the art, do not repeat them here.
After step 103, the method also comprises: the ID of the controller in amendment configuration file is the ID of controller working properly, and is kept in controller working properly by amended configuration file.And,
The mark that the mark of snapped volume in amendment snapshot relation and the size of snapped volume are respectively the snapped volume set up in this controller working properly and the size of snapped volume set up in controller working properly.Here snapped volume refer to the snapped volume that step 103 sets up under this normal controller.
It should be noted that, title due to each configuration file is different, so the ID of controller in amendment configuration file is the ID of controller working properly, the configuration file preserved before can't affecting in this controller working properly, the configuration file preserved before namely can not overriding in this controller working properly.
Pass through the inventive method, by setting up snapshot relation and when certain controller occurs abnormal, configuration file in the controller of this generation exception is transferred to the process of some controllers working properly before beating snapshot, achieve and fault-tolerant processing is carried out to the snapshot process under multi-controller, and ensure that consistance and the security of data.
Fig. 2 is the structural representation of the snapshot treating apparatus of multi-controller of the present invention, is applied in the application system with two and plural controller, as shown in Figure 2, comprises: profile module, shift module and processing module.Wherein,
Profile module, for the snapshot relation according to each controller set up in advance, arranges the configuration file of each snapshot relation respectively and is kept in corresponding controller; Wherein, the ID of corresponding controller is provided with in configuration file.
Shift module, for monitoring the duty of each controller in real time, when certain controller occurs abnormal, is transferred to the configuration file preserved in the controller broken down in other controller working properly.
Processing module, for setting up a snapped volume under this normal controller, will there is the snapshot relationship map of abnormal controller in the snapped volume set up in the configuration file according to transfer.
Further, according to the configuration file of transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, profile module also for:
The ID revising the controller in described configuration file is the ID of controller working properly, and is kept in controller working properly by amended configuration file.
Further, this device also comprises: snapshot relationship module, for setting up a snapped volume under each controller respectively, according to the snapped volume set up, carrying out beating before snapshot process, the mapping relations of source book corresponding for this dozen of snapshot process and snapped volume are being saved in the snapshot relation set up in advance.
It should be noted that, processing module sets up a snapped volume under this normal controller, and to set up mode with the snapped volume that snapshot relationship module is set up under each controller be the same, different names can be taked to carry out the difference of each snapped volume of district to each snapped volume.
Wherein, mapping relations comprise: the corresponding relation between the size of the mark of the mark of source book, the size of source book, snapped volume, the size of snapped volume, the mark of metadata volume and metadata volume.
Further, according to the configuration file of transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, snapshot relationship module also for:
The mark that the mark of snapped volume in amendment snapshot relation and the size of snapped volume are respectively the snapped volume set up in this controller working properly and the size of snapped volume set up in controller working properly.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize.Correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The application is not restricted to the combination of the hardware and software of any particular form.
Although the embodiment disclosed by the present invention is as above, the embodiment that described content only adopts for ease of understanding the present invention, and be not used to limit the present invention.Those of skill in the art belonging to any the present invention; under the prerequisite not departing from the spirit and scope disclosed by the present invention; any amendment and change can be carried out in the form implemented and details; but scope of patent protection of the present invention, the scope that still must define with appending claims is as the criterion.

Claims (10)

1. a snap processing method for multi-controller, is applied in the application system with two and plural controller, it is characterized in that, comprising:
According to the snapshot relation of each controller set up in advance, the configuration file of each snapshot relation is set respectively and is kept in corresponding controller; Wherein, the ID of corresponding controller is provided with in configuration file;
The duty of real-time each controller of monitoring, when certain controller occurs abnormal, is transferred in other controller working properly by the configuration file preserved in the controller broken down;
Under this normal controller, set up a snapped volume, will there is the snapshot relationship map of abnormal controller in the snapped volume set up in the configuration file according to transfer.
2. snap processing method according to claim 1, it is characterized in that, also comprise before the method: under each controller described, set up a snapped volume respectively, according to the snapped volume set up, carrying out beating before snapshot process, the mapping relations of source book corresponding for this dozen of snapshot process and snapped volume are being saved in the snapshot relation set up in advance.
3. snap processing method according to claim 1 and 2, is characterized in that, the described configuration file according to transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, the method also comprises:
The ID revising the controller in described configuration file is the ID of described controller working properly, and is kept in described controller working properly by amended described configuration file.
4. snap processing method according to claim 2, described mapping relations comprise: the corresponding relation between the size of the mark of the mark of source book, the size of source book, snapped volume, the size of snapped volume, the mark of metadata volume and metadata volume.
5. snap processing method according to claim 4, is characterized in that, the described configuration file according to transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, the method also comprises:
Revise the size of the mark that the mark of snapped volume in described snapshot relation and the size of snapped volume be respectively the snapped volume set up in described controller working properly and the snapped volume set up in described controller working properly.
6. a snapshot treating apparatus for multi-controller, is applied in the application system with two and plural controller, it is characterized in that, comprising: profile module, shift module and processing module; Wherein,
Profile module, for the snapshot relation according to each controller set up in advance, arranges the configuration file of each snapshot relation respectively and is kept in corresponding controller; Wherein, the ID of corresponding controller is provided with in configuration file;
Shift module, for monitoring the duty of each controller in real time, when certain controller occurs abnormal, is transferred in other controller working properly by the configuration file preserved in the controller broken down;
Processing module, for setting up a snapped volume under this normal controller, will there is the snapshot relationship map of abnormal controller in the snapped volume set up in the configuration file according to transfer.
7. snapshot treating apparatus according to claim 6, it is characterized in that, this device also comprises: snapshot relationship module, for setting up a snapped volume respectively under each controller described, according to the snapped volume set up, carrying out beating before snapshot process, the mapping relations of source book corresponding for this dozen of snapshot process and snapped volume are being saved in the snapshot relation set up in advance.
8. the snapshot treating apparatus according to claim 6 or 7, is characterized in that, the described configuration file according to transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, described profile module also for:
The ID revising the controller in described configuration file is the ID of described controller working properly, and is kept in described controller working properly by amended described configuration file.
9. snapshot treating apparatus according to claim 7, described mapping relations comprise: the corresponding relation between the mark of the mark of the mark of source book, the size of source book, snapped volume, the size of snapped volume, metadata volume, the size of metadata volume.
10. snapshot treating apparatus according to claim 9, is characterized in that, according to the configuration file of transfer by there is abnormal controller snapshot relationship map in the snapped volume set up after, described snapshot relationship module also for:
The mark that the mark of snapped volume in amendment snapshot relation and the size of snapped volume are respectively the snapped volume set up in this controller working properly and the size of snapped volume set up in controller working properly.
CN201410483883.6A 2014-09-19 2014-09-19 The snap processing method and device of a kind of multi-controller Active CN104268032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410483883.6A CN104268032B (en) 2014-09-19 2014-09-19 The snap processing method and device of a kind of multi-controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410483883.6A CN104268032B (en) 2014-09-19 2014-09-19 The snap processing method and device of a kind of multi-controller

Publications (2)

Publication Number Publication Date
CN104268032A true CN104268032A (en) 2015-01-07
CN104268032B CN104268032B (en) 2017-10-13

Family

ID=52159555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410483883.6A Active CN104268032B (en) 2014-09-19 2014-09-19 The snap processing method and device of a kind of multi-controller

Country Status (1)

Country Link
CN (1) CN104268032B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117165A (en) * 2015-07-17 2015-12-02 浪潮(北京)电子信息产业有限公司 Dual-controller snapshot taking-over and switching-back method and apparatus
CN105159802A (en) * 2015-09-15 2015-12-16 浪潮(北京)电子信息产业有限公司 Controller switching method and device
CN107704343A (en) * 2017-09-29 2018-02-16 郑州云海信息技术有限公司 A kind of data back up method of multi-controller, device, equipment and storage medium
CN109189614A (en) * 2018-10-19 2019-01-11 郑州云海信息技术有限公司 A kind of snapshot rollback method and device
CN112667167A (en) * 2020-12-31 2021-04-16 杭州宏杉科技股份有限公司 Configuration file updating method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030131207A1 (en) * 2002-01-09 2003-07-10 Hiroshi Arakawa Virtualized volume snapshot formation method
US20060031637A1 (en) * 2004-08-03 2006-02-09 Hitachi, Ltd. Disk array device group and copy method for the same
CN102402471A (en) * 2011-12-23 2012-04-04 创新科软件技术(深圳)有限公司 Method and system for backing up data in real time based on snapshot function of memory array
CN102834811A (en) * 2010-05-25 2012-12-19 国际商业机器公司 Multiple cascaded backup process
CN103052938A (en) * 2010-10-14 2013-04-17 株式会社日立制作所 Data migration system and data migration method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030131207A1 (en) * 2002-01-09 2003-07-10 Hiroshi Arakawa Virtualized volume snapshot formation method
US20060031637A1 (en) * 2004-08-03 2006-02-09 Hitachi, Ltd. Disk array device group and copy method for the same
CN102834811A (en) * 2010-05-25 2012-12-19 国际商业机器公司 Multiple cascaded backup process
CN103052938A (en) * 2010-10-14 2013-04-17 株式会社日立制作所 Data migration system and data migration method
CN102402471A (en) * 2011-12-23 2012-04-04 创新科软件技术(深圳)有限公司 Method and system for backing up data in real time based on snapshot function of memory array

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117165A (en) * 2015-07-17 2015-12-02 浪潮(北京)电子信息产业有限公司 Dual-controller snapshot taking-over and switching-back method and apparatus
CN105159802A (en) * 2015-09-15 2015-12-16 浪潮(北京)电子信息产业有限公司 Controller switching method and device
CN107704343A (en) * 2017-09-29 2018-02-16 郑州云海信息技术有限公司 A kind of data back up method of multi-controller, device, equipment and storage medium
CN109189614A (en) * 2018-10-19 2019-01-11 郑州云海信息技术有限公司 A kind of snapshot rollback method and device
CN112667167A (en) * 2020-12-31 2021-04-16 杭州宏杉科技股份有限公司 Configuration file updating method and device
CN112667167B (en) * 2020-12-31 2022-04-22 杭州宏杉科技股份有限公司 Configuration file updating method and device

Also Published As

Publication number Publication date
CN104268032B (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN104268032A (en) Multi-controller snapshot processing method and device
CN102981931B (en) Backup method and device for virtual machine
CN103345470B (en) A kind of database disaster recovery method, system and server
EP2131284B1 (en) Storage system and method of producing recovery volume
CA2839014C (en) Managing replicated virtual storage at recovery sites
CN103473277B (en) The Snapshot Method and device of file system
JP4412509B2 (en) Storage system capacity expansion control method
JP2020035430A (en) Hot backup system, hot backup method and computer equipment
CN102467508A (en) Method for providing database service and database system
CN103886091B (en) A kind of database synchronization method based on recording mark
CN105550062A (en) Continuous data protection and time point browse recovery based data backflow method
CN103020243A (en) Method and device for master-slave replication structure replacement of database
CN105224422A (en) A kind of data back up method and equipment
CN106874142B (en) Real-time data fault-tolerant processing method and system
CN108614876A (en) A kind of system and data processing method based on Redis databases
CN104461773A (en) Backup deduplication method of virtual machine
JP2011164800A (en) Storage system and storage control method
CN109165210A (en) A kind of method and device of cluster Hbase Data Migration
CN104268097A (en) Metadata processing method and system
CN105740049A (en) Control method and apparatus
CN104133742A (en) Data protection method and device
CN114020686A (en) File snapshot synchronization method, system, device and medium based on difference log
CN104391760A (en) Data backup method, server and system
CN106339176A (en) Intermediate file processing method, client, server and system
CN106855869B (en) Method, device and system for realizing high availability of database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180827

Address after: 200436 Room 411, No. three, JIANGCHANG Road, Jingan District, Shanghai, 411

Patentee after: Shanghai wave Cloud Computing Service Co., Ltd.

Address before: 100085 floor 1, C 2-1, No. 2, Shang Di Road, Haidian District, Beijing.

Patentee before: Electronic information industry Co.,Ltd of the tide (Beijing)

TR01 Transfer of patent right