CN105242987B - A kind of disaster recovery method of snapshot extending, apparatus and system - Google Patents

A kind of disaster recovery method of snapshot extending, apparatus and system Download PDF

Info

Publication number
CN105242987B
CN105242987B CN201510608443.3A CN201510608443A CN105242987B CN 105242987 B CN105242987 B CN 105242987B CN 201510608443 A CN201510608443 A CN 201510608443A CN 105242987 B CN105242987 B CN 105242987B
Authority
CN
China
Prior art keywords
volume
target device
book
dilatation
updated
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
CN201510608443.3A
Other languages
Chinese (zh)
Other versions
CN105242987A (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.)
Inspur Beijing Electronic Information Industry 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 CN201510608443.3A priority Critical patent/CN105242987B/en
Publication of CN105242987A publication Critical patent/CN105242987A/en
Application granted granted Critical
Publication of CN105242987B publication Critical patent/CN105242987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of disaster recovery method of snapshot extending, apparatus and systems, including:Receive the standby instruction of calamity for carrying equipment in the capacity expansion mark;According to the device identification, target device corresponding with the device identification is searched;The target device is opened, the volume use space value of the target device is obtained;The volume use space value is updated in memory corresponding with the target device;The space reflection relationship of the book is updated in memory corresponding with the book if the target device is book;If the target device is metadata volume, then by the space reflection relationship of the metadata volume, it is updated in memory corresponding with the metadata volume, it is this that volume use space value and space reflection relationship are updated in memory, the problem of solving due to the volume free space deficiency for creating calamity for relationship in snapping technique, and the snapshot subsequently newly created caused to can not work normally.

Description

