CN111984469B - Incremental snapshot capacity expansion method and device - Google Patents

Incremental snapshot capacity expansion method and device Download PDF

Info

Publication number
CN111984469B
CN111984469B CN202010790152.1A CN202010790152A CN111984469B CN 111984469 B CN111984469 B CN 111984469B CN 202010790152 A CN202010790152 A CN 202010790152A CN 111984469 B CN111984469 B CN 111984469B
Authority
CN
China
Prior art keywords
capacity
space
bitmap
storage pool
expansion
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
CN202010790152.1A
Other languages
Chinese (zh)
Other versions
CN111984469A (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.)
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 CN202010790152.1A priority Critical patent/CN111984469B/en
Publication of CN111984469A publication Critical patent/CN111984469A/en
Application granted granted Critical
Publication of CN111984469B publication Critical patent/CN111984469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/1448Management of the data involved in backup or backup restore
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes

Abstract

The invention discloses an incremental snapshot capacity expansion method, which comprises the following steps: closing input and output between the host and the source volume, and judging whether the residual capacity space of the first storage pool where the target volume is located meets the capacity expansion of the preset capacity; if yes, applying for a virtual capacity expansion space with preset capacity from the first storage pool through the target volume; judging whether the residual capacity space of the second storage pool where the source volume is located meets the capacity expansion of the preset capacity; if yes, applying for the actual expansion space with the preset capacity from the second storage pool through the source volume; calculating the size of the required bitmap space according to the preset capacity, and judging whether the residual space of the bitmap space can meet the size of the required bitmap space; and if so, configuring bitmap information, updating the snapshot progress according to the bitmap information, feeding back successful capacity expansion information and recovering the input and output of the host. The invention also discloses a corresponding device. The invention can carry out volume expansion operation on the premise of not disconnecting the incremental snapshot relation.

Description

