CN113742134A - Volume curling method and device and related equipment - Google Patents

Volume curling method and device and related equipment Download PDF

Info

Publication number
CN113742134A
CN113742134A CN202110872523.5A CN202110872523A CN113742134A CN 113742134 A CN113742134 A CN 113742134A CN 202110872523 A CN202110872523 A CN 202110872523A CN 113742134 A CN113742134 A CN 113742134A
Authority
CN
China
Prior art keywords
volume
data
cloud
snapshot volume
snapshot
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.)
Withdrawn
Application number
CN202110872523.5A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110872523.5A priority Critical patent/CN113742134A/en
Publication of CN113742134A publication Critical patent/CN113742134A/en
Withdrawn legal-status Critical Current

Links

Images

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/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • 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

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 embodiment of the application discloses a volume reduction method, a volume reduction device and related equipment, wherein after data in a cloud volume is copied to a first snapshot volume, the cloud volume can be reduced, so that the data in the cloud volume is guaranteed to be backed up, after the data in the first snapshot volume is backed up to a cloud end, the bitmaps of the first snapshot volume and the first snapshot volume can be reduced, so that the volume reduction of the snapshot volume is achieved after the backup is guaranteed to be carried out smoothly, the bitmaps of a second snapshot volume and a second snapshot volume can be reduced, through the sequential volume reduction of the cloud volume, the snapshot volume in use and the snapshot volume not in use, the volume reduction of an original volume on the premise of not interrupting the cloud backup is achieved, and meanwhile, the accuracy of cloud data is guaranteed.

Description

