Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2017-01-04
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] ROW read-only snapshots occupy a large amount of FS available space, resulting in FS unavailability, which directly affects the important business of FS located on the critical path; the measures for the above problems cannot fundamentally solve the problem that ROW read-only snapshots occupy a large amount of FS available space

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
  • A kind of protection method and device for storing data
  • A kind of protection method and device for storing data
  • A kind of protection method and device for storing data

Examples

Experimental program
Comparison scheme
Effect test

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...

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 invention relates to the field of network attached storage. A method and device for protecting stored data. The method comprises: receiving an attribute setting instruction that requests setting of a file snapshot level attribute of a file in a file system; setting the file snapshot level attribute of the file according to the attribute setting instruction; receiving a snapshot creation instruction that carries a file snapshot level attribute parameter of a file to be protected; and creating, for the file system according to the snapshot creation instruction, a redirect-on-write (ROW) read-only snapshot that uses the ROW technology, a read-only snapshot level attribute of the ROW read-only snapshot being set according to the file snapshot level attribute parameter. The file snapshot level attribute is set, a snapshot level of a file to be protected by a read-only snapshot is specified when the read-only snapshot is created for the system file, files in the file system for which snapshots should be created are determined according to the application scenario, the using space of the snapshots is controlled, and the space, occupied by the read-only snapshots, of the file system is reduced.

Description

technical field [0001] The invention relates to the field of network connection storage, in particular to a method and device for protecting stored data. Background technique [0002] In the field of NAS (Network Attached Storage, network-attached storage), creating ROW read-only snapshots using ROW (Redirect-on-write) technology for FS (File System, file system) as a whole is the key to realize storage data protection. mainstream technology. The ROW read-only snapshot of FS directly protects the pre-write data blocks of FS, that is, the ROW read-only snapshot will occupy the available space allocated to FS. At present, the technology of creating ROW read-only snapshots for FS is aimed at the whole FS. When the FS is frequently modified, the ROW read-only snapshots will occupy a large amount of space in the FS. For example, in an FS with a total available space of 100MB, write a 17.94MB file 1, create a ROW read-only snapshot, and then overwrite and write the previous file...

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): G06F11/14
CPCG06F16/128
Inventor 庞洪福
Owner HUAWEI TECH CO LTD