CN113312309B - Snapshot chain management method, device and storage medium - Google Patents

Snapshot chain management method, device and storage medium Download PDF

Info

Publication number
CN113312309B
CN113312309B CN202010118422.4A CN202010118422A CN113312309B CN 113312309 B CN113312309 B CN 113312309B CN 202010118422 A CN202010118422 A CN 202010118422A CN 113312309 B CN113312309 B CN 113312309B
Authority
CN
China
Prior art keywords
snapshot
snapshots
user
backup
chain
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
CN202010118422.4A
Other languages
Chinese (zh)
Other versions
CN113312309A (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.)
SF Technology Co Ltd
Original Assignee
SF 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 SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN202010118422.4A priority Critical patent/CN113312309B/en
Publication of CN113312309A publication Critical patent/CN113312309A/en
Application granted granted Critical
Publication of CN113312309B publication Critical patent/CN113312309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The application relates to a snapshot chain management method, a snapshot chain management device and a storage medium. The method comprises the following steps: receiving a management operation; the management operation comprises at least one of creating a snapshot, deleting the snapshot and recovering data; obtaining a snapshot state of a snapshot chain; wherein the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state is used for indicating the number and/or the position of the snapshots in the snapshot chain; and executing the management operation according to the snapshot state. By the embodiment of the invention, the snapshot chain can be effectively managed and better maintained.

Description

