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)