A kind of disaster recovery method of snapshot extending, apparatus and system
Technical field
The present invention relates to calamities for technical field, more specifically to a kind of disaster recovery method of snapshot extending, device and is System.
Background technology
In online backup snapshot applications scene, in order to ensure that crucial hot spot data is not lost, timing snapshot is often used.It is fixed Shi Kuaizhao is relatively high to the volume space requirement of snapshot relational dependence, but as snapshot number increases, creating calamity can for the volume of relationship When with insufficient space, dilatation can not be completed, then calamity will be unavailable for relationship, i.e., the follow-up snapshot newly created can not work normally, Calamity is standby to lose meaning.
Therefore, how to solve to cause follow-up new due to the volume free space deficiency for creating calamity for relationship in snapping technique The problem of snapshot of establishment can not work normally.
Invention content
The purpose of the present invention is to provide a kind of disaster recovery method of snapshot extending, apparatus and systems, to solve in snapshot skill Calamity is insufficient for the volume free space of relationship due to creating in art, and causes what the snapshot subsequently newly created can not work normally to ask Topic.
To achieve the above object, an embodiment of the present invention provides following technical solutions:
A kind of disaster recovery method of snapshot extending, including:
Receive the standby instruction of calamity for carrying equipment in the capacity expansion mark;
According to the device identification, target device corresponding with the device identification is searched;Wherein, the target device Including source book, book and metadata volume;
The target device is opened, the volume use space value of the target device is obtained;
The volume use space value is updated in memory corresponding with the target device;
The space reflection relationship of the book is updated to and the data if the target device is book It rolls up in corresponding memory;
If the target device be metadata volume, by the space reflection relationship of the metadata volume, be updated to it is described In the corresponding memory of metadata volume.
Preferably, after the volume use space value for obtaining the target device, further include:Close the target device.
Preferably, it after the volume use space value being updated in memory corresponding with the target device, also wraps It includes:
Whether the volume use space value of detection device and the percentage of volume gross space are more than threshold value;
If so, sending out dilatation instruction.
A kind of calamity of snapshot extending for device, including:
Receiving unit, for receiving the standby instruction of calamity for carrying equipment in the capacity expansion mark;
Searching unit, for according to the device identification, searching target device corresponding with the device identification;Its In, the target device includes source book, book and metadata volume;
Acquiring unit is used to open the target device, obtains the volume use space value of the target device;
First updating unit, for the volume use space value to be updated to memory corresponding with the target device In;
Second updating unit, for when the target device is book, by the space reflection relationship of the book, It is updated in memory corresponding with the book;
Third updating unit is used for when the target device is metadata volume, by the space reflection of the metadata volume Relationship is updated in memory corresponding with the metadata volume.
Preferably, further include:
Closing unit, for closing the target device.
Preferably, further include:
Whether detection unit is more than threshold value for the volume use space value of detection device and the percentage of volume gross space;If It is then to send out dilatation instruction.
A kind of disaster recovery and backup systems of snapshot extending, including calamity described in above-mentioned any one further includes for the device of data:
Uniform management module, logical volume management module, cache management, io request management modules and scst modules.
By above scheme it is found that disaster recovery method, the apparatus and system of a kind of snapshot extending provided in an embodiment of the present invention, Including:Receive the standby instruction of calamity for carrying equipment in the capacity expansion mark;According to the device identification, search corresponding with the device identification Target device;Wherein, the target device includes source book, book and metadata volume;The target device is opened, institute is obtained State the volume use space value of target device;The volume use space value is updated to memory corresponding with the target device In;The space reflection relationship of the book is updated to opposite with the book if the target device is book In the memory answered;If the target device is metadata volume, the space reflection relationship of the metadata volume is updated to and institute It states in the corresponding memory of metadata volume, it is this that volume use space value and space reflection relationship are updated in memory, it solves It is insufficient for the volume free space of relationship due to creating calamity in snapping technique, and cause the snapshot subsequently newly created can not normal work The problem of making.
Description of the drawings
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 technology 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 Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of disaster recovery method flow chart of snapshot extending disclosed by the embodiments of the present invention;
Fig. 2 is a kind of calamity of snapshot extending disclosed by the embodiments of the present invention for apparatus structure schematic diagram.
Specific implementation mode
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 describes, 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, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of disaster recovery method of snapshot extending, apparatus and systems, to solve in snapping technique In it is insufficient for the volume free space of relationship due to creating calamity, and the problem of cause the snapshot subsequently newly created can not work normally.
Referring to Fig. 1, a kind of disaster recovery method of snapshot extending provided in an embodiment of the present invention, including:
S101, the standby instruction of calamity for carrying equipment in the capacity expansion mark is received;
S102, according to the device identification, search target device corresponding with the device identification;Wherein, the mesh Marking device includes source book, book and metadata volume;
Specifically, in the present embodiment, the dilatation to source book is manual dilatation, to the dilatation packet of book and metadata volume Include manually and automatically dilatation.Wherein automatic dilatation can automatically be carried out by pre-set dilatation parameter, such as threshold value, that is, be rolled up The percentage of use space/volume gross space, can trigger dilatation when a threshold is reached;Dilatation ratio when automatic dilatation can also be set Example and dilatation maximum value and minimum value.Wherein, these parameters can be that user custom-configures according to scene.
Specifically, the dilatation object of snapshot extending disaster recovery method provided in this embodiment includes:Snapshot source book, metadata volume And book.Wherein source book is to need user data storage volume to be protected, and metadata volume is used for storing exceptional information, book In storage legacy data.
Specifically, dilatation overall architecture includes uniform management module (web), lvm modules (logical volume management), icm modules (cache management), iom modules (io requests management), aegis modules (calamity is standby), scst modules (storage end to host side Target) six modules.Dilatation order is sent from unified management to each kernel module to interact.In cloud storage system for Any of the above described volume dilatation is all bottom-up, and module carries out dilatation one by one.Such as:Lvm is the bottom, and iom depends on icm, Aegis carries out io dependent on iom and issues.Wherein:Lvm carries out Roll Sushi and manages dilatation;Icm and iom carries out volume size adaptation;aegis It carries out volume size adaptation and space management update, scst updates lu parameters, wherein Lu parameters are scst by storage end device map To a target of host side.
It should be noted that before S101 in the present embodiment, lvm, icm, iom dilatations are completed, the present embodiment In calamity is only described for the thing to be done of this layer.
S103, the target device is opened, obtains the volume use space value of the target device;
Preferably, after the volume use space value for obtaining the target device, further include:Close the target device.
S104, the volume use space value is updated in memory corresponding with the target device;
Specifically, when user's dilatation manual to source book, when uniform management module receives dilatation instruction, unified management Module can send order to lvm modules according to equipment in the capacity expansion number and dilatation size and carry out physical equipment dilatation, then give icm respectively Dilatation order is sent with iom modules.When calamity sends dilatation order for this layer, since physics volume size has changed, calamity is for layer It only needs to open equipment, reacquire target device size and updates the source book size of snapshot relationship in memory, then close Hull closure, source book dilatation flow are completed.
Specifically, for the book and metadata volume of automatic dilatation, it is also desirable to by the big of book or metadata volume It is small, and it is updated to memory.
If S105, the target device be book, by the space reflection relationship of the book, be updated to it is described In the corresponding memory of book;
If S106, the target device be metadata volume, by the space reflection relationship of the metadata volume, be updated to In the corresponding memory of metadata volume.
Specifically, in the present embodiment, if target device is book, after executing S105, S106 would not be executed; Similarly, if target device is metadata volume, after executing S104, S105 is skipped, S106 is directly executed.
Specifically, book dilatation is compared with source book dilatation, the step for more update space reflection relationships.Because In aegis modules, book and metadata volume are to be realized based on dm frames, and book needs to dynamically distribute space storage Source book legacy data, metadata volume need to dynamically distribute space storage exception relationship.After its corresponding physical volume dilatation, such as Space mapping relations do not update in fruit memory, then see in memory or original size, can not apply and using new block, because This needs to update space reflection relationship.
Specific this expansion method provided in this embodiment, can apply under cloud storage environment.
Specifically, this disaster recovery method provided in this embodiment is applied in dilatation, on the one hand allow in memory space In the case of, it is ensured that follow-up snapshot availability;On the one hand it is transparent, no interruption for user and host side business Sign;On the other hand, user can custom-configure dilatation parameter and carry out dilatation according to application scenarios, improve the suitable of product Answering property and competitiveness.
A kind of disaster recovery method of snapshot extending provided in an embodiment of the present invention, including:It receives and carries equipment in the capacity expansion mark The standby instruction of calamity;According to the device identification, target device corresponding with the device identification is searched;Wherein, the target is set Standby includes source book, book and metadata volume;The target device is opened, the volume use space value of the target device is obtained; The volume use space value is updated in memory corresponding with the target device;If the target device is book, Then by the space reflection relationship of the book, it is updated in memory corresponding with the book;If the target device It is updated in memory corresponding with the metadata volume then by the space reflection relationship of the metadata volume for metadata volume, It is this that volume use space value and space reflection relationship are updated in memory, it solves in snapping technique due to creating the standby pass of calamity The volume free space of system is insufficient, and the problem of cause the snapshot subsequently newly created can not work normally.
Preferably, in another embodiment of the invention, the volume use space value is updated to and the target device After in corresponding memory, further include:
Whether the volume use space value of detection device and the percentage of volume gross space are more than threshold value;
If so, sending out dilatation instruction.
A kind of calamity of snapshot extending provided in an embodiment of the present invention is introduced for apparatus and system below, is described below The calamity of snapshot extending a kind of can correspond ginseng with a kind of above-described disaster recovery method of snapshot extending for apparatus and system According to.
Referring to Fig. 2, a kind of calamity of snapshot extending provided in an embodiment of the present invention for device, including:
Receiving unit 100, for receiving the standby instruction of calamity for carrying equipment in the capacity expansion mark;
Searching unit 200, for according to the device identification, searching target device corresponding with the device identification; Wherein, the target device includes source book, book and metadata volume;
Acquiring unit 300 is used to open the target device, obtains the volume use space value of the target device;
First updating unit 400, for being updated to the volume use space value in corresponding with the target device In depositing;
Second updating unit 500, for when the target device is book, the space reflection of the book to be closed System, is updated in memory corresponding with the book;
Third updating unit 600, for when the target device is metadata volume, the space of the metadata volume to be reflected Relationship is penetrated, is updated in memory corresponding with the metadata volume.
Preferably, in another embodiment of the invention, closing unit, for closing the target device.
Preferably, in another embodiment of the invention, further include:
Whether detection unit is more than threshold value for the volume use space value of detection device and the percentage of volume gross space;If It is then to send out dilatation instruction.
A kind of disaster recovery and backup systems of snapshot extending, including calamity described in above-mentioned any embodiment further includes for device:
Uniform management module, logical volume management module, cache management, io request management modules and scst modules.
Specifically, the uniform management module in the present embodiment, logical volume management module, cache management, io request management moulds Block and scst modules, and it is corresponding in embodiment of the method.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion 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 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 range caused.