Snapshot chain management method, device and storage medium
Technical Field
The present disclosure relates to the field of snapshot technologies, and in particular, to a method, an apparatus, and a storage medium for managing a snapshot chain.
Background
A Snapshot (snap shot), is a fully available copy of a given data set that includes an image of the corresponding data at some point in time (the point in time when the copy began). When a storage device fails in an application or a file is damaged, data recovery can be performed using a snapshot.
In the related art, a cloud host is subjected to data backup and data recovery in an external snapshot mode. The use of external snapshots has many advantages, such as: the cloud host does not need to be suspended when taking the snapshot, the snapshot taking speed is high, the backup data is small, and the like.
When external snapshots are adopted, a disk file of the cloud host forms a snapshot chain composed of a plurality of snapshots. Therefore, how to effectively manage the snapshot chain becomes a technical problem to be solved.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a snapshot chain management method, apparatus, and storage medium capable of effectively managing a snapshot chain.
In a first aspect, an embodiment of the present invention provides a method for managing a snapshot chain, where the method includes:
receiving a management operation; the management operation comprises at least one of creating a snapshot, deleting the snapshot and recovering the data;
obtaining a snapshot state of a snapshot chain; the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state is used for indicating the number and/or the position of the snapshots in the snapshot chain;
and executing management operation according to the snapshot state.
In one embodiment, the managing operation includes creating a snapshot, the snapshot state includes a total number of snapshots in a snapshot chain, a number of user snapshots, and a position of the user snapshots, and the performing the managing operation according to the snapshot state includes:
comparing the total number of the snapshots with a first preset number, and comparing the number of the snapshots of the user with a second preset number to obtain a comparison result; wherein the first preset number is greater than the second preset number;
And executing management operation according to the comparison result and the snapshot position of the user.
In one embodiment, the creating the snapshot is creating a backup snapshot, and the performing a management operation according to the comparison result and the user snapshot location includes:
when the total number of the snapshots is smaller than the first preset number, creating a new backup snapshot at the end of the snapshot chain;
and when the total number of the snapshots is equal to the first preset number, merging the backup snapshots in the snapshot chain according to the snapshot position of the user, and creating a new backup snapshot at the tail end of the snapshot chain after merging.
In one embodiment, the creating the snapshot is creating a user snapshot, and the performing a management operation according to the comparison result and the user snapshot location includes:
when the number of the user snapshots is smaller than the second preset number and the total number of the snapshots is smaller than the first preset number, creating a new user snapshot at the end of the snapshot chain;
when the number of the user snapshots is smaller than the second preset number, and if the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging;
And when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
In one embodiment, the merging the backup snapshots in the snapshot chain according to the user snapshot location includes:
according to the snapshot position of the user, determining two continuous backup snapshots on a snapshot chain as target backup snapshots to be combined;
writing the data in the second target backup snapshot into the first target backup snapshot to obtain a first merged snapshot;
and pointing the pointer of one snapshot after the second target backup snapshot to the first merging snapshot, and deleting the second target backup snapshot.
In one embodiment, determining two consecutive backup snapshots on the snapshot chain as the target backup snapshots to be merged according to the user snapshot location includes:
determining two backup snapshots at the tail of the snapshot chain as target backup snapshots;
or, determining any two continuous backup snapshots between two user snapshots on the snapshot chain as target backup snapshots.
In one embodiment, the managing operation includes deleting the snapshot, and executing the managing operation according to the snapshot state includes:
Merging the first target snapshot to be deleted with the adjacent first snapshot to obtain a second merged snapshot;
according to the merging processing, pointing a pointer of a second snapshot after the first target snapshot to the second merging snapshot, and deleting the first target snapshot; or, pointing the pointer of the second snapshot after the first snapshot to the second merged snapshot, and deleting the first snapshot.
In one embodiment, the managing operation includes data recovery, and the performing the managing operation according to the snapshot state includes:
determining a second target snapshot to be used according to the abnormal snapshot or the rollback designated snapshot;
and performing data recovery according to the second target snapshot.
In a second aspect, an embodiment of the present invention provides a device for managing a snapshot chain, where the device includes:
the management operation receiving module is used for receiving management operation; the management operation comprises at least one of creating a snapshot, deleting the snapshot and recovering data;
the snapshot state acquisition module is used for acquiring the snapshot state of the snapshot chain; wherein the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state is used for indicating the number and/or the position of the snapshots in the snapshot chain;
And the management operation execution module is used for executing the management operation according to the snapshot state.
In one embodiment, the managing operation includes creating a snapshot, the snapshot state includes a total number of snapshots in a snapshot chain, a number of user snapshots, and a position of the user snapshots, and the managing operation executing module includes:
the comparison sub-module is used for comparing the total number of the snapshots with a first preset number and comparing the number of the snapshots of the user with a second preset number to obtain a comparison result; wherein the first preset number is greater than the second preset number;
and the management operation execution sub-module is used for executing management operation according to the comparison result and the snapshot position of the user.
In one embodiment, the creating a snapshot is creating a backup snapshot, and the management operation executing sub-module is specifically configured to create a new backup snapshot at the end of the snapshot chain when the total number of snapshots is smaller than a first preset number; and when the total number of the snapshots is equal to the first preset number, merging the backup snapshots in the snapshot chain according to the snapshot position of the user, and creating a new backup snapshot at the tail end of the snapshot chain after merging.
In one embodiment, the creating a snapshot is creating a user snapshot, and the management operation executing sub-module is specifically configured to create a new user snapshot at the end of the snapshot chain when the number of user snapshots is less than a second preset number and the total number of snapshots is less than a first preset number; when the number of the user snapshots is smaller than the second preset number, and if the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging; and when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
In one embodiment, the management operation execution sub-module is specifically configured to determine, according to a user snapshot location, two consecutive backup snapshots on the snapshot chain as target backup snapshots to be merged; writing the data in the second target backup snapshot into the first target backup snapshot to obtain a first merged snapshot; and pointing the pointer of one snapshot after the second target backup snapshot to the first merging snapshot, and deleting the second target backup snapshot.
In one embodiment, the management operation execution sub-module is specifically configured to determine two backup snapshots at the end of the snapshot chain as a target backup snapshot; or, determining any two continuous backup snapshots between two user snapshots on the snapshot chain as target backup snapshots.
In one embodiment, the managing operation includes deleting a snapshot, and the managing operation executing module is specifically configured to combine a first target snapshot to be deleted with an adjacent first snapshot to obtain a second combined snapshot; according to the merging processing, pointing a pointer of a second snapshot after the first target snapshot to the second merging snapshot, and deleting the first target snapshot; or, pointing the pointer of the second snapshot after the first snapshot to the second merged snapshot, and deleting the first snapshot.
In one embodiment, the management operation includes data recovery, and the management operation execution submodule is configured to determine a second target snapshot to be used according to an abnormal snapshot or a rollback designated snapshot; and performing data recovery according to the second target snapshot.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory storing a computer program and a processor implementing steps in a method as described above when the processor executes the computer program.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs steps in a method as described above.
The snapshot chain management method, the snapshot chain management device and the storage medium receive management operation; obtaining a snapshot state of a snapshot chain; and executing management operation according to the snapshot state. According to the embodiment of the invention, the pipe operation is executed according to the snapshot state of the snapshot chain, so that the snapshot chain can be effectively managed, the snapshot chain is better maintained, and a user can conveniently backup and restore data.
Drawings
FIG. 1 is an application environment diagram of a method of managing a snapshot chain in one embodiment;
FIG. 2 is a flow diagram of a method of managing a snapshot chain in one embodiment;
FIG. 3 is a flowchart illustrating steps performed in a management operation according to a snapshot state in one embodiment;
FIG. 4a is one of the schematic diagrams of a snapshot chain in one embodiment;
FIG. 4b is a second schematic diagram of a snapshot chain in one embodiment;
FIG. 4c is a third schematic diagram of a snapshot chain in one embodiment;
FIG. 5 is a second flowchart illustrating a management operation performed according to a snapshot state according to an embodiment;
FIG. 6a is a fourth schematic diagram of a snapshot chain in one embodiment;
FIG. 6b is a fifth schematic diagram of a snapshot chain in one embodiment;
FIG. 7 is a third flowchart illustrating a management operation performed according to the snapshot state according to one embodiment;
FIG. 8 is a block diagram of a snapshot chain management device in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The snapshot chain management method provided by the application can be applied to an application environment shown in fig. 1. The application environment comprises a server 101, and a virtual cloud outlet host is arranged on the server 101. The server 101 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for managing a snapshot chain is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
step 201, receiving a management operation; the management operations include at least one of creating a snapshot, deleting a snapshot, and data recovery.
In this embodiment, when the snapshot chain is managed, the server receives a management operation. For example, the server receives a management operation to create a snapshot, or the server receives a management operation to delete a snapshot; the server may also receive a management operation for data recovery. The management operation may further include other operations, which are not limited in detail in the embodiment of the present invention, and may be set according to actual situations.
Step 202, obtaining a snapshot state of a snapshot chain; the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state is used to indicate the number of snapshots and/or snapshot locations in the snapshot chain.
In this embodiment, the snapshots on the snapshot chain include a backup snapshot and a user snapshot, where the backup snapshot is a snapshot that the server performs backup according to a preset time interval, for example, the server performs backup every 24 hours to obtain the backup snapshot. The embodiment of the invention does not limit the preset time interval in detail, and can be set according to actual conditions. The user snapshot is a snapshot of the backup performed by the user according to the requirements.
After receiving the management operation, the snapshot state on the snapshot chain is obtained. Specifically, the number of snapshots on a snapshot chain is obtained; or, obtaining the snapshot position of the user on the snapshot chain; the number of snapshots and the user snapshot location on the snapshot chain may also be taken. For example, the total number of snapshots on the snapshot chain is 6, with the number of user snapshots being 2; alternatively, the total number of snapshots on the snapshot chain is 7, with the number of user snapshots being 1, and the user snapshots being at the end of the snapshot chain.
In practical application, the maximum value of the total number of snapshots on the snapshot chain may be set to 7, and the maximum value of the number of snapshots of the user may be set to 2.
And 203, performing management operation according to the snapshot state.
In this embodiment, after receiving the management operation and acquiring the snapshot state on the snapshot chain, the management operation is performed according to the snapshot state. Specifically, performing a management operation of creating snapshots according to the number of the snapshots and the snapshot positions; executing a management operation of deleting the snapshot according to the snapshot position; and performing management operation of data recovery according to the snapshot position.
For example, a backup snapshot is created at the end of the snapshot chain, based on a total number of snapshots of 6, a number of user snapshots of 2. Or, according to the total number of the snapshots on the snapshot chain being 7, the number of the user snapshots being 1, and the user snapshots being at the end of the snapshot chain, deleting the backup snapshots before the user snapshots. The number of user snapshots on the snapshot chain is 2, the first user snapshot is at the third position on the snapshot chain, the second user snapshot is at the sixth position on the snapshot chain, and data recovery is performed according to the second user snapshot.
In the snapshot chain management method, a management operation is received; obtaining a snapshot state of a snapshot chain; and executing management operation according to the snapshot state. According to the embodiment of the invention, the pipe operation is executed according to the snapshot state of the snapshot chain, so that the snapshot chain can be effectively managed, the snapshot chain is better maintained, and a user can conveniently backup and restore data.
In another embodiment, shown in FIG. 3, this embodiment is directed to an alternative process for performing the management operations steps based on snapshot state. On the basis of the embodiment shown in fig. 2, the snapshot state includes the total number of snapshots in the snapshot chain, the number of snapshots of the user, and the location of the snapshots of the user, where the management operation includes creating the snapshots, the step 203 may specifically include the following steps:
Step 301, comparing the total number of snapshots with a first preset number, and comparing the number of snapshots of the user with a second preset number, so as to obtain a comparison result; wherein the first preset number is greater than the second preset number.
In this embodiment, the first preset number is the maximum value of the total number of snapshots on the snapshot chain, the second preset number is the maximum value of the number of user snapshots on the snapshot chain, after the total number of snapshots and the number of user snapshots on the snapshot chain are obtained, the obtained total number of snapshots is compared with the first preset number, and the obtained number of user snapshots is compared with the second preset number, so as to obtain a comparison result. That is, it is determined whether the total number of snapshots on the snapshot chain reaches a maximum of the total number of snapshots, and whether the number of user snapshots reaches a maximum of the number of user snapshots. The first preset number is larger than the second preset number, namely the maximum value of the total number of snapshots on the snapshot chain is larger than the maximum value of the number of user snapshots on the snapshot chain.
For example, the first preset number is 7, the second preset number is 2, when the total number of obtained snapshots is 6 and the number of user snapshots is 2, the comparison result is that the total number of the snapshots does not reach the maximum value of the total number of the snapshots, and the number of the user snapshots reaches the maximum value of the number of the user snapshots. And when the total number of the obtained snapshots on the snapshot chain is 7, the number of the user snapshots is 1, and the obtained comparison result is that the total number of the snapshots reaches the maximum value of the total number of the snapshots, and the number of the user snapshots does not reach the maximum value of the number of the user snapshots.
And 302, executing management operation according to the comparison result and the snapshot position of the user.
In this embodiment, after the comparison result is obtained, at least one management operation of creating a snapshot, deleting a snapshot, and recovering data is performed according to the user snapshot position.
In one embodiment, creating the snapshot is creating a backup snapshot, and performing management operations according to the comparison result and the user snapshot location, including: when the total number of the snapshots is smaller than the first preset number, creating a new backup snapshot at the end of the snapshot chain; and when the total number of the snapshots is equal to the first preset number, merging the backup snapshots in the snapshot chain according to the snapshot position of the user, and creating a new backup snapshot at the tail end of the snapshot chain after merging.
For example, if the first preset number is 7, and if the total number of snapshots is 6, the total number of snapshots is smaller than the first preset number, which indicates that the total number of snapshots does not reach the maximum value of the total number of snapshots, that is, there is a free position on the snapshot chain, so that a new backup snapshot can be directly created at the end of the snapshot chain. If the total number of the snapshots is 7, the total number of the snapshots is equal to the first preset number, and the total number of the snapshots reaches the maximum value of the total number of the snapshots, namely, no free position exists on the snapshot chain, at this time, the two backup snapshots on the snapshot chain are required to be combined, and then a new backup snapshot is created at the tail end of the snapshot chain after the combination processing.
In one embodiment, creating the snapshot is creating a user snapshot, and performing a management operation according to the comparison result and the user snapshot location, including: when the number of the user snapshots is smaller than the second preset number and the total number of the snapshots is smaller than the first preset number, creating a new user snapshot at the end of the snapshot chain; when the number of the user snapshots is smaller than the second preset number, and if the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging; and when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
For example, the first preset number is 7, and the second preset number is 2; if the number of the user snapshots is 1, the total number of the snapshots is 6, which indicates that the number of the user snapshots does not reach the maximum value of the number of the user snapshots, and the total number of the snapshots does not reach the maximum value of the total number of the snapshots, namely, not only the idle positions exist on the snapshot chain, but also the user snapshots can be created. At this point, a new user snapshot is created directly at the end of the snapshot chain. If the number of user snapshots is 1, the total number of snapshots is 7, which indicates that the number of user snapshots does not reach the maximum of the number of user snapshots, but the total number of snapshots reaches the maximum of the total number of snapshots, i.e., no free position on the snapshot chain. At this time, the two backup snapshots on the snapshot chain are merged, and then a new user snapshot is created at the end of the merged snapshot chain. If the number of the user snapshots is 2, the fact that the number of the user snapshots reaches the maximum value of the number of the user snapshots is indicated, a new user snapshot is created at the moment, and one user snapshot and an adjacent backup snapshot are combined no matter whether a spare position exists on a snapshot chain or not. For example, merging the first user snapshot with a backup snapshot after the first user snapshot; or merging the second user snapshot with a backup snapshot before the second user snapshot. Finally, a new user snapshot is created at the end of the merged snapshot chain.
In one embodiment, merging backup snapshots in a snapshot chain according to a user snapshot location includes: according to the snapshot position of the user, determining two continuous backup snapshots on a snapshot chain as target backup snapshots to be combined; writing the data in the second target backup snapshot into the first target backup snapshot to obtain a first merged snapshot; and pointing the pointer of one snapshot after the second target backup snapshot to the first merging snapshot, and deleting the second target backup snapshot.
For example, two consecutive backup snapshots on the snapshot chain are in the fifth bit and the sixth bit of the snapshot chain, the backup snapshot in the fifth bit is determined to be the first target backup snapshot to be merged, the backup snapshot in the sixth bit is determined to be the second target backup snapshot to be merged, the data in the backup snapshot in the sixth bit is written into the backup snapshot in the fifth bit, the merged backup snapshot in the fifth bit is obtained, the pointer of the snapshot in the seventh bit points to the merged backup snapshot in the fifth bit, and then the backup snapshot in the sixth bit is deleted, referring to the snapshot chain shown in fig. 4 a.
In one embodiment, determining two consecutive backup snapshots on the snapshot chain as target backup snapshots to be merged according to the user snapshot location includes: determining two backup snapshots at the tail of the snapshot chain as target backup snapshots; or, determining any two continuous backup snapshots between two user snapshots on the snapshot chain as target backup snapshots.
Specifically, if there are two consecutive backup snapshots at the end of the snapshot chain, the last two backup snapshots may be determined to be the target backup snapshot; if there are two consecutive backup snapshots between two user snapshots, the two consecutive backup snapshots may also be determined to be target backup snapshots.
For example, the two user snapshots are respectively in the third bit and the seventh bit of the snapshot chain, and the fourth bit, the fifth bit and the sixth bit on the snapshot chain are backup snapshots, at this time, the fourth bit and the fifth bit of the backup snapshots can be determined as target user snapshots to be combined, data in the fifth bit of the backup snapshots is written into the fourth bit of the backup snapshots during the combination, a pointer of the sixth bit of the backup snapshots points to the fourth bit of the backup snapshots, and the fifth bit of the backup snapshots is deleted, which is shown in fig. 4 b. The fifth and sixth backup snapshots may also be determined as target user snapshots to be merged, where data in the sixth backup snapshot is written into the fifth backup snapshot, then a pointer of the seventh user snapshot points to the fifth backup snapshot, and the sixth backup snapshot is deleted, referring to the snapshot chain shown in fig. 4 c. The method for determining the target backup snapshot is not limited in detail, and can be set according to actual conditions.
When the management operation includes deleting the snapshot, referring to fig. 5, the step 203 may specifically include the following steps:
and 303, merging the first target snapshot to be deleted and the adjacent first snapshots to obtain a second merged snapshot.
In this embodiment, the position of the first target snapshot to be deleted is determined, and data in the first target snapshot may be written into a first snapshot located before the first target snapshot to obtain a second merged snapshot; and writing the data in the first snapshot after the first target snapshot into the first target snapshot to obtain a second combined snapshot.
For example, the first target snapshot to be deleted is the third user snapshot on the snapshot chain, the first target snapshot is the backup snapshot before and after the first target snapshot, the data in the third user snapshot can be written into the second backup snapshot, and the second backup snapshot after writing the data is the second merged snapshot; and the data in the fourth backup snapshot can be written into the third user snapshot, and the third user snapshot after writing the data is the second merged snapshot. The embodiment of the invention is not limited in detail, and can be set according to actual conditions.
Step 304, according to the merging process, pointing the pointer of the second snapshot after the first target snapshot to the second merged snapshot, and deleting the first target snapshot; or, pointing the pointer of the second snapshot after the first snapshot to the second merged snapshot, and deleting the first snapshot.
In this embodiment, after the merging process, if the data of the first target snapshot is written into the first snapshot before the first target snapshot to obtain the second merged snapshot, the pointer of the second snapshot after the first target snapshot points to the second merged snapshot, and the first target snapshot is deleted. And if the data of the first snapshot after the first target snapshot is written into the first target snapshot to obtain a second merged snapshot, the pointer of the second snapshot after the first snapshot is pointed to the second merged snapshot, and the first snapshot is deleted.
For example, the data in the third user snapshot is written into the second backup snapshot, the second backup snapshot after writing the data is the second merged snapshot, the pointer of the fourth backup snapshot points to the second merged snapshot, and the third user snapshot is deleted, referring to the snapshot chain shown in fig. 6 a. Or writing the data in the fourth backup snapshot into the third user snapshot, wherein the third user snapshot after writing the data is the second merged snapshot, pointing the pointer of the fifth backup snapshot to the second merged snapshot, and deleting the fourth backup snapshot, and referring to the snapshot chain shown in fig. 6 b.
When the management operation includes data recovery, referring to fig. 7, the step 203 may specifically include the following steps:
step 305, determining a second target snapshot to be used according to the abnormal snapshot or the rollback designated snapshot.
In this embodiment, when data recovery is performed, if the snapshot used for data recovery is abnormal, the snapshot adjacent to the abnormal snapshot may be determined as the second target snapshot to be used, and the second target snapshot set by the user may also be received. For example, when the third user snapshot is abnormal, the second backup snapshot may be determined to be the second target snapshot; the fourth backup snapshot may also be determined to be the second target snapshot; the user snapshot of the sixth bit set by the user may also be determined to be the second target snapshot.
Alternatively, the second target snapshot used by the rollback is specified by the user when the data recovery is performed. For example, the user directly designates the sixth user snapshot as the second target snapshot.
The method for determining the second target snapshot in the embodiment of the invention is not limited in detail, and can be set according to actual conditions.
At step 306, data recovery is performed based on the second target snapshot.
In this embodiment, after the second target snapshot to be used is determined, data in the second target snapshot is read, and data recovery is performed according to the read data.
In the step of executing the management operation according to the snapshot state, the management operations such as creating the backup snapshot, creating the user snapshot, deleting the snapshot, and recovering the data may be performed according to the total number of snapshots, the number of user snapshots, and the position of the user snapshot. According to the embodiment of the invention, the user snapshot and the backup snapshot are managed in a distinguishing way, the snapshot chain can be effectively managed, and the snapshot chain is well maintained, so that the incremental backup of the cloud host is conveniently realized.
It should be understood that, although the steps in the flowcharts of fig. 2-7 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of fig. 2-7 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided a snapshot chain management device, including:
a management operation receiving module 401 for receiving a management operation; the management operation comprises at least one of creating a snapshot, deleting the snapshot and recovering data;
a snapshot state obtaining module 402, configured to obtain a snapshot state of a snapshot chain; wherein the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state is used for indicating the number and/or the position of the snapshots in the snapshot chain;
and a management operation execution module 403, configured to execute the management operation according to the snapshot state.
In one embodiment, the managing operation includes creating a snapshot, the snapshot state includes a total number of snapshots in a snapshot chain, a number of user snapshots, and a position of the user snapshots, and the managing operation executing module includes:
the comparison sub-module is used for comparing the total number of the snapshots with a first preset number and comparing the number of the snapshots of the user with a second preset number to obtain a comparison result; wherein the first preset number is greater than the second preset number;
and the management operation execution sub-module is used for executing management operation according to the comparison result and the snapshot position of the user.
In one embodiment, the creating a snapshot is creating a backup snapshot, and the management operation executing sub-module is specifically configured to create a new backup snapshot at the end of the snapshot chain when the total number of snapshots is smaller than a first preset number; and when the total number of the snapshots is equal to the first preset number, merging the backup snapshots in the snapshot chain according to the snapshot position of the user, and creating a new backup snapshot at the tail end of the snapshot chain after merging.
In one embodiment, the creating a snapshot is creating a user snapshot, and the management operation executing sub-module is specifically configured to create a new user snapshot at the end of the snapshot chain when the number of user snapshots is less than a second preset number and the total number of snapshots is less than a first preset number; when the number of the user snapshots is smaller than the second preset number, and if the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging; and when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
In one embodiment, the management operation execution sub-module is specifically configured to determine, according to a user snapshot location, two consecutive backup snapshots on the snapshot chain as target backup snapshots to be merged; writing the data in the second target backup snapshot into the first target backup snapshot to obtain a first merged snapshot; and pointing the pointer of one snapshot after the second target backup snapshot to the first merging snapshot, and deleting the second target backup snapshot.
In one embodiment, the management operation execution sub-module is specifically configured to determine two backup snapshots at the end of the snapshot chain as a target backup snapshot; or, determining any two continuous backup snapshots between two user snapshots on the snapshot chain as target backup snapshots.
In one embodiment, the managing operation includes deleting a snapshot, and the managing operation executing module is specifically configured to combine a first target snapshot to be deleted with an adjacent first snapshot to obtain a second combined snapshot; according to the merging processing, pointing a pointer of a second snapshot after the first target snapshot to the second merging snapshot, and deleting the first target snapshot; or, pointing the pointer of the second snapshot after the first snapshot to the second merged snapshot, and deleting the first snapshot.
In one embodiment, the management operation includes data recovery, and the management operation execution submodule is configured to determine a second target snapshot to be used according to an abnormal snapshot or a rollback designated snapshot; and performing data recovery according to the second target snapshot.
For specific limitations on the management apparatus of the snapshot chain, reference may be made to the above limitation on the management method of the snapshot chain, and no further description is given here. The respective modules in the above-described snapshot chain management apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store management data for the snapshot chain. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of managing a snapshot chain.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
receiving a management operation; the management operation comprises at least one of creating a snapshot, deleting the snapshot and recovering the data;
obtaining a snapshot state of a snapshot chain; the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state is used for indicating the number and/or the position of the snapshots in the snapshot chain;
and executing management operation according to the snapshot state.
In one embodiment, the managing operation includes creating a snapshot, the snapshot state includes a total number of snapshots in the snapshot chain, a number of user snapshots, and a location of the user snapshots, and the processor when executing the computer program further implements the steps of:
Comparing the total number of the snapshots with a first preset number, and comparing the number of the snapshots of the user with a second preset number to obtain a comparison result; wherein the first preset number is greater than the second preset number;
and executing management operation according to the comparison result and the snapshot position of the user.
In one embodiment, the creating a snapshot is creating a backup snapshot, and the processor further performs the following steps when executing the computer program:
when the total number of the snapshots is smaller than the first preset number, creating a new backup snapshot at the end of the snapshot chain;
and when the total number of the snapshots is equal to the first preset number, merging the backup snapshots in the snapshot chain according to the snapshot position of the user, and creating a new backup snapshot at the tail end of the snapshot chain after merging.
In one embodiment, the creating a snapshot is creating a user snapshot, and the processor further performs the following steps when executing the computer program:
when the number of the user snapshots is smaller than the second preset number and the total number of the snapshots is smaller than the first preset number, creating a new user snapshot at the end of the snapshot chain;
when the number of the user snapshots is smaller than the second preset number, and if the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging;
And when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
In one embodiment, the processor when executing the computer program further performs the steps of:
according to the snapshot position of the user, determining two continuous backup snapshots on a snapshot chain as target backup snapshots to be combined;
writing the data in the second target backup snapshot into the first target backup snapshot to obtain a first merged snapshot;
and pointing the pointer of one snapshot after the second target backup snapshot to the first merging snapshot, and deleting the second target backup snapshot.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining two backup snapshots at the tail of the snapshot chain as target backup snapshots;
or, determining any two continuous backup snapshots between two user snapshots on the snapshot chain as target backup snapshots.
In one embodiment, the managing operation includes deleting the snapshot, and the processor further performs the following steps when executing the computer program:
merging the first target snapshot to be deleted with the adjacent first snapshot to obtain a second merged snapshot;
According to the merging processing, pointing a pointer of a second snapshot after the first target snapshot to the second merging snapshot, and deleting the first target snapshot; or, pointing the pointer of the second snapshot after the first snapshot to the second merged snapshot, and deleting the first snapshot.
In one embodiment, the management operations include data recovery, and the processor when executing the computer program further performs the steps of:
determining a second target snapshot to be used according to the abnormal snapshot or the rollback designated snapshot;
and performing data recovery according to the second target snapshot.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a management operation; the management operation comprises at least one of creating a snapshot, deleting the snapshot and recovering the data;
obtaining a snapshot state of a snapshot chain; the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state is used for indicating the number and/or the position of the snapshots in the snapshot chain;
and executing management operation according to the snapshot state.
In one embodiment, the managing operation includes creating a snapshot, the snapshot state includes a total number of snapshots in the snapshot chain, a number of user snapshots, and a location of the user snapshots, and the computer program when executed by the processor further performs the steps of:
Comparing the total number of the snapshots with a first preset number, and comparing the number of the snapshots of the user with a second preset number to obtain a comparison result; wherein the first preset number is greater than the second preset number;
and executing management operation according to the comparison result and the snapshot position of the user.
In one embodiment, the creating a snapshot is creating a backup snapshot, and the computer program when executed by the processor further includes the steps of:
when the total number of the snapshots is smaller than the first preset number, creating a new backup snapshot at the end of the snapshot chain;
and when the total number of the snapshots is equal to the first preset number, merging the backup snapshots in the snapshot chain according to the snapshot position of the user, and creating a new backup snapshot at the tail end of the snapshot chain after merging.
In one embodiment, the creating a snapshot is creating a user snapshot, and the computer program when executed by the processor further performs the steps of:
when the number of the user snapshots is smaller than the second preset number and the total number of the snapshots is smaller than the first preset number, creating a new user snapshot at the end of the snapshot chain;
when the number of the user snapshots is smaller than the second preset number, and if the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging;
And when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
according to the snapshot position of the user, determining two continuous backup snapshots on a snapshot chain as target backup snapshots to be combined;
writing the data in the second target backup snapshot into the first target backup snapshot to obtain a first merged snapshot;
and pointing the pointer of one snapshot after the second target backup snapshot to the first merging snapshot, and deleting the second target backup snapshot.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining two backup snapshots at the tail of the snapshot chain as target backup snapshots;
or, determining any two continuous backup snapshots between two user snapshots on the snapshot chain as target backup snapshots.
In one embodiment, the managing operation includes deleting the snapshot, and the computer program when executed by the processor further performs the steps of:
merging the first target snapshot to be deleted with the adjacent first snapshot to obtain a second merged snapshot;
According to the merging processing, pointing a pointer of a second snapshot after the first target snapshot to the second merging snapshot, and deleting the first target snapshot; or, pointing the pointer of the second snapshot after the first snapshot to the second merged snapshot, and deleting the first snapshot.
In one embodiment, the above management operation includes data recovery, and the computer program when executed by the processor further performs the steps of:
determining a second target snapshot to be used according to the abnormal snapshot or the rollback designated snapshot;
and performing data recovery according to the second target snapshot.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of managing a snapshot chain, the method comprising:
receiving a management operation; the managing operation includes creating a snapshot;
obtaining a snapshot state of a snapshot chain; wherein the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state comprises the total number of snapshots in the snapshot chain, the number of user snapshots and the position of the user snapshots; the backup snapshot is a snapshot of the server for backup according to a preset time interval, and the user snapshot is a snapshot of the user for backup according to the requirement;
Comparing the total number of the snapshots with a first preset number, and comparing the number of the snapshots of the user with a second preset number to obtain a comparison result; wherein the first preset number is greater than the second preset number; the first preset number is the maximum value of the total number of snapshots on the snapshot chain, and the second preset number is the maximum value of the number of user snapshots on the snapshot chain;
executing the management operation according to the comparison result and the user snapshot position;
when the creating the snapshot is creating the user snapshot, the performing the management operation according to the comparison result and the user snapshot position includes:
when the number of the user snapshots is smaller than the second preset number and the total number of the snapshots is smaller than the first preset number, creating a new user snapshot at the end of the snapshot chain;
when the number of the user snapshots is smaller than the second preset number and the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging;
And when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
2. The method of claim 1, wherein when the creating a snapshot is creating the backup snapshot, the performing the management operation according to the comparison result and the user snapshot location comprises:
creating a new backup snapshot at the end of the snapshot chain when the total number of snapshots is less than the first preset number;
and when the total number of the snapshots is equal to the first preset number, merging the backup snapshots in the snapshot chain according to the user snapshot position, and creating a new backup snapshot at the tail end of the merged snapshot chain.
3. The method according to claim 1 or 2, wherein the merging the backup snapshots in the snapshot chain according to the user snapshot location comprises:
according to the user snapshot position, determining two continuous backup snapshots on the snapshot chain as target backup snapshots to be combined;
Writing the data in the second target backup snapshot into the first target backup snapshot to obtain a first merged snapshot;
and pointing the pointer of one snapshot after the second target backup snapshot to the first merged snapshot, and deleting the second target backup snapshot.
4. The method of claim 3, wherein the determining two consecutive backup snapshots of the snapshot chain as target backup snapshots to be merged based on the user snapshot location comprises:
and determining the last two backup snapshots on the snapshot chain as the target backup snapshot.
5. The method of claim 3, wherein the determining two consecutive backup snapshots of the snapshot chain as target backup snapshots to be merged based on the user snapshot location comprises:
and determining any two continuous backup snapshots between the two user snapshots on the snapshot chain as the target backup snapshot.
6. The method of claim 1, wherein the managing operation further comprises deleting a snapshot, the method further comprising:
merging the first target snapshot to be deleted with the adjacent first snapshot to obtain a second merged snapshot;
According to the merging processing, pointing a pointer of a second snapshot after the first target snapshot to the second merging snapshot, and deleting the first target snapshot; or, pointing the pointer of the second snapshot after the first snapshot to the second merged snapshot, and deleting the first snapshot.
7. The method of claim 1, wherein the management operation further comprises data recovery, the method further comprising:
determining a second target snapshot to be used according to the abnormal snapshot or the rollback designated snapshot;
and recovering data according to the second target snapshot.
8. A device for managing a snapshot chain, the device comprising:
the management operation receiving module is used for receiving management operation; the managing operation includes creating a snapshot;
the snapshot state acquisition module is used for acquiring the snapshot state of the snapshot chain; wherein the snapshot chain comprises at least one of a backup snapshot and a user snapshot; the snapshot state comprises the total number of snapshots in the snapshot chain, the number of user snapshots and the position of the user snapshots; the backup snapshot is a snapshot of the server for backup according to a preset time interval, and the user snapshot is a snapshot of the user for backup according to the requirement;
The management operation execution module is used for comparing the total number of the snapshots with a first preset number and comparing the number of the snapshots of the user with a second preset number to obtain a comparison result; wherein the first preset number is greater than the second preset number; the first preset number is the maximum value of the total number of snapshots on the snapshot chain, and the second preset number is the maximum value of the number of user snapshots on the snapshot chain; executing the management operation according to the comparison result and the user snapshot position;
when the snapshot creation is the user snapshot creation, the management operation execution module is further configured to create a new user snapshot at the end of the snapshot chain when the number of user snapshots is less than the second preset number and the total number of snapshots is less than the first preset number; when the number of the user snapshots is smaller than the second preset number and the total number of the snapshots is equal to the first preset number, merging the backup snapshots on the snapshot chain according to the user snapshot position, and creating a new user snapshot at the tail end of the snapshot chain after merging; and when the number of the user snapshots is equal to the second preset number, merging one of the user snapshots with an adjacent backup snapshot, and creating a new user snapshot at the end of the merged snapshot chain.
9. A computer device comprising a memory storing a computer program and a processor implementing the steps of the method of any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202010118422.4A 2020-02-26 2020-02-26 Snapshot chain management method, device and storage medium Active CN113312309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010118422.4A CN113312309B (en) 2020-02-26 2020-02-26 Snapshot chain management method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010118422.4A CN113312309B (en) 2020-02-26 2020-02-26 Snapshot chain management method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113312309A CN113312309A (en) 2021-08-27
CN113312309B true CN113312309B (en) 2023-06-09

