Adding disk space to a VMware appliance

Increase disk space on the VMware appliance.

About this task

For multi-node deployment of the appliance, only one VM at a time should have its disk space augmented. The subsystem should be in good health before proceeding to the next node. Health of the subsystem can be checked with apicup subsys health-check <subsystem-name>.

Procedure

  1. Shutdown the virtual machine, either by issuing a shutdown command as root from the VM, or by using the VMware console or command line interface.

    For example, use the VMware console user interface and click the red rectangle.

  2. Use either the VMware console or command line interface to add a new device to the VM, of type Hard Disk and of the desired size to be added to the appliance.
    For example, on the VMware console:
    1. Click Edit settings.
    2. Click Add new device. From the drop-down menu, select Hard Disk.
    3. Enter size in GB and click OK.
  3. Use either the VMware console or the command line interface to power on the VM.
    As the VM starts it should detect the newly added disk and use it to augment the available capacity for the /data/secure mount point.
  4. Optionally you may verify that a new disk sdc was added (or sdd if you already added one disk, and so on). Log in to the server and observe the new disk. For example:
    root@apimdev1139:~# lsblk
    NAME               MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
    sda                  8:0    0  100G  0 disk  
    ├─sda1               8:1    0 99.9G  0 part  /
    ├─sda14              8:14   0    4M  0 part  
    └─sda15              8:15   0  106M  0 part  /boot/efi
    sdb                  8:16   0  250G  0 disk  
    └─apiconnect-data  252:0    0  260G  0 lvm   
      └─apicSecureDisk 252:1    0  260G  0 crypt /data/secure
    sdc                  8:32   0   10G  0 disk  
    └─apiconnect-data  252:0    0  260G  0 lvm   
      └─apicSecureDisk 252:1    0  260G  0 crypt /data/secure
    sr0                 11:0    1   44K  0 rom