Volume curling method and device and related equipment
Technical Field
The invention relates to the technical field of computers, in particular to a volume curling method, a volume curling device and related equipment.
Background
The cloud backup is a technology for uploading data at a certain moment in local storage to the cloud storage, so that the data is protected, and is a data protection measure based on a time point.
The cloud backup technology is realized based on a snapshot technology, when a cloud backup task is executed, a snapshot is created for a cloud volume, the data of the cloud volume at the moment is stored in the snapshot volume, the data in the cloud volume may change later, the data in the snapshot volume is not affected, the data is read from the snapshot volume and uploaded to a cloud end, and after the data uploading is completed, the cloud backup task is ended.
After the snapshot relationship is created, the storage system generates a bitmap for managing the snapshot relationship, where the bitmap is an array structure for managing operations of copying data from a source volume (i.e., a cloud volume) to a target volume (i.e., a snapshot volume) in the snapshot relationship. Each element in the array is 1bit in size and is used to mark whether a block of fixed-size (e.g., 256KB) data in the source volume has been copied from the source volume to the target volume, with each element corresponding to a block of storage area. For example, if the data in the storage area has been copied from the source volume to the target volume, the bit of the bitmap corresponding to the area may be set to 1, and if the data in the storage area has not been copied from the source volume to the target volume, the bit of the bitmap corresponding to the area may be set to 0.
The volume reduction technology can reduce the capacity of an existing volume, so as to achieve the purpose of releasing the storage space, and correspondingly, the volume reduction technology may cause the data at the corresponding position in the volume to be lost. At present, a cloud volume does not support volume reduction operation, if the cloud volume needs to be reduced, cloud backup operation must be stopped, snapshots must be deleted, then the volume reduction is performed, and after the volume reduction is completed, the configuration of the cloud volume needs to be restored, so that a subsequent cloud backup function is realized.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present application provide a volume reduction method, a volume reduction device, and related equipment, which can perform a volume reduction operation on a cloud volume in a cloud backup execution process, and ensure accuracy of cloud data. The specific scheme is as follows:
in a first aspect, the present application discloses a volume curling method, comprising:
after data in a cloud volume is copied to a first snapshot volume, capacity reduction is carried out on the cloud volume;
after the data in the first snapshot volume is backed up to the cloud, performing capacity reduction on the first snapshot volume and the bitmap of the first snapshot volume;
and carrying out capacity reduction on the second snapshot volume and the bitmap of the second snapshot volume.
Optionally, the step of backing up the data in the first snapshot volume to the cloud includes:
backing up target data in the first snapshot volume to a cloud end, wherein a value of second bitmap data corresponding to the target data is a second identifier, and the second identifier represents that data corresponding to the second bitmap data in the cloud volume is copied to the second snapshot volume.
Optionally, the backing up the data in the first snapshot volume to the cloud includes:
and backing up the full data in the first snapshot volume to the cloud.
Optionally, after performing a reduction on the bitmap of the first snapshot volume, the method further includes:
setting all first bitmap data of the first snapshot volume as a first identifier, where the first identifier indicates that data corresponding to the first bitmap data in the cloud volume has been copied to the first snapshot volume.
Optionally, after performing capacity reduction on the second snapshot volume and the bitmap of the second snapshot volume, the method further includes:
copying the data in the reduced cloud volume to the second snapshot volume;
and according to the first bitmap data, backing up the full data in the second snapshot volume to a cloud end.
Optionally, after performing a reduction on the bitmap of the second snapshot volume, the method further includes:
setting all second bitmap data of the second snapshot volume as a third identifier, where the third identifier indicates that data corresponding to the second bitmap data in the cloud volume is not copied to the second snapshot volume.
Optionally, before copying the data in the cloud volume to the first snapshot volume, the method further includes: suspending data read-write operation of the host computer on the cloud volume;
after the second snapshot volume and the bitmap of the second snapshot volume are condensed, the method further comprises: and recovering the data read-write operation of the host computer to the cloud volume.
In a second aspect, the present application discloses a crimping device, comprising:
the cloud volume capacity reducing unit is used for reducing the capacity of the cloud volume after copying the data in the cloud volume to the first snapshot volume;
the first snapshot volume capacity reduction unit is used for carrying out capacity reduction on the first snapshot volume and the bitmap of the first snapshot volume after the data in the first snapshot volume is backed up to the cloud end;
and the second snapshot volume capacity reduction unit is used for reducing the capacity of the second snapshot volume and the bitmap of the second snapshot volume.
Optionally, the bitmap of the second snapshot volume has second bitmap data, and the first snapshot volume capacity reduction unit is specifically configured to:
after the target data in the first snapshot volume is backed up to the cloud, carrying out capacity reduction on the first snapshot volume and the bitmap of the first snapshot volume; and the value of the second bitmap data corresponding to the target data is a second identifier, and the second identifier represents that the data corresponding to the second bitmap data in the cloud volume is copied to the second snapshot volume.
Optionally, the first snapshot volume reduction unit is specifically configured to:
and backing up the full data in the first snapshot volume to the cloud.
Optionally, the apparatus further comprises:
and the first bitmap data setting unit is used for setting all first bitmap data of the first snapshot volume as a first identifier after the bitmap of the first snapshot volume is subjected to capacity reduction, wherein the first identifier represents that data corresponding to the first bitmap data in the cloud volume is copied to the first snapshot volume.
Optionally, the apparatus further comprises:
the cloud backup unit is used for copying the data in the cloud volume subjected to capacity reduction to a second snapshot volume after the capacity reduction is carried out on the second snapshot volume and the bitmap of the second snapshot volume;
and according to the first bitmap data, backing up the full data in the second snapshot volume to a cloud end.
Optionally, the apparatus further comprises:
and the second bitmap data setting unit is configured to set all second bitmap data of the second snapshot volume as a third identifier after performing capacity reduction on the bitmap of the second snapshot volume, where the third identifier indicates that data corresponding to the second bitmap data in the cloud volume is not copied to the second snapshot volume.
Optionally, the apparatus further comprises:
the system comprises a suspension unit, a storage unit and a control unit, wherein the suspension unit is used for suspending data read-write operation of a host computer on a cloud volume before copying the data in the cloud volume to a first snapshot volume;
and the recovery unit is used for recovering the data read-write operation of the host computer to the cloud volume after the capacity reduction is carried out on the second snapshot volume and the bitmap of the second snapshot volume.
In a third aspect, the present application discloses an electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the volume reduction method disclosed above.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the volume reduction method disclosed above.
The embodiment of the application provides a volume reduction method, a volume reduction device and related equipment, after data in a cloud volume is copied to a first snapshot volume, the cloud volume can be reduced, so that the data in the cloud volume is guaranteed to be backed up, after the data in the first snapshot volume is backed up to a cloud end, the bitmaps of the first snapshot volume and the first snapshot volume can be reduced, so that the volume reduction of the snapshot volume is achieved after the backup is guaranteed to be carried out smoothly, then the bitmaps of a second snapshot volume and a second snapshot volume can be reduced, through the sequential volume reduction of the cloud volume, the snapshot volume in use and the snapshot volume not in use, the volume reduction of an original volume on the premise of not interrupting the cloud backup is achieved, and meanwhile, the accuracy of cloud data is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart of a volume curling method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a cloud backup according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a volume curling device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device disclosed in the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As described in the background art, the cloud backup technology is implemented based on a snapshot technology, and data at a certain time in a local storage can be uploaded to a cloud storage, so that the data is protected. In order to ensure the accuracy of cloud data, a current cloud volume does not support volume capacity reduction, before the cloud volume is subjected to capacity reduction, cloud backup operation must be stopped, snapshots must be deleted, then capacity reduction is performed, and after the capacity reduction is completed, the configuration of the cloud volume needs to be restored, so that a subsequent cloud backup function is realized, and the operation is complex.
Based on the above technical problems, embodiments of the present application provide a volume reduction method, apparatus, and related device, after copying data in a cloud volume to a first snapshot volume, the volume reduction may be performed on the cloud volume, so that it is ensured that the data in the cloud volume is backed up, after backing up the data in the first snapshot volume to a cloud, the volume reduction may be performed on a bitmap of the first snapshot volume and a bitmap of the first snapshot volume, so that the volume reduction of the snapshot volume is achieved after the backup is successfully performed, the volume reduction may be performed on a bitmap of a second snapshot volume and a bitmap of the second snapshot volume, and by sequentially reducing the volumes of the cloud volume, the snapshot volume in use, and the snapshot volume not in use, the volume reduction of an original volume on the premise of not interrupting cloud backup is achieved, and at the same time, the accuracy of cloud data is ensured.
The following describes in detail a specific implementation manner of the volume curling method, the apparatus and the related device provided by the embodiments of the present application with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a volume curling method provided by an embodiment of the present application is shown, where the method may include the following steps:
s101, after the data in the cloud volume is copied to the first snapshot volume, the cloud volume is reduced.
In the embodiment of the application, the capacity of the cloud volume is reduced by the scaling of the cloud volume, the data at the reduced position may be lost, and in order to ensure the accuracy of the cloud data, the data in the cloud volume needs to be copied to the first snapshot volume, so that the data in the cloud volume can be deleted to scale the cloud volume.
Specifically, when a certain piece of data in the cloud volume is to be deleted, the piece of data is copied to the first snapshot volume, the first bitmap data of the first snapshot volume is updated in the copying process to represent the copying state of the data in the cloud volume, and then the piece of data in the cloud volume is deleted, so that the capacity reduction is performed on the cloud volume. The purpose of this is to protect the data consistency of this cloud backup task. Because the cloud backup is a time-based data protection function, when the cloud backup is started, the capacity reduction operation is not performed, and therefore all data before the cloud volume reduction needs to be uploaded to the cloud end in the cloud backup.
Specifically, when the first bitmap data of the first snapshot volume is the first identifier, the data representing the storage area corresponding to the bit of the first identifier is copied to the first snapshot volume, and the first identifier may be specifically 1. Therefore, when the first bitmap data corresponding to the storage area is the first identifier, the action of deleting the data of the storage area can be executed; when the first bitmap data corresponding to the storage area is the fourth identifier, the data of the storage area corresponding to the bit representing the fourth identifier is not copied to the first snapshot volume, and the fourth identifier may be specifically 0, at this time, the data of the storage area may be copied to the first snapshot volume.
In the embodiment of the application, the snapshot can only copy data at a certain moment, so that in order to prevent the change of the cloud volume data in the cloud backup process, the data read-write (Input/Output, IO) operation of the host on the cloud volume can be suspended before the data in the cloud volume is copied to the first snapshot volume, so that the cloud backup data is the latest data in the cloud volume, and the accuracy of the cloud data is ensured.
S102, after the data in the first snapshot volume is backed up to the cloud, the first snapshot volume and the bitmap of the first snapshot volume are subjected to capacity reduction.
In the embodiment of the application, the data in the cloud volume is copied in the first snapshot volume, so that the data in the first snapshot volume can be backed up to the cloud end, and the accuracy of the cloud end data is ensured.
Specifically, in a scenario where the cloud backup is implemented by using the first snapshot volume alone, the full data in the first snapshot volume may be backed up to the cloud end, so as to implement a complete backup of the data.
Specifically, to implement incremental data upload, the cloud volume may create 2 snapshots: referring to fig. 2, a snapshot volume a and a snapshot volume B are schematic diagrams of cloud backup in an embodiment of the present application, and cloud backup can be implemented by alternately using a first snapshot volume and a second snapshot volume, in this scenario, part of data in the first snapshot volume may be backed up to a cloud, where part of data backed up to the cloud is indicated by second bitmap data of the second snapshot volume. A description is given below of a scenario in which the first snapshot volume and the second snapshot volume are used alternately to implement cloud backup.
After the cloud backup is started for the first time, the snapshot volume A is started, the data in the cloud volume at a certain moment can be copied by the snapshot volume A, and the data are read from the snapshot volume A by the system and uploaded to the cloud (namely cloud storage). In the starting stage of the snapshot volume a, if the data of the cloud volume is changed, the snapshot volume a copies the data before the change, and the bitmap of the snapshot volume a records the position of the changed data, specifically, when the snapshot volume a copies the data before the change, the bit in the bitmap of the snapshot volume a corresponding to the position of the changed data changes.
After the cloud backup is started again, the snapshot volume B is started, the data in the cloud volume at another moment can be copied by the snapshot volume B, and the system reads out the corresponding data (namely the changed data) from the snapshot volume B and uploads the data to the cloud end by taking the bitmap of the snapshot volume A as a reference. In the starting stage of the snapshot volume B, if the data of the cloud volume is changed, the snapshot volume B will copy the data before the change, and the bitmap of the snapshot volume B will record the position of the changed data, specifically, when the snapshot volume B copies the data before the change, the bit in the bitmap of the snapshot volume B corresponding to the position of the changed data will change. And after the cloud backup task is completed, stopping the snapshot volume A and clearing the bitmap of the snapshot volume A.
After the cloud backup is started for the third time, the snapshot volume A is started, the snapshot volume A can copy data in the cloud volume at another moment, and the system reads out corresponding data (namely changed data) from the snapshot volume A and uploads the data to the cloud end by taking the bitmap of the snapshot volume B as a reference. In the starting stage of the snapshot volume a, if the data of the cloud volume is changed, the snapshot volume a copies the data before the change, and the bitmap of the snapshot volume a records the position of the changed data, specifically, when the snapshot volume a copies the data before the change, the bit in the bitmap of the snapshot volume a corresponding to the position of the changed data changes. And after the cloud backup task is completed, stopping the snapshot volume B and clearing the bitmap of the snapshot volume B.
By analogy, the incremental data can be clouded by utilizing the snapshot volume A and the snapshot volume B.
The first snapshot volume is a snapshot volume in use, which may be a snapshot volume a or a snapshot volume B, the second snapshot volume is a snapshot volume not in use, which may be a snapshot volume a or a snapshot volume B, a bitmap of the second snapshot volume has second bitmap data, data in the first snapshot volume is backed up to the cloud, specifically, target data in the first snapshot volume is backed up to the cloud, a value of the second bitmap data corresponding to the target data is a second identifier, and the second identifier represents that data corresponding to the second bitmap data in the cloud volume has been copied to the second snapshot volume. That is to say, if the bitmap of the second snapshot volume indicates that the target data has changed, only the changed target data in the first snapshot volume may be backed up to the cloud.
Of course, when the first snapshot volume is the snapshot volume a that is started for the first time, the full amount of data in the first snapshot volume may also be backed up to the cloud.
After the data in the first snapshot volume is backed up to the cloud, the first snapshot volume and the bitmap of the first snapshot volume can be subjected to capacity reduction. Specifically, after the data in the first snapshot volume is backed up to the cloud, the data in the storage area corresponding to the bitmap of the first snapshot volume is deleted, and after the capacity reduction of the cloud volume, the bitmap does not have a corresponding storage space in the cloud volume, so that the bitmap data of the first snapshot volume needs to be deleted, and then the bitmap of the first snapshot volume needs to be subjected to capacity reduction.
After the bitmap of the first snapshot volume is subjected to capacity reduction, all first bitmap data of the first snapshot volume may also be set as a first identifier, where the first identifier represents that data corresponding to the first bitmap data in the cloud volume has been copied to the first snapshot volume, in other words, data of a storage area corresponding to the first identifier has been updated. For example, the first bitmap data of the first snapshot volume are all set to 1. The reason is that the volume reduction is performed by randomly selecting the data blocks to delete, so that the cloud volume data, the snapshot volume data and the snapshot bitmap data after the volume reduction cannot be in one-to-one correspondence, and after the setting, when the cloud backup is performed next time, the first bitmap data indicates that all the data in the cloud volume are changed data, and the cloud backup is the full cloud backup next time, so as to ensure the consistency of the data.
After the data in the first snapshot volume is backed up to the cloud, the second snapshot volume can also be stopped, and the bitmap of the second snapshot volume is cleared.
And S103, carrying out capacity reduction on the second snapshot volume and the bitmap of the second snapshot volume.
After the capacity reduction is performed on the first snapshot volume and the bitmap of the first snapshot, it is described that the second snapshot volume has been stopped, and the bitmap of the second snapshot volume is also cleared, so that the capacity reduction can be performed on the second snapshot volume and the bitmap of the second snapshot volume. Then, after the cloud backup is started, a second snapshot volume can be started, the data in the reduced cloud volume is copied to the second snapshot volume, and then the full data in the second snapshot volume is backed up to the cloud end according to the first bitmap data. The reason is that all the first bitmap data are set as the first identifiers, so that the data which identifies the change in the cloud volume are full data, and the cloud backup of the full data is performed, so that the data accuracy of the cloud backup at this time can be ensured.
After the capacity reduction is performed on the second snapshot volume and the bitmap of the second snapshot volume, the second bitmap data of the second snapshot volume may be set as a third identifier, where the third identifier indicates that data corresponding to the second bitmap data in the cloud volume is not copied to the second snapshot volume.
After the second snapshot volume and the bitmap of the second snapshot volume are subjected to capacity reduction, the data read-write operation of the host computer on the cloud volume can be recovered.
The embodiment of the application provides a volume reduction method, after data in a cloud volume is copied to a first snapshot volume, the cloud volume can be reduced, so that the data in the cloud volume is guaranteed to be backed up, after the data in the first snapshot volume is backed up to a cloud end, the bitmaps of the first snapshot volume and the first snapshot volume can be reduced, so that the reduction of the snapshot volume is achieved after the backup is guaranteed to be carried out smoothly, the bitmaps of a second snapshot volume and a second snapshot volume can be reduced, through the sequential reduction of the cloud volume, the snapshot volume in use and the snapshot volume not in use, the reduction of the original volume on the premise of not interrupting the cloud backup is achieved, and meanwhile, the accuracy of the cloud end data is guaranteed.
Based on the above volume reduction method, an embodiment of the present application further provides a volume reduction device, and referring to fig. 3, a structural block diagram of the volume reduction device provided in the embodiment of the present application is shown, where the structural block diagram includes:
a cloud volume capacity reduction unit 110, configured to, after copying data in a cloud volume to a first snapshot volume, perform capacity reduction on the cloud volume;
a first snapshot volume capacity reduction unit 120, configured to reduce the capacity of the first snapshot volume and the bitmap of the first snapshot volume after the data in the first snapshot volume is backed up to the cloud;
and a second snapshot volume capacity reducing unit 130, configured to reduce the capacity of the second snapshot volume and the bitmap of the second snapshot volume.
Optionally, the bitmap of the second snapshot volume has second bitmap data, and the first snapshot volume capacity reduction unit is specifically configured to:
after the target data in the first snapshot volume is backed up to the cloud, carrying out capacity reduction on the first snapshot volume and the bitmap of the first snapshot volume; and the value of the second bitmap data corresponding to the target data is a second identifier, and the second identifier represents that the data corresponding to the second bitmap data in the cloud volume is copied to the second snapshot volume.
Optionally, the first snapshot volume reduction unit is specifically configured to:
and backing up the full data in the first snapshot volume to the cloud.
Optionally, the apparatus further comprises:
and the first bitmap data setting unit is used for setting all first bitmap data of the first snapshot volume as a first identifier after the bitmap of the first snapshot volume is subjected to capacity reduction, wherein the first identifier represents that data corresponding to the first bitmap data in the cloud volume is copied to the first snapshot volume.
Optionally, the apparatus further comprises:
the cloud backup unit is used for copying the data in the cloud volume subjected to capacity reduction to a second snapshot volume after the capacity reduction is carried out on the second snapshot volume and the bitmap of the second snapshot volume;
and according to the first bitmap data, backing up the full data in the second snapshot volume to a cloud end.
Optionally, the apparatus further comprises:
and the second bitmap data setting unit is configured to set all second bitmap data of the second snapshot volume as a third identifier after performing capacity reduction on the bitmap of the second snapshot volume, where the third identifier indicates that data corresponding to the second bitmap data in the cloud volume is not copied to the second snapshot volume.
Optionally, the apparatus further comprises:
the system comprises a suspension unit, a storage unit and a control unit, wherein the suspension unit is used for suspending data read-write operation of a host computer on a cloud volume before copying the data in the cloud volume to a first snapshot volume;
and the recovery unit is used for recovering the data read-write operation of the host computer to the cloud volume after the capacity reduction is carried out on the second snapshot volume and the bitmap of the second snapshot volume.
The embodiment of the application provides a volume shrinkage device, after copying data in a cloud volume to a first snapshot volume, the volume shrinkage can be carried out on the cloud volume, so that the data in the cloud volume is guaranteed to be backed up, after the data in the first snapshot volume is backed up to a cloud end, the volume shrinkage can be carried out on bitmaps of the first snapshot volume and the first snapshot volume, so that the volume shrinkage of the snapshot volume is realized after the backup is guaranteed to be carried out smoothly, then the volume shrinkage can be carried out on bitmaps of a second snapshot volume and a second snapshot volume, through the sequential volume shrinkage of the cloud volume, the snapshot volume in use and the snapshot volume not in use, the volume shrinkage of a primary volume on the premise of not interrupting the cloud backup is realized, and meanwhile, the accuracy of cloud end data is guaranteed.
Referring to fig. 4, a schematic structural diagram of an electronic device 20 provided in the embodiment of the present application is shown, where the electronic device 20 may implement the steps of the volume rolling method disclosed in the foregoing embodiment.
In general, the electronic device 20 in the present embodiment includes: a processor 21 and a memory 22.
The processor 21 may include one or more processing cores, such as a four-core processor, an eight-core processor, and so on. The processor 21 may be implemented by at least one hardware of a DSP (digital signal processing), an FPGA (field-programmable gate array), and a PLA (programmable logic array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (graphics processing unit) which is responsible for rendering and drawing images to be displayed on the display screen. In some embodiments, the processor 21 may include an AI (artificial intelligence) processor for processing computing operations related to machine learning.
Memory 22 may include one or more computer-readable storage media, which may be non-transitory. Memory 22 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 22 is at least used for storing the following computer program 221, wherein after being loaded and executed by the processor 21, the steps of the volume reduction method disclosed in any of the foregoing embodiments can be implemented.
In some embodiments, the electronic device 20 may further include a display 23, an input/output interface 24, a communication interface 25, a sensor 26, a power supply 27, and a communication bus 28.
Those skilled in the art will appreciate that the configuration shown in FIG. 4 is not limiting to electronic device 20 and may include more or fewer components than those shown.
Further, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the volume reduction method disclosed in any of the foregoing embodiments.
For the specific process of the volume reduction method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, system embodiments and apparatus embodiments are substantially similar to method embodiments and are therefore described in relatively simple terms, where relevant, reference may be had to the description of the method embodiments.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a read-only memory (ROM)/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The first mentioned in the embodiments of the present application is only for name identification and does not represent the first in sequence. The same applies to "second" etc.
The above description is only a preferred embodiment of the present application and is not intended to limit the scope of the present application. It should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the scope of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method of crimping containers, comprising:
after data in a cloud volume is copied to a first snapshot volume, capacity reduction is carried out on the cloud volume;
after the data in the first snapshot volume is backed up to the cloud, performing capacity reduction on the first snapshot volume and the bitmap of the first snapshot volume;
and carrying out capacity reduction on the second snapshot volume and the bitmap of the second snapshot volume.
2. The method of claim 1, wherein the bitmap of the second snapshot volume has second bitmap data, and wherein backing up the data in the first snapshot volume to a cloud comprises:
backing up target data in the first snapshot volume to a cloud end, wherein a value of second bitmap data corresponding to the target data is a second identifier, and the second identifier represents that data corresponding to the second bitmap data in the cloud volume is copied to the second snapshot volume.
3. The method of claim 1, wherein backing up data in the first snapshot volume to a cloud comprises:
and backing up the full data in the first snapshot volume to the cloud.
4. The method of claim 1, further comprising, after the collapsing the bitmap of the first snapshot volume:
setting all first bitmap data of the first snapshot volume as a first identifier, where the first identifier indicates that data corresponding to the first bitmap data in the cloud volume has been copied to the first snapshot volume.
5. The method of claim 4, wherein after the scaling of the second snapshot volume and the bitmap of the second snapshot volume, further comprising:
copying the data in the reduced cloud volume to the second snapshot volume;
and according to the first bitmap data, backing up the full data in the second snapshot volume to a cloud end.
6. The method of claim 1, further comprising, after the collapsing the bitmap of the second snapshot volume:
setting all second bitmap data of the second snapshot volume as a third identifier, where the third identifier indicates that data corresponding to the second bitmap data in the cloud volume is not copied to the second snapshot volume.
7. The method of claim 1, wherein prior to copying data in the cloud volume to the first snapshot volume, the method further comprises: suspending data read-write operation of the host computer on the cloud volume;
after the second snapshot volume and the bitmap of the second snapshot volume are condensed, the method further comprises: and recovering the data read-write operation of the host computer to the cloud volume.
8. A curling device, comprising:
the cloud volume capacity reducing unit is used for reducing the capacity of the cloud volume after copying the data in the cloud volume to the first snapshot volume;
the first snapshot volume capacity reduction unit is used for carrying out capacity reduction on the first snapshot volume and the bitmap of the first snapshot volume after the data in the first snapshot volume is backed up to the cloud end;
and the second snapshot volume capacity reduction unit is used for reducing the capacity of the second snapshot volume and the bitmap of the second snapshot volume.
9. An electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor, configured to execute the computer program to implement the volume reduction method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the volume shrink containment method of any one of claims 1 to 7.
CN202110872523.5A 2021-07-30 2021-07-30 Volume curling method and device and related equipment Withdrawn CN113742134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110872523.5A CN113742134A (en) 2021-07-30 2021-07-30 Volume curling method and device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110872523.5A CN113742134A (en) 2021-07-30 2021-07-30 Volume curling method and device and related equipment

Publications (1)

Publication Number Publication Date
CN113742134A true CN113742134A (en) 2021-12-03

Family

ID=78729563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110872523.5A Withdrawn CN113742134A (en) 2021-07-30 2021-07-30 Volume curling method and device and related equipment

Country Status (1)

Country Link
CN (1) CN113742134A (en)

Similar Documents

Publication Publication Date Title
KR101636870B1 (en) Method and apparatus for generating minimal boot image
CN106201659B (en) A kind of method and host of live migration of virtual machine
CN113626256B (en) Virtual machine disk data backup method, device, terminal and storage medium
WO2018058944A1 (en) Method and device for deleting cascade snapshot
US20110093437A1 (en) Method and system for generating a space-efficient snapshot or snapclone of logical disks
CN105144113A (en) Recovery of application from snapshot
CN109445861A (en) System start method, device, computer installation and storage medium
CN107402848A (en) A kind of implementation method of snapshot data uniformity
WO2019215532A1 (en) Host aware update write
CN111651239A (en) Virtual machine cloning method, device, equipment and medium
CN114036004B (en) Data backup method, recovery method and device
CN113641640A (en) Data processing method, device, equipment and medium for streaming computing system
CN112231288A (en) Log storage method and device and medium
CN112269531B (en) Source roll capacity reduction method, device, equipment and medium
CN113742134A (en) Volume curling method and device and related equipment
WO2024113543A1 (en) Data processing method, system, and apparatus, non-volatile readable storage medium, and electronic device
CN107783826A (en) A kind of virtual machine migration method, apparatus and system
CN112463047B (en) Data migration and recovery method and related device
CN113448774B (en) Method, system, device and medium for optimizing copy-on-write storage snapshot management
JP2006085279A (en) File management program and file management method
CN111176571A (en) Method, device, equipment and medium for managing local object
CN107357536B (en) Data modification and writing method and system for distributed storage system
CN111125012A (en) Snapshot generation method, device and equipment and readable storage medium
JP2008140236A (en) Memory management system, information processor and memory management method
CN114020415B (en) Method for realizing hyper-v virtual machine backup based on Bitmap and application

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20211203

WW01 Invention patent application withdrawn after publication