Family

ID=77370122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010118422.4A Active CN113312309B (en) 2020-02-26 2020-02-26 Snapshot chain management method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113312309B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981574B (en) * 2023-03-10 2023-08-04 阿里巴巴(中国)有限公司 Snapshot storage method, system, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183383A (en) * 2007-12-17 2008-05-21 中国科学院计算技术研究所 Snapshot system and method of use thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577329B (en) * 2013-10-18 2017-02-22 华为技术有限公司 Snapshot management method and device
CN106919471B (en) * 2015-12-25 2020-03-20 中国电信股份有限公司 Method and system for snapshot creation
CN106250275A (en) * 2016-08-19 2016-12-21 上海爱数信息技术股份有限公司 The restoration methods of Hyper v virtual machine, system
CN106569872A (en) * 2016-09-28 2017-04-19 浪潮电子信息产业股份有限公司 Method for shortening virtual machine snapshot chain
CN106777219B (en) * 2016-12-23 2020-03-03 北京亚细亚智业科技有限公司 Data processing method and device for virtualized data center
CN106648987A (en) * 2016-12-27 2017-05-10 江苏爱科赛尔云数据科技有限公司 Virtual machine increment backup and recovery method capable of keeping user snapshot setting total
US11132331B2 (en) * 2017-12-12 2021-09-28 Rubrik, Inc. Sharding of full and incremental snapshots

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183383A (en) * 2007-12-17 2008-05-21 中国科学院计算技术研究所 Snapshot system and method of use thereof

