We know that LVM can elastically adjust the size of the file system, in fact, in addition to LVM can adjust the size of the file system, there is another feature is the system snapshot.
The so-called system snapshot is a moment in the file system to record the information into the snapshot area, a moment here refers to the original data is changed at the moment, the original data will be moved to the snapshot area. While other unchanged data, the snapshot area and file system are shared. So the snapshot area content is the same as the file system when you first set up the snapshot.
Because we know that only changed data is moved to the snapshot area, there is less content to save in the snapshot area.
The schematic diagram of the snapshot area is as follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/3B/5E/wKiom1O9bKLSiiwHAADr9-wfFLA480.jpg "title=" wq.png "alt=" Wkiom1o9bklsiiwhaadr9-wffla480.jpg "/>
So how do you create a snapshot area?
To create a snapshot area using the Lvcreate-s command
Syntax format: lvcreate [option] Snapshot name/path/to/lv
-S: Create a system snapshot
-L #: Specify the space size of the snapshot
-L #: Specify the number of PE for the snapshot
-N: Immediately following the snapshot name
-P R|w: When a snapshot is created, the snapshot area has permissions
/PATH/TO/LV: Creating a snapshot area for the specified file system
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/3B/5B/wKioL1O9Z4XzhJNVAAGFeGRgtwQ090.jpg "title=" cj.png "alt=" Wkiol1o9z4xzhjnvaagfegrgtwq090.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/3B/5C/wKiom1O9aNfQraNdAAGSIqv_O6w402.jpg "title=" ds.png "alt=" Wkiom1o9anfqrandaagsiqv_o6w402.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/3B/5E/wKiom1O9a_ijVNZdAAJ_-UmlGQY542.jpg "title=" Q.png " alt= "Wkiom1o9a_ijvnzdaaj_-umlgqy542.jpg"/>
This article from the "Linux Learning Path" blog, declined reprint!