CN109408291A - A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment - Google Patents

A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment Download PDF

Info

Publication number
CN109408291A
CN109408291A CN201811281547.8A CN201811281547A CN109408291A CN 109408291 A CN109408291 A CN 109408291A CN 201811281547 A CN201811281547 A CN 201811281547A CN 109408291 A CN109408291 A CN 109408291A
Authority
CN
China
Prior art keywords
snapshot
clone volume
protection
disk
source book
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
CN201811281547.8A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811281547.8A priority Critical patent/CN109408291A/en
Publication of CN109408291A publication Critical patent/CN109408291A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a kind of distributed memory system disk snapshot restoration methods, device and electronic equipment; the described method includes: when needing to restore snapshot; snapshot to be restored in source book is protected, protection snapshot is obtained, the protection snapshot is configured as not deleting;Clone volume is created according to the protection snapshot, the clone volume, protection snapshot and source book store chain relationship, be both configured to not delete;The pointer of disk is directed toward the clone volume, the read-write of data is carried out by the clone volume.Using method provided by the embodiments of the present application; when carrying out snapshot recovery; first snapshot is protected; it prevents from accidentally being deleted; it is then based on protection snapshot progress quickly link clone, the pointer of disk is directed toward clone volume, clone volume is all passed through in the write-in and reading of data after recovery; to achieve the effect that restore data, improves snapshot and restore efficiency.

Description