Method and device for expanding incremental snapshot
Technical Field
The present invention relates to the field of network storage technologies, and in particular, to a method and an apparatus for expanding an incremental snapshot.
Background
Snapshot is a point-in-time based data protection technique. When a snapshot is created for a volume, the target volume in the snapshot relationship has the same data in the source volume at the time the snapshot was created. When the data of the source volume is modified, the data in the target volume still remains unchanged, so that the purpose of protecting the data is achieved. The snapshots are divided into normal snapshots and incremental snapshots according to the number of data copies. After the common snapshot is started each time, all data of the source volume are copied to the target volume; and the incremental snapshot only copies all data to the target volume after the first startup, and then starts the snapshot again, only copies the data changed in the current startup and last startup time period to the target volume, so that the bandwidth is saved, and the system pressure is reduced.
The volume capacity expansion technology can increase the capacity of an existing volume, thereby achieving the purpose of storing more data.
A precondition for a snapshot relationship to be created between two volumes is that the volumes must be as large. After the snapshot relationship is created, the storage system generates a split bitmap for managing the snapshot relationship, and if the snapshot is an incremental snapshot, additionally generates a difference bitmap, the volume expansion operation cannot be executed by either the source volume or the target volume, because once the capacity of one or two volumes changes, the excessive areas are not managed by corresponding bitmaps, so that the phenomenon of data inconsistency occurs, if the volume expansion is to be realized, the snapshot relation must be disconnected first, the operation is not only complicated, but also the result of inconsistent data can occur if the snapshot relationship is disconnected when the snapshot progress is not completed.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide an incremental snapshot capacity expansion technique, which can perform a volume capacity expansion operation without disconnecting a snapshot relationship.
Based on the above object, an aspect of the present invention provides an incremental snapshot capacity expansion method, where the method includes:
closing input and output between the host and the source volume, and judging whether the residual capacity space of the first storage pool where the target volume is located meets the capacity expansion of the preset capacity;
responding to the fact that the remaining capacity space of the first storage pool meets the capacity required by capacity expansion, and applying a virtual capacity expansion space with preset capacity to the first storage pool through the target volume;
judging whether the residual capacity space of the second storage pool where the source volume is located meets the capacity expansion of the preset capacity;
responding to the fact that the remaining capacity space of the second storage pool meets the capacity needed by capacity expansion, and applying actual capacity expansion space with preset capacity to the second storage pool through the source volume;
calculating the size of the required bitmap space according to the preset capacity, and judging whether the residual space of the bitmap space can meet the size of the required bitmap space;
and responding to the fact that the residual space of the bitmap space meets the size of the needed bitmap space, configuring bitmap information, updating the snapshot progress according to the bitmap information, feeding back successful capacity expansion information and recovering input and output of the host.
In some embodiments of the incremental snapshot capacity expansion method of the present invention, calculating the size of the bitmap space according to the preset capacity, and determining whether the remaining space of the bitmap space can satisfy the size of the bitmap space further includes:
and calculating the sizes of the required split bitmap and the required difference bitmap according to the preset capacity, and judging whether the bitmap space meets the sizes of the split bitmap and the difference bitmap.
In some embodiments of the incremental snapshot capacity expansion method of the present invention, in response to the remaining space of the bitmap space satisfying the size of the bitmap space, configuring bitmap information, and updating the snapshot schedule according to the bitmap information further includes:
and in response to the bitmap space meeting the sizes of the split bitmap and the difference bitmap, configuring all the split bitmaps to be in a copied state and configuring all the difference bitmaps to be in a to-be-copied state.
In some embodiments of the incremental snapshot capacity expansion method of the present invention, determining whether a remaining capacity space of the first storage pool where the target volume is located meets capacity expansion of a preset capacity further includes:
judging whether the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool or not;
in response to that the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool, judging whether capacity expansion of the preset capacity is met according to whether the remaining capacity space of the storage pools is larger than or equal to 2 times of the preset capacity;
in response to the second storage pool of the source volume and the first storage pool of the target volume not being the same storage pool, determining whether capacity expansion of a preset capacity is satisfied based on whether a remaining capacity space of the storage pools is greater than or equal to the preset capacity.
In some embodiments of the method for expanding an incremental snapshot according to the present invention, the method further includes:
and responding to the situation that the residual capacity space of the first storage pool does not meet the capacity required by capacity expansion, ending the capacity expansion process, feeding back capacity expansion failure information and recovering the input and output of the source volume and the host.
In some embodiments of the method for expanding an incremental snapshot according to the present invention, the method further includes:
and in response to that the remaining capacity space of the second storage pool does not meet the capacity required for capacity expansion, performing capacity reduction operation on the expanded target volume according to the preset capacity, feeding back capacity expansion failure information, and recovering the input and output of the source volume and the host.
In some embodiments of the method for expanding an incremental snapshot according to the present invention, the method further includes:
and in response to the fact that the residual space of the bitmap space does not meet the size of the required bitmap space, performing capacity reduction operation on the expanded source volume and the expanded target volume according to the preset capacity, feeding back capacity expansion failure information, and recovering input and output of the source volume and the host.
In another aspect of the embodiments of the present invention, an incremental snapshot capacity expansion apparatus is further provided, where the apparatus includes:
the target volume expansion space judgment module is configured to close input and output between the host and the source volume and judge whether the residual capacity space of the first storage pool where the target volume is located meets the expansion of the preset capacity;
the target volume capacity expansion space application module is configured to respond that the remaining capacity space of the first storage pool meets the capacity required by capacity expansion, and apply a virtual capacity expansion space with preset capacity to the first storage pool through the target volume;
the source volume capacity expansion space judgment module is configured to judge whether the capacity space left in the second storage pool where the source volume is located meets the capacity expansion of the preset capacity;
the source volume capacity expansion space application module is configured to respond that the remaining capacity space of the second storage pool meets the capacity required by capacity expansion, and apply actual capacity expansion space with preset capacity to the second storage pool through the source volume;
the bitmap expansion space judgment module is configured to calculate the size of the required bitmap space according to the preset capacity and judge whether the residual space of the bitmap space can meet the size of the required bitmap space;
and the bitmap expansion space application module is configured to respond that the residual space of the bitmap space meets the size of the required bitmap space, configure bitmap information, update the snapshot progress according to the bitmap information, feed back successful expansion information and recover the input and the output of the host.
In some embodiments of the incremental snapshot capacity expansion apparatus according to the present invention, the bitmap capacity expansion space determining module is further configured to:
and calculating the sizes of the required split bitmap and the difference bitmap according to the preset capacity, and judging whether the bitmap space meets the sizes of the split bitmap and the difference bitmap.
In some embodiments of the incremental snapshot capacity expansion apparatus according to the present invention, the target volume capacity expansion space determination module is further configured to:
judging whether the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool or not;
in response to that the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool, judging whether capacity expansion of the preset capacity is met according to whether the remaining capacity space of the storage pools is larger than or equal to 2 times of the preset capacity;
in response to the second storage pool of the source volume and the first storage pool of the target volume not being the same storage pool, determining whether capacity expansion of a preset capacity is satisfied according to whether a remaining capacity space of the storage pools is greater than or equal to the preset capacity.
The invention has at least the following beneficial technical effects: the capacity expansion operation can be performed on the source volume without disconnecting the snapshot relationship. Therefore, the data consistency of the snapshot is not damaged. Meanwhile, after the capacity expansion operation is completed, the capacity of the source volume is still consistent with that of the target volume, so that the user can directly restart the snapshot when needed, and the source volume does not need to be matched with the target volume with the same capacity.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic block diagram illustrating an embodiment of an incremental snapshot capacity expansion method in accordance with the present invention;
FIG. 2 is a schematic block diagram illustrating an embodiment of an incremental snapshot volume expansion device in accordance with the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it is understood that "first" and "second" are only used for convenience of description and should not be construed as limiting the embodiments of the present invention, and the descriptions thereof in the following embodiments are omitted.
Based on the foregoing object, a first aspect of an embodiment of the present invention provides an embodiment of a method for expanding a snapshot in an incremental manner. FIG. 1 is a schematic block diagram illustrating an embodiment of an incremental snapshot capacity expansion method according to the present invention. In the embodiment shown in fig. 1, the method comprises at least the following steps:
s100, closing input and output between a host and a source volume, and judging whether the residual capacity space of a first storage pool where a target volume is located meets the capacity expansion of preset capacity;
s200, responding to the situation that the residual capacity space of the first storage pool meets the capacity required by capacity expansion, and applying a virtual capacity expansion space with preset capacity to the first storage pool through the target volume;
s300, judging whether the residual capacity space of the second storage pool where the source volume is located meets the capacity expansion of the preset capacity;
s400, responding to the fact that the remaining capacity space of the second storage pool meets the capacity needed by capacity expansion, and applying for an actual capacity expansion space with preset capacity from the second storage pool through a source volume;
s500, calculating the size of the needed bitmap space according to the preset capacity, and judging whether the residual space of the bitmap space can meet the size of the needed bitmap space;
s600, responding to the fact that the residual space of the bitmap space meets the size of the needed bitmap space, configuring bitmap information, updating the snapshot progress according to the bitmap information, feeding back successful capacity expansion information and recovering input and output of the host.
In some embodiments of the present invention, by specifying the expansion order of the source volume, the target volume, and the bitmap, and performing state processing after expansion, it is ensured that the function of expanding the volume of the source volume can be implemented without disconnecting the incremental snapshot relationship, and the data consistency of the incremental snapshot can be ensured. After the capacity expansion of the source volume is completed, the snapshot can be restarted, and the problem that the snapshot cannot be restarted due to the fact that the capacities of the source volume and the target volume are inconsistent is solved.
In some embodiments of the present invention, assuming that the original volume of the source volume is c and the volume to be expanded is x, the steps of performing capacity expansion operation on the snapshot source volume are as follows: if the source volume has host IO (input/output), suspending the host IO; the target volume queries the first storage pool where it is located whether the remaining capacity in the first storage pool is sufficient. If the first storage pool capacity meets the requirement, executing the next step, namely the target volume additionally applies for the virtual capacity with the capacity of x from the first storage pool. The virtual capacity, i.e., the space of the capacity x, is not actually allocated, and only when the target volume is to use the space, the capacity is actually allocated. The source volume queries the second storage pool where it is located whether the remaining capacity in the second storage pool is sufficient. The remaining capacity of the second storage pool should be greater than x. If the second storage pool capacity meets the requirement, the next step is executed, namely the source volume applies for the actual capacity with the capacity x to the second storage pool, and the formatting operation is carried out on the capacity space. The size of the required bitmap is calculated from the capacity x. And if the bitmap space capacity meets the requirement, executing the next step, namely configuring bitmap information, updating the snapshot progress according to the bitmap information, feeding back successful capacity expansion information and recovering the input and output of the host. After the source volume is expanded, the capacity of the source volume is kept consistent with the capacity of the target volume. When the user starts the snapshot again, the capacity of the source volume is the same as that of the target volume, so that the snapshot can be started normally.
According to some embodiments of the incremental snapshot capacity expansion method of the present invention, calculating the size of the bitmap space according to the preset capacity, and determining whether the remaining space of the bitmap space can satisfy the size of the bitmap space further includes:
and calculating the sizes of the required split bitmap and the required difference bitmap according to the preset capacity, and judging whether the bitmap space meets the sizes of the split bitmap and the difference bitmap.
In some embodiments of the invention, the size of the required bitmap is calculated from the capacity x, assuming the required capacity is x bitmap, the capacity of the required split bitmap and the difference bitmap are the same. It is queried whether the remaining capacity of the bitmap space is greater than 2x bitmap.
According to some embodiments of the incremental snapshot capacity expansion method of the present invention, in response to the remaining space of the bitmap space satisfying the size of the bitmap space, configuring bitmap information and updating the snapshot progress according to the bitmap information further includes:
and in response to the bitmap space meeting the sizes of the split bitmap and the difference bitmap, configuring all the split bitmaps to be in a copied state and configuring all the difference bitmaps to be in a to-be-copied state.
A split bitmap (split bitmap) is used to manage an array structure of data copy operations from a source volume to a target volume in a 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. If the bitmap is copied, setting the bit corresponding to the bitmap to be 1; if not copied, it is set to 0. A difference bitmap (diff bitmap) is used to mark which data blocks of the source volume have changed after the snapshot is started (data modification is performed by the host IO). The difference bitmap is an array structure, and each element in the array is 1bit in size. If a certain block of fixed-size data (for example, 256KB) is changed, setting the bit corresponding to the bitmap to be 1; if not copied, the value is set to 0.
In some embodiments of the present invention, the split bitmaps of the additional applications are all set to 1 (copied state). Because the snapshot is based on data protection of a time point, when the snapshot is created, the source volume does not have a space with a capacity of x behind the source volume, and therefore after the source volume is expanded, data in the space does not need to be copied to the target volume, and all bitmaps of the space can be set to be 1. Doing so also greatly reduces the copying of useless data, reducing the performance pressure of the system.
In some embodiments of the invention, the snapshot progress is updated based on the bitmap information. The difference bitmaps of the additional applications are all set to 1 (to-be-copied state). Because the snapshot is started, the source volume has no space with the capacity of x behind the source volume, and therefore the data of the newly added space belongs to the data changed after the snapshot is started, all the differential bitmap portions (i.e., the newly added portions of the differential bitmap) corresponding to the data of the newly added space should be set to 1, which indicates that the data of the newly added space is changed when the snapshot is started, and the data of the newly added space should be copied when the snapshot is started next time.
If the snapshot relationship sets a background copy rate (the data of the source volume is copied to the target volume in the background, the larger the value is, the faster the data is copied, if the value is set to 0, the background copy is prohibited), the background copy operation (the data of the source volume is copied to the target volume in the background) is not required to be prohibited in the extension process. Because the background copy operation is to determine from the split bitmap where data from the source volume needs to be copied to the target volume. Because the expansion of the split bitmap is located after the volume expansion, the phenomenon that the source volume needs to copy the position data after the volume expansion without the capacity expansion can not occur. In addition, the background copy does not change the data of the source volume, and the updating of the difference bitmap is not involved, so the capacity expansion of the split bitmap can be carried out before the capacity expansion of the difference bitmap.
According to some embodiments of the incremental snapshot capacity expansion method of the present invention, determining whether the remaining capacity space of the first storage pool where the target volume is located meets the capacity expansion of the preset capacity further includes:
judging whether the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool or not;
in response to that the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool, judging whether capacity expansion of the preset capacity is met according to whether the remaining capacity space of the storage pools is larger than or equal to 2 times of the preset capacity;
in response to the second storage pool of the source volume and the first storage pool of the target volume not being the same storage pool, determining whether capacity expansion of a preset capacity is satisfied based on whether a remaining capacity space of the storage pools is greater than or equal to the preset capacity.
In some embodiments of the present invention, assuming that the original capacity of the source volume is c and the capacity to be expanded is x, if the source volume and the target volume are in the same storage pool, i.e. both the source volume and the target volume are in the first storage pool, the remaining capacity of the first storage pool should be greater than or equal to 2 x. If the source volume and the target volume are in different storage pools, the remaining capacity of the first storage pool should be greater than x.
According to some embodiments of the method for expanding an incremental snapshot of the present invention, the method further includes:
and responding to the condition that the residual capacity space of the first storage pool does not meet the capacity required by capacity expansion, ending the capacity expansion process, feeding back capacity expansion failure information and recovering the input and output of the source volume and the host.
In some embodiments of the present invention, the target volume queries the first storage pool where the target volume is located whether the remaining capacity in the first storage pool is sufficient, and if the requirement is not met, that is, the remaining capacity is not sufficient, returns the source volume expansion failure information, and recovers the source volume host IO.
According to some embodiments of the method for expanding an incremental snapshot of the present invention, the method further includes:
and in response to that the remaining capacity space of the second storage pool does not meet the capacity required by capacity expansion, performing capacity reduction operation on the expanded target volume according to the preset capacity, feeding back capacity expansion failure information, and recovering the input and output of the source volume and the host.
In some embodiments of the present invention, the source volume queries the second storage pool where it is located whether the capacity remaining in the second storage pool is sufficient. And if the capacity of the second storage pool does not meet the requirement, performing capacity reduction operation on the expanded target volume to reduce the target volume to the original size, then returning the capacity expansion failure information of the source volume, and recovering the host IO of the source volume.
According to some embodiments of the method for expanding an incremental snapshot of the present invention, the method further includes:
and in response to that the residual space of the bitmap space does not meet the size of the required bitmap space, performing capacity reduction operation on the expanded source volume and the expanded target volume according to the preset capacity, feeding back capacity expansion failure information, and recovering the input and output of the source volume and the host.
In some embodiments of the invention, the size of the required bitmap is calculated from the capacity x. And if the bitmap space capacity does not meet the requirement, performing capacity reduction operation on the expanded source volume and the target volume to recover the original capacity, returning capacity expansion failure information of the source volume, and recovering the IO of the host machine of the source volume.
In another aspect of the embodiments of the present invention, an embodiment of an incremental snapshot capacity expansion apparatus is provided. Fig. 2 is a schematic block diagram illustrating an embodiment of an incremental snapshot capacity expansion apparatus according to the present invention, where, in the embodiment illustrated in fig. 2, the apparatus 101 includes:
the target volume capacity expansion space judgment module 11 is configured to close input and output between the host and the source volume, and judge whether the remaining capacity space of the first storage pool where the target volume is located meets capacity expansion of a preset capacity;
a target volume capacity expansion space application module 12, configured to respond to that the remaining capacity space of the first storage pool meets the capacity required for capacity expansion, and apply for a virtual capacity expansion space of a preset capacity from the first storage pool through the target volume;
a source volume expansion space judgment module 13, configured to judge whether the remaining capacity space of the second storage pool where the source volume is located meets the expansion of the preset capacity;
a source volume capacity expansion space application module 14, configured to respond that the remaining capacity space of the second storage pool meets the capacity required for capacity expansion, and apply for an actual capacity expansion space of a preset capacity from the second storage pool through the source volume;
a bitmap expansion space judgment module 15, configured to calculate the size of the bitmap space according to the preset capacity, and judge whether the remaining space of the bitmap space can meet the size of the bitmap space;
and a bitmap expansion space application module 16, configured to respond that the remaining space of the bitmap space satisfies the size of the required bitmap space, configure bitmap information, update the snapshot progress according to the bitmap information, feed back successful expansion information, and recover the input and output of the host.
According to some embodiments of the incremental snapshot capacity expansion apparatus of the present invention, the bitmap capacity expansion space determination module 15 is further configured to:
and calculating the sizes of the required split bitmap and the difference bitmap according to the preset capacity, and judging whether the bitmap space meets the sizes of the split bitmap and the difference bitmap.
According to some embodiments of the incremental snapshot capacity expansion apparatus of the present invention, the target volume capacity expansion space determining module 11 is further configured to:
judging whether the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool or not;
in response to that the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool, judging whether capacity expansion of the preset capacity is met according to whether the remaining capacity space of the storage pools is larger than or equal to 2 times of the preset capacity;
in response to the second storage pool of the source volume and the first storage pool of the target volume not being the same storage pool, determining whether capacity expansion of a preset capacity is satisfied according to whether a remaining capacity space of the storage pools is greater than or equal to the preset capacity.
Likewise, those skilled in the art will appreciate that all of the embodiments, features and advantages set forth above with respect to the incremental snapshot expansion method according to the present invention are equally applicable to the apparatus according to the present invention. For the sake of brevity of the present disclosure, no repeated explanation is provided herein.
It should be particularly noted that, as those skilled in the art can appreciate, all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing relevant hardware to complete, and the program of the incremental snapshot capacity expansion method may be stored in a computer readable storage medium, and when executed, may include the flow of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (8)

