Creating disk partitioning for software-only deployments on AWS

Last Updated : Jun 05, 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

  • Install RHEL.

  • Create volumes with the required disk size values. For more information, see Disk partitions for software-only deployments.

Procedure

  1. Log in to the virtual machine as the root user using an SSH connection.
  2. To create the required directories, run the following commands:
    mkdir -p /var/log/Avaya
    mkdir -p /media/data
    mkdir -p /media/cassandra
  3. If you use either c5, c5a or c5n AWS instances, run the following command to determine the name and size of each volume in your deployment:
    lsblk

    The following is an example of the command output:

    [aadsadmin ~]$ lsblk
    NAME          MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    nvme3n1       259:0    0  40G  0 disk
    nvme2n1       259:1    0  70G  0 disk
    nvme1n1       259:2    0  10G  0 disk
    nvme0n1       259:3    0 125G  0 disk
    -nvme0n1p1    259:4    0 125G  0 part /
    -nvme0n1p128  259:5    0   1M  0 part

    In this example, the RHEL volumes have the following names and sizes:

    • /dev/nvme0n1: 125 Gb

    • /dev/nvme1n1: 10 Gb

    • /dev/nvme2n1: 70 Gb

    • /dev/nvme3n1: 40 Gb

    This step is not required if you use c4 instances.

  4. To create the required physical volumes and volume groups for these volumes, run the following commands:
    • If you use c4 AWS instances, run the following commands:

      pvcreate -f /dev/xvdb
      vgcreate disk2_vg /dev/xvdb
      pvcreate -f /dev/xvdc
      vgcreate disk3_vg /dev/xvdc
      pvcreate -f /dev/xvdd
      vgcreate disk4_vg /dev/xvdd
    • If you use either c5, c5a, or c5n AWS instances, run the following commands:

      pvcreate -f <name of 70 Gb volume>
      vgcreate disk2_vg <name of 70 Gb volume>
      pvcreate -f <name of 40 Gb volume>
      vgcreate disk3_vg <name of 40 Gb volume>
      pvcreate -f <name of 10 Gb volume>
      vgcreate disk4_vg <name of 10 Gb volume>

      For example:

      pvcreate -f /dev/nvme2n1
      vgcreate disk2_vg /dev/nvme2n1
      pvcreate -f /dev/nvme3n1
      vgcreate disk3_vg /dev/nvme3n1
      pvcreate -f /dev/nvme1n1
      vgcreate disk4_vg /dev/nvme1n1
      
  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 file system for the /dev/sdb 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
  7. To create a file system for the /dev/sdc 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
  8. To create a file system for the /dev/sdd 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