Creating disk partitioning for software-only deployments

Last Updated : Aug 12, 2022 |

About this task

Avaya Aura® Web Gateway 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. If you are deploying Avaya Aura® Web Gateway in a virtual AWS environment that uses c5, c5a or c5n 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:

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

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

    • /dev/nvme0n1: 42 Gb

    • /dev/nvme1n1: 10 Gb

    • /dev/nvme2n1: 60 Gb

    • /dev/nvme3n1: 20 Gb

  4. Depending on your virtual environment, do one of the following to create the required physical volumes and volume groups for these volumes:
    • In a VMware virtual environment, run the following commands:

      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
    • In a virtual AWS environment that uses c4 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
    • In a virtual AWS environment that uses either c5, c5a, or c5n instances, run the following commands:

      pvcreate -f <name of 60 Gb volume>
      vgcreate disk2_vg <name of 60 Gb volume>
      pvcreate -f <name of 20 Gb volume>
      vgcreate disk3_vg <name of 20 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. 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
  6. 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
  7. 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
  8. 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