1. An incremental snapshot capacity expansion method, the method comprising:
closing input and output between the host and the source volume, and judging whether the residual capacity space of the first storage pool where the target volume is located meets the capacity expansion of the preset capacity;
responding to the capacity space left in the first storage pool meeting the capacity required by capacity expansion, and applying for a virtual capacity expansion space with the preset capacity from the first storage pool through the target volume;
judging whether the remaining capacity space of the second storage pool where the source volume is located meets the expansion capacity of the preset capacity;
responding to the capacity space left in the second storage pool meeting the capacity required by capacity expansion, and applying for an actual capacity expansion space with the preset capacity from the second storage pool through the source volume;
calculating the size of the required bitmap space according to the preset capacity, and judging whether the residual space of the bitmap space can meet the size of the required bitmap space;
responding to the fact that the residual space of the bitmap space meets the size of the needed bitmap space, configuring bitmap information, updating a snapshot progress according to the bitmap information, feeding back successful capacity expansion information and recovering input and output of the host;
wherein, the calculating the size of the bitmap space according to the preset capacity and judging whether the residual space of the bitmap space can meet the size of the bitmap space further comprises:
and calculating the sizes of the required split bitmap and the required difference bitmap according to the preset capacity, and judging whether the bitmap space meets the sizes of the split bitmap and the difference bitmap.
2. The incremental snapshot capacity expansion method of claim 1, wherein the configuring bitmap information and updating snapshot schedules according to the bitmap information in response to the remaining space of the bitmap space satisfying the size of the required bitmap space further comprises:
in response to the bitmap space satisfying the sizes of the split bitmap and the difference bitmap, configuring all of the split bitmaps to be in a copied state and all of the difference bitmaps to be in a to-be-copied state.
3. The method for expanding the incremental snapshot according to claim 1, wherein the determining whether the remaining capacity space of the first storage pool where the target volume is located meets the expansion of the preset capacity further comprises:
determining whether the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool;
in response to that the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool, determining whether capacity expansion of the preset capacity is met according to whether the remaining capacity space of the storage pool is greater than or equal to 2 times of the preset capacity;
in response to the second storage pool of the source volume and the first storage pool of the target volume not being the same storage pool, determining whether capacity expansion of the preset capacity is satisfied according to whether a remaining capacity space of the storage pools is greater than or equal to the preset capacity.
4. The method for expanding the volume of the incremental snapshot according to claim 1, further comprising:
and in response to that the remaining capacity space of the first storage pool does not meet the capacity required by the capacity expansion, ending the capacity expansion process, feeding back capacity expansion failure information, and recovering the input and output of the source volume and the host.
5. The method for expanding the volume of the incremental snapshot according to claim 1, further comprising:
and in response to that the remaining capacity space of the second storage pool does not meet the capacity required for capacity expansion, performing capacity reduction operation on the expanded target volume according to the preset capacity, feeding back capacity expansion failure information, and recovering the input and output of the source volume and the host.
6. The method for expanding the volume of the incremental snapshot according to claim 1, further comprising:
and in response to that the residual space of the bitmap space does not meet the size of the required bitmap space, performing capacity reduction operation on the expanded source volume and the expanded target volume according to the preset capacity, feeding back capacity expansion failure information, and recovering input and output of the source volume and the host.
7. An incremental snapshot capacity expansion apparatus, the apparatus comprising:
the system comprises a target volume capacity expansion space judgment module, a first storage pool and a second storage pool, wherein the target volume capacity expansion space judgment module is configured to close input and output between a host and a source volume and judge whether the residual capacity space of a first storage pool where a target volume is located meets capacity expansion of a preset capacity;
a target volume capacity expansion space application module, configured to respond that a remaining capacity space of the first storage pool satisfies a capacity required for capacity expansion, and apply for a virtual capacity expansion space of the preset capacity from the first storage pool through the target volume;
a source volume expansion space judgment module, configured to judge whether a remaining capacity space of a second storage pool where the source volume is located meets the expansion of the preset capacity;
a source volume capacity expansion space application module, configured to respond that a remaining capacity space of the second storage pool satisfies a capacity required for capacity expansion, and apply for an actual capacity expansion space of the preset capacity from the second storage pool through the source volume;
the bitmap expansion space judgment module is configured to calculate the size of the required bitmap space according to the preset capacity and judge whether the residual space of the bitmap space can meet the size of the required bitmap space;
a bitmap expansion space application module, configured to respond that the remaining space of the bitmap space satisfies the required bitmap space size, configure bitmap information, update a snapshot progress according to the bitmap information, feed back successful expansion information, and recover the input and output of the host;
the bitmap capacity expansion space judgment module is further configured to:
and calculating the sizes of the required split bitmap and the required difference bitmap according to the preset capacity, and judging whether the bitmap space meets the sizes of the split bitmap and the difference bitmap.
8. The incremental snapshot capacity expansion device of claim 7, wherein the target volume capacity expansion space determination module is further configured to:
determining whether the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool;
in response to that the second storage pool of the source volume and the first storage pool of the target volume are the same storage pool, judging whether capacity expansion of the preset capacity is met according to whether the remaining capacity space of the storage pools is greater than or equal to 2 times of the preset capacity;
in response to the second storage pool of the source volume and the first storage pool of the target volume not being the same storage pool, determining whether capacity expansion of the preset capacity is satisfied according to whether a remaining capacity space of the storage pools is greater than or equal to the preset capacity.
CN202010790152.1A 2020-08-07 2020-08-07 Incremental snapshot capacity expansion method and device Active CN111984469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010790152.1A CN111984469B (en) 2020-08-07 2020-08-07 Incremental snapshot capacity expansion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010790152.1A CN111984469B (en) 2020-08-07 2020-08-07 Incremental snapshot capacity expansion method and device

