A kind of protection method and device for storing data
A technology for storing data and old data, applied in the field of protection methods and devices for storing data, which can solve the problems of FS unavailability, ROW read-only snapshots occupying FS available space, etc., and achieve the effect of reducing occupation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] This embodiment provides a protection method for stored data, please refer to figure 1 , the method flow includes:
[0036] 101. Receive an attribute setting instruction, where the attribute setting instruction requests to set a file snapshot level attribute of a file in the file system;
[0037] 102. Set the file snapshot level attribute of the file according to the attribute setting instruction;
[0038] 103. Receive a snapshot creation instruction, where the snapshot creation instruction carries a file snapshot level attribute parameter of the file to be protected;
[0039] 104. Create a read-only snapshot for the file system according to the snapshot creation instruction, and the read-only snapshot level attribute of the ROW read-only snapshot is set according to the file snapshot level attribute parameter;
[0040] 105. When modifying the specified file, judge whether the file snapshot level attribute of the specified file matches the read-only snapshot level att...
Embodiment 2
[0062] This embodiment provides a method for protecting stored data, and the method is described by taking a ROW read-only snapshot as an example. see figure 2 , the method flow includes:
[0063] 201. Receive an attribute setting instruction input by a user to request that the value of the file snapshot level attribute of file 2 (file2) in fs1 be set to 1.
[0064] Specifically, both files 1 (file1) and file2 in fs1 have a file snapshot level attribute: sanpLevel.
[0065] sanpLevel: The snapshot level of the file, the default is not set (none).
[0066] 202. Set the value of the file snapshot level attribute of file2 to 1 according to the attribute setting instruction.
[0067] Specifically, after completing the setting of the file snapshot level attribute of file2 according to the attribute setting instruction, the snapshot level attribute diagram of the file of fs1, please refer to image 3 .
[0068] The file system fs1 has four attributes related to ROW read-only s...
Embodiment 3
[0101] This embodiment provides a method for protecting stored data. In this embodiment, the file system fs1 includes multiple files, and the file names are file1, file2...file6 in sequence, and the file snapshot level attribute of the multiple files is snapLevel=none by default. see Figure 7 , the method flow includes:
[0102] 701. Receive an attribute setting instruction input by a user to set the value of the file snapshot level attribute of files file2 and file5 in the file system fs1 to 1.
[0103] 702. Set the file snapshot level attributes of file2 and file5 to snapLvel=1 according to the attribute setting instruction.
[0104] 703. Receive a snapshot creation instruction with snapLevel=1 input by a user, and the snapshot creation instruction requires creation of a ROW read-only snapshot with a snapshot level of 1 and a name of sanp1.
[0105] 704. When the logical time point is 10, create a ROW read-only snapshot named snap1 with snapshot level 1.
[0106] 705. R...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 