1. Login to FreePBX as root
fdisk -l
fdisk /dev/sda
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): Enter for default
First cylinder (2321156-334240465, default 2321156): Enter
Last cylinder, +cylinders or +size{K,M,G} (2321156-334240465, default 334240465): Enter
Command (m for help): w
Check what have we done
fdisk -l /dev/sda
2.Reboot your VM
pvcreate /dev/sda3
Physical volume “/dev/sda3” successfully created
show volume group details
vgs
and logical volume details
lvs
vgextend SangomaVG /dev/sda3
Check FreePBX
vgdisplay
df -h
lvextend -L +100G /dev/mapper/SangomaVG-root # +100G – r
xfs_growfs /dev/mapper/SangomaVG-root
3. Reboot your VM