A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment
Technical field
This application involves field of computer technology, in particular to a kind of distributed memory system disk snapshot restoration methods, Device and electronic equipment.
Background technique
Big data era, data processing needs sharp increase, the traditional approach such as SAN storage or NAS storage have been not suitable with Business development needs, and centralised storage and distributed storage are therefore active but centrally stored, and there are some disadvantages, videos It is high to building environment requirement that stream uploads to center, it is desirable that computer room space is big, and load-bearing, air-conditioning etc. are all problems in need of consideration.Point Cloth storage is then that physical medium is distributed to different geographical locations, and video flowing uploads nearby, to backbone bandwidth without what It is required that the storage device distribution deployment of the low capacity of more set low sides can be used, equipment price and maintenance cost are lower, and low capacity is set The deployment of back-up cloth requires building environment low.
Ceph is as a kind of distributed storage, and by the favor of more and more users, the disk snapshot of ceph block device is Internal snapshot, the data generated after the metadata information and snapshot of snapshot are all stored in the same disk, when restoring snapshot It needs rollback to fill data, leads to inefficiency.Therefore, a kind of efficient system disk snapshot recovery scheme urgently occurs.
Summary of the invention
In view of this, the application's is designed to provide a kind of distributed memory system disk snapshot restoration methods, device And electronic equipment, to solve the problems, such as that it is lower to restore efficiency for snapshot in the prior art.
Its concrete scheme is as follows:
In a first aspect, the embodiment of the present application provides a kind of distributed memory system disk snapshot restoration methods, the side Method includes:
When needing to restore snapshot, the snapshot to be restored in source book is protected, obtains protection snapshot, the protection is fast According to being configured as not deleting;
Clone volume is created according to the protection snapshot, the clone volume, protection snapshot and source book store chain relationship, quilt It is configured to not delete;
The pointer of disk is directed toward the clone volume, the read-write of data is carried out by the clone volume.
Optionally, the pointer of disk is being directed toward the clone volume, after the read-write that data are carried out by the clone volume, also Include:
When needing to create snapshot, snapshot creation is carried out using the clone volume as source book.
Optionally, the distributed memory system is ceph.
Second aspect, the embodiment of the present application provide a kind of distributed memory system disk snapshot recovery device, the dress It sets and includes:
It is fast to obtain protection for being protected to the snapshot to be restored in source book when needing to restore snapshot for protective module According to the protection snapshot is configured as not deleting;
Cloning module, for creating clone volume, the clone volume, protection snapshot and source book storage according to the protection snapshot Chain relationship is both configured to not delete;
Pointer module carries out the read-write of data by the clone volume for the pointer of disk to be directed toward the clone volume.
Optionally, described device further include:
Snapshot module, for carrying out snapshot creation for the clone volume as source book when needing to create snapshot.
Optionally, the distributed memory system is ceph.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising:
Memory, for storing computer program;
Processor realizes above-mentioned first aspect described in any item steps when for executing the computer program.
Fourth aspect, the embodiment of the present application provide a kind of computer storage, are stored on the computer storage Computer program realizes such as above-mentioned first aspect described in any item steps when the computer program is executed by processor.
First snapshot is protected when carrying out snapshot recovery using method provided by the embodiments of the present application, prevents from being missed It deletes, is then based on the protection snapshot and carries out quickly link clone, the pointer of disk is directed toward clone volume, data writes after recovery Enter and read all by clone volume, to achieve the effect that restore data, improves snapshot and restore efficiency.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of distributed memory system disk snapshot restoration methods flow diagram provided by the embodiments of the present application;
Fig. 2 is a kind of distributed memory system disk snapshot and restoration scenario schematic diagram provided by the embodiments of the present application.
First snapshot is protected when carrying out snapshot recovery using method provided by the embodiments of the present application, prevents from being missed It deletes, is then based on the protection snapshot and carries out quickly link clone, the pointer of disk is directed toward clone volume, data writes after recovery Enter and read all by clone volume, to achieve the effect that restore data, improves snapshot and restore efficiency.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
First below to the invention relates to concept simply introduced.
Ceph, a kind of distributed memory system;
NAS (Network Attached Storage), network attached storage;
SAN (Storage Area Network), storage area network;
Rbd-rados device block, block device management.
Fig. 1 is that a kind of distributed memory system disk snapshot restoration methods process that the application specific embodiment provides is shown It is intended to, as shown in Figure 1, it is mainly included the following steps that.
Step S101: when needing to restore snapshot, protecting the snapshot to be restored in source book, obtains protection snapshot, The protection snapshot is configured as not deleting.
Step S102: clone volume is created according to the protection snapshot, the clone volume, protection snapshot and source book store chain type Relationship is both configured to not delete.
Step S103: the pointer of disk is directed toward the clone volume, the read-write of data is carried out by the clone volume.
First snapshot is protected when carrying out snapshot recovery using method provided by the embodiments of the present application, prevents from being missed It deletes, is then based on the protection snapshot and carries out quickly link clone, the pointer of disk is directed toward clone volume, data writes after recovery Enter and read all by clone volume, to achieve the effect that restore data, improves snapshot and restore efficiency.
It is described in detail below in conjunction with specific embodiment.
Fig. 2 is a kind of distributed memory system disk snapshot and restoration scenario schematic diagram provided by the embodiments of the present application, Source book is shown in Fig. 2, which can be rbd disk, and all data of virtual machine are all written in source book.When creation snapshot When, snapshot 1, snapshot 2 ... snapshot N are generated using the inside snapshot command that rbd disk provides, these snapshots are relationships arranged side by side, Snapshot metadata information therein is recorded in source book, and there is the letter such as timing node and data distribution bitmap of each snapshot in the inside Breath;Restored when needing to restore snapshot, such as using snapshot 1, need first to protect snapshot 1, not in shielded snapshot 1 It can be deleted;Then the operation for restoring snapshot 1 is executed, a new clone volume, clone volume can be generated according to protection snapshot 1 at this time It is that there are chain relationships, therefore after carrying out recovery snapshot operation, protect snapshot 1 and source book not with protection snapshot 1 and source book It can delete;It is last if necessary to carry out snapshot 4, snapshot 5 ... snapshot M to the disk after recovery, snapshot metadata information is just at this time It will record in clone volume, clone volume at this time is equivalent to source book, and the read-write of data is all stored in clone volume.
Wherein, it before carrying out snapshot recovery, needs to be the reason of first protecting snapshot, prevents the later period from accidentally deleting the snapshot, Chain structure is caused to be interrupted, the problem of loss of data.In addition, other than the snapshot in guard mode, other snapshot nodes It can delete.
After restoring snapshot, subsequent all data can all be write in clone volume, no longer be write in original disk, the later period pair Clone volume carries out snapshot and restores similar with original disk, and details are not described herein.
In the embodiment of the present application, the scheme based on primary ceph block device disk snapshot improves, when being created It is still based on snapshot inside ceph when snapshot, but when carrying out snapshot recovery, first snapshot is protected, prevents from accidentally being deleted, The snapshot for being then based on the protection carries out quickly link clone, the pointer of disk is directed toward clone volume, data writes after recovery Enter and read all by clone volume, to achieve the effect that restore data.
It is corresponding with above method embodiment, restore to fill present invention also provides a kind of distributed memory system disk snapshot It sets, described device includes:
It is fast to obtain protection for being protected to the snapshot to be restored in source book when needing to restore snapshot for protective module According to the protection snapshot is configured as not deleting;
Cloning module, for creating clone volume, the clone volume, protection snapshot and source book storage according to the protection snapshot Chain relationship is both configured to not delete;
Pointer module carries out the read-write of data by the clone volume for the pointer of disk to be directed toward the clone volume.
In an alternative embodiment, described device further include:
Snapshot module, for carrying out snapshot creation for the clone volume as source book when needing to create snapshot.
In an alternative embodiment, the distributed memory system is ceph.
In another specific embodiment of the application, the embodiment of the present application provides a kind of computer-readable memory, It is stored with computer program on the computer storage, realizes that the above method is real when the computer program is executed by processor Apply the step in example.
In a kind of specific embodiment of the application, the embodiment of the present application provides a kind of electronic equipment, comprising:
Memory, for storing computer program;
Processor realizes the step in above method embodiment when for executing the computer program.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of equipment and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the division of unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of equipment or unit or Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that an electronic equipment (can To be personal computer, funcall equipment or the network equipment etc.) execute each embodiment method of the application whole or portion Step by step.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), with Machine accesses various Jie that can store program code such as memory (Random Access Memory, RAM), magnetic or disk Matter.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
System and method, computer storage are monitored to a kind of server power-up state provided herein above and set Standby to be described in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept;Meanwhile for the general skill of this field Art personnel, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this Description should not be construed as the limitation to the application.

