You can extend the virtual disk of the VMware Data Services Manager Provider VM without powering off the VM.

Prerequisites

Make sure the VM doesn't have any snapshots. Otherwise, increasing the disk size option is not available.

Procedure

  1. Extend the size of the disk in the vSphere Client.
    1. In the vSphere Client, navigate to the Provider VM.
    2. Right-click the Provider VM in the inventory and select Edit Settings.
      Edit Settings Option in the vSphere Client
    3. On the Edit Setting page, increase the size of hard disk 2, and click OK to save the new disk size.
      Hard disk 2 is the disk backing the /data partition.

      In the following example, the size is extended from 100 GB to 150 GB.

      Edit Settings Page in the vSphere Client

  2. SSH in to the Provider VM as a root user and run the following commands.
    1. Run the lsblk -s command.
      The output shows that the volume size of the /data partition is still 100 G.
    2. Run the echo "1" > /sys/class/block/sdb/device/rescan command.

      In this command, you have to pass the correct device name sdb, which you can get from the output of the lsblk -s command you ran in the previous step.

    3. Run the pvresize /dev/sdb command.
      Make sure to pass the correct device name sdb, which you can get from the output of the lsblk -s command.
    4. Run the pvscan command.
    5. Run the command lvextend -l +100%FREE /dev/vg_data_0/lv_data_0 -r.

      Make sure that the volume group name vg_data_0 and the volume name lv_data_0 are corresponding to the disk that you are extending. Get this information from the lsbkl -s command's output.

    6. Run the command df -h /data to verify that the size of the partition has been increased.
      The output in this example shows that the size has been increased by 50 GB and is 150 GB.
      # df -h /data
      Filesystem                       Size  Used  Avail  Use%   Mounted on
      /dev/mapper/vg_data_0-lv_data_0  148G  150M   140G    1%   /data
      
    7. Run the command lsblk -s to verify that the volume has been resized.