Claims (5)

1. a kind of disaster recovery method of snapshot extending, which is characterized in that including:
Receive the standby instruction of calamity for carrying equipment in the capacity expansion mark;
According to the device identification, target device corresponding with the device identification is searched;Wherein, the target device includes Source book, book and metadata volume;
The target device is opened, the volume use space value of the target device is obtained;
The volume use space value is updated in memory corresponding with the target device;
After the volume use space value is updated in memory corresponding with the target device, further include:Detection device Volume use space value with volume gross space percentage whether be more than threshold value;If so, sending out dilatation instruction;Wherein, unified pipe When reason module receives dilatation instruction, order is sent to logical volume management module according to equipment in the capacity expansion number and dilatation size and carries out object Equipment dilatation is managed, then cache management and io request management modules is given to send dilatation order respectively;
The space reflection relationship of the book is updated to and the book phase if the target device is book In corresponding memory;
If the target device is metadata volume, the space reflection relationship of the metadata volume is updated to and first number According in the corresponding memory of volume.
2. disaster recovery method according to claim 1, which is characterized in that obtain the target device volume use space value it Afterwards, further include:Close the target device.
3. a kind of calamity of snapshot extending is for device, which is characterized in that including:
Receiving unit, for receiving the standby instruction of calamity for carrying equipment in the capacity expansion mark;
Searching unit, for according to the device identification, searching target device corresponding with the device identification;Wherein, institute It includes source book, book and metadata volume to state target device;
Acquiring unit is used to open the target device, obtains the volume use space value of the target device;
First updating unit, for being updated to the volume use space value in memory corresponding with the target device;
Whether detection unit is more than threshold value for the volume use space value of detection device and the percentage of volume gross space;If so, Send out dilatation instruction;Wherein, when uniform management module receives dilatation instruction, according to equipment in the capacity expansion number and dilatation size to logic Volume management module sends order and carries out physical equipment dilatation, then cache management and io request management modules is given to send dilatation respectively Order;
Second updating unit, for when the target device is book, the space reflection relationship of the book to update To in memory corresponding with the book;
Third updating unit, for when the target device is metadata volume, by the space reflection relationship of the metadata volume, It is updated in memory corresponding with the metadata volume.
4. calamity according to claim 3 is for device, which is characterized in that further include:
Closing unit, for closing the target device.
5. a kind of disaster recovery and backup systems of snapshot extending, which is characterized in that including calamity as described in claim 3 or 4 for device, also wrap It includes:
Uniform management module, logical volume management module, cache management, io request management modules and scst modules.
CN201510608443.3A 2015-09-22 2015-09-22 A kind of disaster recovery method of snapshot extending, apparatus and system Active CN105242987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510608443.3A CN105242987B (en) 2015-09-22 2015-09-22 A kind of disaster recovery method of snapshot extending, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510608443.3A CN105242987B (en) 2015-09-22 2015-09-22 A kind of disaster recovery method of snapshot extending, apparatus and system