Also Published As

Publication number Publication date
CN113312309A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
US10303363B2 (en) System and method for data storage using log-structured merge trees
US20130080397A1 (en) Database restore using incremental backups in reverse order
CN110568998B (en) Trim command implementation method and device based on solid state disk and computer equipment
CN111723056B (en) Small file processing method, device, equipment and storage medium
US20070214334A1 (en) Storage system
JP2013522718A (en) System and method for garbage collection in a deduplication data system
CN107665219B (en) Log management method and device
CN110795508B (en) Data copying method, device, equipment and storage medium
US7900003B2 (en) System, method and computer program product for storing an information block
KR20170054767A (en) Database management system and method for modifying and recovering data the same
US9436554B2 (en) Information processing apparatus and data repairing method
CN111125002B (en) Data backup archiving method and system based on distributed storage
CN114253483B (en) Command-based write cache management method and device, computer equipment and storage medium
CN113312309B (en) Snapshot chain management method, device and storage medium
CN111966531B (en) Data snapshot method and device, computer equipment and storage medium
US8595271B1 (en) Systems and methods for performing file system checks
CN113704027B (en) File aggregation compatible method and device, computer equipment and storage medium
CN116204356A (en) Data synthesis method, device, equipment and storage medium based on index redirection
CN111191082B (en) Data management method, device, computer equipment and storage medium
CN110471623B (en) Hard disk file writing method, device, computer equipment and storage medium
CN112650444A (en) Data reconstruction method, system, device and medium
CN105573862A (en) Method and equipment for recovering file systems
CN115357429B (en) Method, device and client for recovering data file
CN114185620B (en) Method and device for realizing acceleration of SSD firmware loading, computer equipment and storage medium
CN113342751B (en) Metadata processing method, device, equipment and readable storage medium

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