CentOS Expansion (PV,VG,LV)

Source: Internet
Author: User

Preface:

(Application scenario Requirement analysis)

Since the installation of the system is not properly planned storage, or as the business expansion to the storage space requirements of the geometric growth, the original planned system storage is insufficient service current business needs, while the current system app is running more perfect, admin does not want to re-plan the new architecture OS, so extend disk Capacity is imminent, so how does your OS architecture adapt to the OS automatic CLI extension file storage?

Below we briefly demonstrate how to adapt to Linux under the relevant CLI to the OS system storage capacity expansion;

1, look at the expansion of the system PV (physcial Volume physical volume), VG (volume Group volume Group)

2, LVM Scan info

3, add a PV extension VG

Vgextend Volumegroupname Pvname

4. View current LVM Info

Find the location of your/partition's LV (logical volume) from above

5. Extend all new logical volumes to the "/" Partition

Lvextend-l +15.99g /LV Path
6. View the "/" root partition format and re-refresh the size of the root partition

E2fsck-f LV Path

Resize2fs

Command resize2fs that refreshes the root partition followed by the parameter LV

DF-LH View mount point capacity, OK!

CentOS Expansion (PV,VG,LV)

Related Article

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.