Marco 10-4

Source: Internet
Author: User

I. Extending the logical Volume:

Lvextend

-L [+]#/PATH/TO/LV

RESIZE2FS:

RESIZE2FS/PATH/TO/LV 5G

How big-P/PATH/TO/LV can expand

Two. Reduce the logical Volume:

Note: 1. Can not be reduced online, you must first uninstall

2. Ensure that the size of the reduced space can still store all the original data

3. Before shrinking, you should force the file to be checked to ensure that the file system is in a consistent state

Resize2fs

RESIZE2FS/PATH/TO/PV 3G

lvreduce-l[-]#/PATH/TO/LV

Re-mount

Df-lh

Umount

E2fsck-f

Three. Snapshot volumes

    1. The life cycle is the entire data length, within which the amount of data growth cannot exceed the size of the snapshot volume

    2. The snapshot volume should be read-only

    3. In the same volume group as the original volume

Lvcreate

-S

-P R|w

lvcreate-l#-N slv_name-p r/path/to/lv

Marco 10-4

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.