Creating disk partitioning for a Microsoft Azure 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. To extend the file system, run the following commands:
    lvextend -L +8G /dev/rootvg/rootlv
    xfs_growfs /dev/rootvg/rootlv
    
    lvextend -L +7G /dev/rootvg/homelv
    xfs_growfs /dev/rootvg/homelv
    
    lvextend -L +7G /dev/rootvg/tmplv
    xfs_growfs /dev/rootvg/tmplv
  3. To create the required directories, run the following commands:
    mkdir -p /var/log/Avaya
    mkdir -p /media/data
    mkdir -p /media/cassandra
  4. To create the required physical volumes and volume groups for these volumes, run the following commands:
    pvcreate -f /dev/sdc
    vgcreate disk2_vg /dev/sdc
    pvcreate -f /dev/sdd
    vgcreate disk3_vg /dev/sdd
    pvcreate -f /dev/sde
    vgcreate disk4_vg /dev/sde
  5. To create logical volumes in the volume groups, run the following commands:
    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
  6. To create a logical volume for the /opt directory, run the following command:
    lvcreate -L 8G -n optlv /dev/rootvg
  7. To create a file system for the /dev/sda3 partition and mount the file system, run the following commands:
    mkfs.xfs /dev/rootvg/optlv
    mount /dev/rootvg/optlv /opt
    echo "/dev/rootvg/optlv /opt xfs defaults 0 0" >> /etc/fstab
  8. To create a file system for the /dev/sdc partition and mount the file system, run the following commands:
    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
  9. To create a file system for the /dev/sdd partition and mount the file system, run the following commands:
    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
  10. To create a file system for the /dev/sde partition and mount the file system, run the following commands:
    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