Publications (2)

Publication Number Publication Date
CN111984469A CN111984469A (en) 2020-11-24
CN111984469B true CN111984469B (en) 2022-08-19

Family

ID=73445698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010790152.1A Active CN111984469B (en) 2020-08-07 2020-08-07 Incremental snapshot capacity expansion method and device

Country Status (1)

Country Link
CN (1) CN111984469B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282250B (en) 2021-07-19 2022-02-22 苏州浪潮智能科技有限公司 Method, device and equipment for cloud volume expansion and readable medium
CN114138188B (en) * 2021-11-12 2023-08-25 苏州浪潮智能科技有限公司 Method, system and device for shrinking volume of data volume and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389926A (en) * 2013-06-25 2013-11-13 百度在线网络技术(北京)有限公司 Method and device used for backing-up virtual disk
CN106371763A (en) * 2016-08-23 2017-02-01 浪潮(北京)电子信息产业有限公司 Snapshot storage method and apparatus, disk and computer
CN109032507A (en) * 2018-06-28 2018-12-18 郑州云海信息技术有限公司 A kind of method, system and associated component generating source book storage snapshot
CN110716829A (en) * 2019-10-10 2020-01-21 浪潮云信息技术有限公司 Block storage backup method, terminal and storage medium based on Ceph technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389926A (en) * 2013-06-25 2013-11-13 百度在线网络技术(北京)有限公司 Method and device used for backing-up virtual disk
CN106371763A (en) * 2016-08-23 2017-02-01 浪潮(北京)电子信息产业有限公司 Snapshot storage method and apparatus, disk and computer
CN109032507A (en) * 2018-06-28 2018-12-18 郑州云海信息技术有限公司 A kind of method, system and associated component generating source book storage snapshot
CN110716829A (en) * 2019-10-10 2020-01-21 浪潮云信息技术有限公司 Block storage backup method, terminal and storage medium based on Ceph technology

