Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

[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

  1. Google Cloud Platform >> Compute Engine >> Snapshots >> Create a snapshot:

    1. Source disk (your FreePBX disk).

  2. Google Cloud Platform >> Compute Engine >> Disks >> Create a disk:

    1. Source: select the snapshot created.

    2. Size: Pick the desired new disk size.

    3. The new size will not be reflected in the GUI.

  3. SSH into your VM (I logged as a user then sudo -i to have root access.)

    1. df -h

    2. fdisk /dev/sda
      Command (m for help): p

    3. Command (m for help): d
      Partition number (1-4): 2

    4. Command (m for help): n

    5. Select (default p): p
      Partition number (2-4, default 2): 2

    6. Command (m for help): t
      Partition number (1,2, default 2): 2
      Hex code (type L to list all codes): 8e

    7. Command (m for help): p
      Command (m for help): w

    8. reboot

    9. pvresize /dev/sda2

    10. lvresize /dev/mapper/SangomaVG-root  /dev/sda2

    11. xfs_growfs /dev/mapper/SangomaVG-root

    12. Finally check the changes: df -h and in the FreePBX GUI

Resizing CentOS 7 disk

[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

  • No labels