Method, device and equipment for automatic snapshot rollback

An automatic and snapshot technology, applied in the computer field, can solve problems such as low rollback efficiency, time-wasting costs and labor costs, and achieve the effects of improving efficiency, avoiding manual operations, and reducing costs

Active Publication Date: 2022-03-22
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of this application is to provide a snapshot automatic rollback method, device, device and readable storage medium to solve the problem that the current snapshot rollback scheme requires human intervention, wastes time and labor costs, and leads to low rollback efficiency question

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and equipment for automatic snapshot rollback
  • Method, device and equipment for automatic snapshot rollback
  • Method, device and equipment for automatic snapshot rollback

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The following introduces Embodiment 1 of a snapshot automatic rollback method provided by this application, see figure 1 , embodiment one includes:

[0040] S101. Generate a first mapping relationship from a source volume to a target volume according to a snapshot creation request, and set a snapshot rollback parameter for the source volume, where the snapshot rollback parameter is used to indicate that the source volume enables or disables automatic snapshot rollback roll function;

[0041] Snapshot is a virtual backup technology. Storage snapshot technology supports the generation of a virtual consistent image of the source volume at a certain point in time, and a target volume consistent with the source volume can be obtained without interrupting normal business. While setting snapshot rollback parameters for the source volume, a second mapping relationship between the target volume and the source volume may be further generated for reference during subsequent snaps...

Embodiment 2

[0049] see figure 2 , embodiment two specifically includes:

[0050] S201. Generate a snapshot creation request carrying a snapshot rollback parameter;

[0051] Specifically, the upper-layer business adds the autorestore parameter in the mklcmap command (Make Local Map, creating a snapshot command) as a snapshot rollback parameter. This parameter indicates that the snapshot automatic rollback function is turned on or off, as shown in Table 1:

[0052] Table 1

[0053]

[0054] S202. According to the snapshot creation request, generate a first mapping relationship from the source volume to the target volume, and set snapshot rollback parameters for the source volume, and generate a second mapping relationship from the target volume to the source volume, the snapshot The rollback parameter is used to indicate that the source volume enables or disables the snapshot automatic rollback function;

[0055] S203. Query the value of the snapshot rollback parameter by using the p...

Embodiment approach

[0066] As a specific implementation, the rollback module is used to:

[0067] generating a second mapping relationship from the target volume to the source volume;

[0068] According to the second mapping relationship, the data of the target volume is rolled back to the source volume.

[0069] As a specific implementation manner, it also includes:

[0070] Snapshot creation request generation module: used to generate a snapshot creation request carrying snapshot rollback parameters.

[0071] As a specific implementation manner, it also includes:

[0072] Rollback parameter setting module: for setting the value of the snapshot rollback parameter to ON by using a parameter setting command.

[0073] As a specific implementation, including:

[0074] Rollback parameter query module: used to query the value of the snapshot rollback parameter by using a parameter query command;

[0075] The rollback parameter setting module: if the value of the snapshot rollback parameter is off...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present application discloses a snapshot automatic rollback method. When creating a snapshot, a snapshot rollback parameter is added to a source volume to indicate whether the snapshot automatic rollback function is enabled on the source volume. During the write operation to the source volume, if it is detected that the write process triggers the preset rollback condition and the value of the snapshot rollback parameter of the source volume is enabled, the write operation will be stopped and the data on the target volume will be rolled back to Roll to the source volume. In this way, the function of automatic snapshot rollback is realized, manual operation is avoided, the cost of snapshot rollback is reduced, and the efficiency of snapshot rollback is improved. In addition, the present application also provides a snapshot automatic rollback device, equipment and readable storage medium, the technical effect of which corresponds to the technical effect of the above method.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, device, device and readable storage medium for automatically rolling back snapshots. Background technique [0002] Currently, although the snapshot function in storage products supports snapshot rollback to restore data at a certain moment, this operation requires human intervention. Waste of time and labor cost, resulting in low efficiency of snapshot rollback. [0003] It can be seen that how to improve snapshot rollback efficiency and save manpower and time costs is an urgent problem to be solved by those skilled in the art. Contents of the invention [0004] The purpose of this application is to provide a snapshot automatic rollback method, device, device and readable storage medium to solve the problem that the current snapshot rollback scheme requires human intervention, wastes time and labor costs, and leads to low rollback efficiency question. T...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/06G06F11/14
CPCG06F3/0665G06F3/0667G06F3/0646G06F11/1469
Inventor 李俭
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products