The snapshot function of LVM on the path of Linux learning

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.