Publications (2)

Publication Number Publication Date
CN105242987A CN105242987A (en) 2016-01-13
CN105242987B true CN105242987B (en) 2018-09-07

Family

ID=55040640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510608443.3A Active CN105242987B (en) 2015-09-22 2015-09-22 A kind of disaster recovery method of snapshot extending, apparatus and system

Country Status (1)

Country Link
CN (1) CN105242987B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614055B (en) * 2018-12-21 2022-11-04 杭州宏杉科技股份有限公司 Snapshot creating method and device, electronic equipment and machine-readable storage medium
CN111435299B (en) * 2019-01-14 2023-06-20 阿里巴巴集团控股有限公司 Application processing method and device
CN115794413A (en) * 2023-01-09 2023-03-14 荣耀终端有限公司 Memory processing method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226457A (en) * 2008-01-25 2008-07-23 中兴通讯股份有限公司 On-line capacity-enlarging system and method for magnetic disc array
CN101414277A (en) * 2008-11-06 2009-04-22 清华大学 Need-based increment recovery disaster-containing system and method based on virtual machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226457A (en) * 2008-01-25 2008-07-23 中兴通讯股份有限公司 On-line capacity-enlarging system and method for magnetic disc array
CN101414277A (en) * 2008-11-06 2009-04-22 清华大学 Need-based increment recovery disaster-containing system and method based on virtual machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种按需分配增量卷的自动扩容方法研究;高岩 等;《计算机研究与发展》;20111231;第48卷;第119-125页 *

Also Published As

Publication number Publication date
CN105242987A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
US9628438B2 (en) Consistent ring namespaces facilitating data storage and organization in network infrastructures
CN106201357A (en) The construction method of a kind of storage pool and system
CN105242987B (en) A kind of disaster recovery method of snapshot extending, apparatus and system
CN104182508B (en) A kind of data processing method and data processing equipment
CN104969168A (en) Persistent storage device with NVRAM for staging writes
CN106331148A (en) Cache management method and cache management device for data reading by clients
JP2012524946A5 (en)
US9331868B2 (en) Method of bus virtualization in computing machine intercommunications
CN101819543A (en) Snapshot data processing method, system and storage device
CN107992430A (en) Management method, device and the computer-readable recording medium of flash chip
CN105681420A (en) Method for realizing backup of switch operating system based on Docker
CN103412822A (en) Operation method of non-volatile RAM, data operation method and relevant device
CN105357042A (en) High-availability cluster system, master node and slave node
CN105760251B (en) A kind of method and apparatus of Backup Data
US8745333B2 (en) Systems and methods for backing up storage volumes in a storage system
CN113553170A (en) System, method and apparatus for resource allocation
CN108897822A (en) A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN106856441A (en) VIM systems of selection and device in NFVO
CN109710454A (en) A kind of cloud host snapshot method and device
CN101833585A (en) Database server operation control system, method and device
CN106959906A (en) Information processing method, information processor and electronic equipment
CN106681866B (en) A kind of method, apparatus and system for guaranteeing to apply consistency
CN108958974A (en) A kind of Snapshot Method, device, system and readable storage medium storing program for executing
CN106201784B (en) A kind of data back up method and system based on git
CN105511808A (en) Data operation method, system and related device

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