Knowledgebase: Linux Hosting Cpanel/WHM
Increase size of root partition / on cpanel server with centos linux
Posted by Premium Reseller on 15 July 2019 12:01 PM
|
|
Allocate additional disk space to vps + Run fdisk -l to check disk partitions + Create new partition for additional disk: fdisk /dev/sdnew + Check physical volume, volume group, logical volume: pvs, vgs, lvs + Create new physical volume pvcreate /dev/sdnew1 + Check new physical volume: pvs + Add new physical volume to Volume group: vgextend VolGroup /dev/sdnew1 + Check volume group to find free pe: vgdisplay + Check logical volume: lvdisplay + Add free PE from new partition to Volume Group > Logical Volume lvextend -l +19856 /dev/VOlGroup/lv_root + Resize file system of logical group: resize2fs /dev/VolGroup/lv_root Done
| |
|