Adjust home and root partition size

Source: Internet
Author: User

Goal: reduce the volgroup-lv_home to 100G and add the remaining space to the Volgroup-lv_root

===========================================================================

Resolution process:

    1. # Df-h//view partition

    2. # Umount/home//un-mount

    3. # e2fsck-f/dev/mapper/volgroup-lv_home//partition detection

    4. # resize2fs-p/dev/mapper/volgroup-lv_home 100G//Set Lv_home virtual partition to 100G

    5. # Mount/home//Mount Home

    6. # Df-h//view partition

    7. # lvreduce-l 100g/dev/mapper/volgroup-lv_home//Free space

    8. # Vgdisplay//View free space size

    9. # Lvextend-l +311.47g/dev/mapper/volgroup-lv_root//extended Lv_root virtual partition

    10. # resize2fs-p/dev/mapper/volgroup-lv_root//lv_root Reset partition size

LVM (Logical Disk Management) with high flexibility.

Adjust home and root partition size

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.