Claims (8)

1. a kind of distributed memory system disk snapshot restoration methods, which is characterized in that the described method includes:
When needing to restore snapshot, the snapshot to be restored in source book is protected, obtains protection snapshot, the protection snapshot quilt It is configured to not delete;
Clone volume is created according to the protection snapshot, the clone volume, protection snapshot and source book store chain relationship, be configured For that can not delete;
The pointer of disk is directed toward the clone volume, the read-write of data is carried out by the clone volume.
2. the method according to claim 1, wherein passing through institute the pointer of disk is directed toward the clone volume After stating the read-write that clone volume carries out data, further includes:
When needing to create snapshot, snapshot creation is carried out using the clone volume as source book.
3. method according to claim 1 or 2, which is characterized in that the distributed memory system is ceph.
4. a kind of distributed memory system disk snapshot recovery device, which is characterized in that described device includes:
Protective module, for being protected to the snapshot to be restored in source book when needing to restore snapshot, acquisition protection snapshot, The protection snapshot is configured as not deleting;
Cloning module, for creating clone volume according to the protection snapshot, the clone volume, protection snapshot and source book store chain type Relationship is both configured to not delete;
Pointer module carries out the read-write of data by the clone volume for the pointer of disk to be directed toward the clone volume.
5. device according to claim 4, which is characterized in that further include:
Snapshot module, for carrying out snapshot creation for the clone volume as source book when needing to create snapshot.
6. device according to claim 4 or 5, which is characterized in that the distributed memory system is ceph.
7. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor realizes step as described in any one of claims 1 to 3 when for executing the computer program.
8. a kind of computer storage, which is characterized in that be stored with computer program, the calculating on the computer storage Such as claim 6 to 3 described in any item steps are realized when machine program is executed by processor.
CN201811281547.8A 2018-10-31 2018-10-31 A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment Pending CN109408291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811281547.8A CN109408291A (en) 2018-10-31 2018-10-31 A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811281547.8A CN109408291A (en) 2018-10-31 2018-10-31 A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109408291A true CN109408291A (en) 2019-03-01

Family