Also Published As

Publication number Publication date
CN111984469A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
JP4422016B2 (en) Method and apparatus for creating a virtual data copy
JP4809040B2 (en) Storage apparatus and snapshot restore method
US6665780B1 (en) N-way data mirroring systems and methods for using the same
US7650475B2 (en) Storage system and method for managing data using the same
JP3140906B2 (en) How to update and restore system files
US20080140963A1 (en) Methods and systems for storage system generation and use of differential block lists using copy-on-write snapshots
CN108416040B (en) Database repair method and device, terminal equipment and storage medium
CN111984469B (en) Incremental snapshot capacity expansion method and device
US7257675B2 (en) Disk array device having snapshot simulation function
US7506116B2 (en) Maintaining and using information on updates to a data group after a logical copy is made of the data group
JP2006268139A (en) Data reproduction device, method and program and storing system
US8010758B1 (en) System and method for performing secondary site synchronization based on a single change map
US8229892B2 (en) Storage apparatus and data restoring method used therein
US20110282843A1 (en) Method and system for data backup and replication
CN111045865A (en) Real-time synchronization method and system based on block replication
CN108762988B (en) Data processing method and related equipment
CN114840361B (en) Method for accelerating database recovery and application
JP4512386B2 (en) Backup system and method
US6978354B1 (en) Method for creating a virtual data copy of a volume being restored
CN113448774B (en) Method, system, device and medium for optimizing copy-on-write storage snapshot management
CN112333008B (en) Cloud host complete machine backup and restoration method, device, equipment and storage medium
TWI740429B (en) Method and system for managing backup data
US7493459B2 (en) Method of enhancing system performance applicable of computer system capable of executing snapshot process
CN111930562A (en) Real-time snapshot capacity expansion method and system
CN106933496A (en) Manage the method and device of RAID

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
GR01 Patent grant
GR01 Patent grant