[How-to] resize FreePBX disk on Google Compute Engine
Â
I was running out of space on my GCP hosted FreePBX and decided to add additional GBs
Step-by-step guide
Google Cloud Platform >> Compute Engine >>Â Snapshots >>Â Create a snapshot:
Source disk (your FreePBX disk).
Google Cloud Platform >> Compute Engine >> Disks >>Â Create a disk:
Source: select the snapshot created.
Size: Pick the desired new disk size.
The new size will not be reflected in the GUI.
SSH into your VM (I logged as a user then sudo -i to have root access.)
df -h
fdisk /dev/sda
Command (m for help): pCommand (m for help): d
Partition number (1-4): 2Command (m for help): n
Select (default p): p
Partition number (2-4, default 2): 2Command (m for help): t
Partition number (1,2, default 2): 2
Hex code (type L to list all codes): 8eCommand (m for help):Â p
Command (m for help): wreboot
pvresize /dev/sda2
lvresize /dev/mapper/SangomaVG-root  /dev/sda2
xfs_growfs /dev/mapper/SangomaVG-root
Finally check the changes: df -h and in the FreePBX GUI
Related articles
[How-to] Mount Google Cloud Storage Bucket to (FreePBX) Instance as a File System
[How-to] Install & Secure FreePBX Distro (with commercial modules) on Google Compute Engine