ID=65470662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811281547.8A Pending CN109408291A (en) 2018-10-31 2018-10-31 A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109408291A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947600A (en) * 2019-03-28 2019-06-28 深信服科技股份有限公司 A kind of file access pattern method, apparatus, equipment and medium based on Ceph
CN110489273A (en) * 2019-07-05 2019-11-22 苏州浪潮智能科技有限公司 A kind of storage backup method, system, terminal and storage medium based on SAN
CN110750496A (en) * 2019-10-23 2020-02-04 深信服科技股份有限公司 File copying method, system, equipment and computer readable storage medium
CN111263185A (en) * 2020-02-27 2020-06-09 中电福富信息科技有限公司 Video service cross-region access method based on GBT2260-2007 national standard coding specification
CN111314713A (en) * 2020-02-27 2020-06-19 中电福富信息科技有限公司 Nearby access method of video service based on GBT2260-2007 national standard coding specification
CN111552437A (en) * 2020-04-22 2020-08-18 上海天玑科技股份有限公司 Snapshot method and snapshot device applied to distributed storage system
CN112286626A (en) * 2020-09-14 2021-01-29 福建升腾资讯有限公司 Method, system, device and medium for fast and secure cloning of cross-storage disks

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2407884A2 (en) * 2004-11-02 2012-01-18 Hewlett-Packard Development Company, L.P. Data duplication operations in storage networks
CN105843704A (en) * 2016-03-15 2016-08-10 上海爱数信息技术股份有限公司 Data protection method and system capable of combining with snapshot function based on distributed block storage
CN107291883A (en) * 2017-06-20 2017-10-24 郑州云海信息技术有限公司 The Snapshot Method and device of a kind of distributed memory system
CN107291391A (en) * 2017-06-21 2017-10-24 郑州云海信息技术有限公司 A kind of data processing method and system for distributed memory system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2407884A2 (en) * 2004-11-02 2012-01-18 Hewlett-Packard Development Company, L.P. Data duplication operations in storage networks
CN105843704A (en) * 2016-03-15 2016-08-10 上海爱数信息技术股份有限公司 Data protection method and system capable of combining with snapshot function based on distributed block storage
CN107291883A (en) * 2017-06-20 2017-10-24 郑州云海信息技术有限公司 The Snapshot Method and device of a kind of distributed memory system
CN107291391A (en) * 2017-06-21 2017-10-24 郑州云海信息技术有限公司 A kind of data processing method and system for distributed memory system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭潇等: "基于Ceph的OpenStack存储克隆链", 《计算机与现代化》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947600A (en) * 2019-03-28 2019-06-28 深信服科技股份有限公司 A kind of file access pattern method, apparatus, equipment and medium based on Ceph
CN109947600B (en) * 2019-03-28 2023-02-03 深信服科技股份有限公司 File recovery method, device, equipment and medium based on Ceph
CN110489273A (en) * 2019-07-05 2019-11-22 苏州浪潮智能科技有限公司 A kind of storage backup method, system, terminal and storage medium based on SAN
CN110750496A (en) * 2019-10-23 2020-02-04 深信服科技股份有限公司 File copying method, system, equipment and computer readable storage medium
CN111263185A (en) * 2020-02-27 2020-06-09 中电福富信息科技有限公司 Video service cross-region access method based on GBT2260-2007 national standard coding specification
CN111314713A (en) * 2020-02-27 2020-06-19 中电福富信息科技有限公司 Nearby access method of video service based on GBT2260-2007 national standard coding specification
CN111552437A (en) * 2020-04-22 2020-08-18 上海天玑科技股份有限公司 Snapshot method and snapshot device applied to distributed storage system
CN111552437B (en) * 2020-04-22 2024-03-15 上海天玑科技股份有限公司 Snapshot method and snapshot device applied to distributed storage system
CN112286626A (en) * 2020-09-14 2021-01-29 福建升腾资讯有限公司 Method, system, device and medium for fast and secure cloning of cross-storage disks
CN112286626B (en) * 2020-09-14 2023-11-10 福建升腾资讯有限公司 Method, system, device and medium for fast and safe cloning of cross-storage disk

Similar Documents

Publication Publication Date Title
CN109408291A (en) A kind of distributed memory system disk snapshot restoration methods, device and electronic equipment
US10303561B2 (en) Point-in-time copy restore
CN102521072B (en) Virtual tape library equipment and data recovery method
US9600553B1 (en) Distributed replication in cluster environments
US9367598B2 (en) Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation
CN108351821B (en) Data recovery method and storage device
US10860447B2 (en) Database cluster architecture based on dual port solid state disk
CN104272274A (en) Data processing method and device in distributed file storage system
CN104077380A (en) Method and device for deleting duplicated data and system
US10838825B2 (en) Implementing snapshot sets for consistency groups of storage volumes
CN109828867A (en) A kind of cloud host disaster recovery method and system across data center
CN102750317A (en) Method and device for data persistence processing and data base system
CN109885427A (en) A kind of database short-term data guard method, device, memory and equipment
CN110456984A (en) The method that the block device of a kind of pair of Ceph storage carries out continuous data protection
CN105022680A (en) Data backup method and device
CN107046811A (en) One introduces a collection storage device sends the clone file of source file and source file to the method, source storage device and backup storage device of backup storage device
CN110333971A (en) SSD bad block table backup method, device, computer equipment and storage medium
CN107533495A (en) Technology for data backup and resume
CN105376329A (en) Remote online backup method for virtual machine
CN110865903B (en) Node abnormal reconnection multiplexing method and system based on erasure code distributed storage
US20150286429A1 (en) Efficient flashcopy backup and mount, clone, or restore collision avoidance using dynamic volume allocation with reuse
CN102722425A (en) Terminal operating system and method for backing up, recovering and cloning data remotely in real time
US9015433B2 (en) Resiliency with a destination volume in a replication environment
CN102325171B (en) Data storage method in monitoring system and system
CN104536852A (en) Data recovery method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301