Creating disk partitioning for a Google Cloud Platform virtual machine

Last Updated : Jun 10, 2026 |

About this task

Avaya Aura® Device Services requires a specific disk layout that includes several disk partitions and logical volumes. Use this procedure to create appropriate disk partitioning.

Before you begin

Procedure

  1. Log in to the virtual machine as the root user using an SSH connection.
  2. Run the following commands to create the required directories:
    mkdir -p /var/log/Avaya
    mkdir -p /media/data
    mkdir -p /media/cassandra
  3. Run the following commands to create the required physical volumes and volume groups for these volumes:
    pvcreate -f /dev/sdb
    vgcreate disk2_vg /dev/sdb
    pvcreate -f /dev/sdc
    vgcreate disk3_vg /dev/sdc
    pvcreate -f /dev/sdd
    vgcreate disk4_vg /dev/sdd
  4. Run the following commands to create logical volumes in the volume groups:
    lvcreate -l100%FREE -n application_log /dev/disk2_vg
    lvcreate -l100%FREE -n data /dev/disk3_vg
    lvcreate -l100%FREE -n cassandra /dev/disk4_vg
  5. Run the following commands to create a file system for the /dev/sdb partition and mount the file system:
    mkfs.xfs /dev/disk2_vg/application_log
    mount /dev/disk2_vg/application_log /var/log/Avaya
    echo "/dev/disk2_vg/application_log /var/log/Avaya xfs defaults 0 0" >> /etc/fstab
  6. Run the following commands to create file systems for the /dev/sdc partition and mount the file system:
    mkfs.xfs /dev/disk3_vg/data
    mount /dev/disk3_vg/data /media/data
    echo "/dev/disk3_vg/data /media/data xfs defaults 0 0" >> /etc/fstab
  7. Run the following commands to create file systems for the /dev/sdd partition and mount the file system:
    mkfs.xfs /dev/disk4_vg/cassandra
    mount /dev/disk4_vg/cassandra /media/cassandra
    echo "/dev/disk4_vg/cassandra /media/cassandra xfs defaults 0 0" >> /etc/fstab