Snapshot processing method and device and electronic equipment
A processing method and technology of a processing device, applied in the computer field, can solve problems such as deleting snapshot conflicts, and achieve the effect of avoiding conflicts and safely deleting physical snapshots
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] figure 2 It is a flow chart of an embodiment of the snapshot processing method provided by the present invention. The execution subject of the method may be the above-mentioned business system, various servers with data processing capabilities, or devices or chips integrated on these devices . Such as figure 2 As shown, the snapshot processing method includes the following steps:
[0032] S201. Receive a reference instruction for generating a target object based on a physical snapshot.
[0033] The embodiments of the present invention can be applied to scenarios such as disk rollback, image creation, and image sharing, and target objects in the embodiments of the present invention can include but are not limited to images and disks. When the user wants to generate a target object based on a certain physical snapshot (for example, perform a disk rollback on the physical snapshot, or generate a mirror image on the physical snapshot), a reference instruction of the ta...
Embodiment 2
[0038] image 3 It is a flow chart of another embodiment of the snapshot processing method provided by the present invention. Such as image 3 shown in the above figure 2 On the basis of the illustrated embodiment, the snapshot processing method provided in this embodiment may further include the following steps:
[0039] S301. Receive a reference instruction for generating a target object based on a physical snapshot.
[0040] S302. Create a virtual snapshot that has a one-to-one correspondence with the target object according to the reference instruction.
[0041] In the embodiment of the present invention, after receiving a referencing instruction of a target object for a physical snapshot, first, a virtual snapshot having a one-to-one correspondence with the target object is established according to the instruction. Steps S301 to S302 in this embodiment are the same as the above figure 2 Steps S201 to S202 in the illustrated embodiment are the same, see for details ...
Embodiment 3
[0053] Figure 4 It is a flowchart of another embodiment of the snapshot processing method provided by the present invention. Such as Figure 4 shown in the above figure 2 and image 3 On the basis of the illustrated embodiment, each physical snapshot can be provided with a virtual snapshot count value for recording the number of virtual snapshots corresponding to the physical snapshot. The snapshot processing method provided by this embodiment can also include the following steps:
[0054] S401. Receive a reference instruction for generating a target object based on a physical snapshot.
[0055] S402. According to the reference instruction above, create a virtual snapshot having a one-to-one correspondence with the target object, and perform an operation of adding one to the count value of the virtual snapshot.
[0056] S403. When receiving the first deletion instruction to delete the target object, delete the virtual snapshot that has a one-to-one correspondence with th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


