Increasing The /opt Partition Size

Overview

This procedure describes how to increase the size of the /opt partition on virtual machines, Tufin Appliances and AWS instances running TOS after adding a new disk.

To increase the partition size, add a new virtual disk. Do not expand the existing disk.

Procedure

  1. Log into the TOS CLI as a user with root privileges.

  2. Perform a TOS Backup.

  3. If not already done, add the new virtual disk to the virtual machine.

  4. Once all the pods have been terminated, verify the new disk is recognized by the operating system. If the new disk does not appear, you may need to reboot your system.

    sudo lsblk
    sudo lsblk
  5. In the image above, the new disk that was added is nvme1n1. It may have a different name in your environment.

  6. Create a new physical disk to associate with the one that you previously created.

    sudo pvcreate /dev/<vol name>
    sudo pvcreate /dev/<vol name>

    Replace <vol name> with the name of the new disk. For example: sdc.

  7. Extend the disk.

    sudo vgextend VolGroup01 /dev/<vol name>
    sudo vgextend VolGroup01 /dev/<vol name>
  8. Extend the /opt partition.

    sudo lvextend -r -l +100%FREE /dev/mapper/<vol group>
    sudo lvextend -r -l +100%FREE /dev/mapper/<vol group>

    Replace <vol group> with the name of the disk group.

  9. Verify that the storage space was added to the /opt partition.

    sudo lsblk
    sudo lsblk

    You can see that the storage for /opt has now been increased.

  10. Restart the TOS services.

    [primary data node]# sudo tos start