How to increase the storage space for the /opt/vmware/support partition on Site Recovery Manager Appliance
search cancel

How to increase the storage space for the /opt/vmware/support partition on Site Recovery Manager Appliance

book

Article ID: 429910

calendar_today

Updated On:

Products

VMware Live Recovery VMware vSphere ESXi

Issue/Introduction

This article provides instructions on increasing the storage space for the /opt/vmware/support partition on the Site Recovery Manager (SRM) Appliance. This is typically required when the partition reaches 100% capacity, preventing the service from writing logs and initializing correctly.

Environment

  • Site Recovery Manager (SRM) Appliance
  • VMware Live Recovery

Resolution

Prerequisites:

  1. Ensure you have a valid, recent backup of the SRM Appliance.
  2. Ensure there are no active snapshots on the SRM Appliance to prevent corruption during disk resizing.

Procedure:

  1. Verify Current Usage: Log in to the SRM Appliance via SSH and run the following command to confirm the disk utilization:
    admin@srm01-dr [ ~ ]$ df -h
    Filesystem                      Size  Used Avail Use% Mounted on
    devtmpfs                        4.0M     0  4.0M   0% /dev
    tmpfs                           5.9G   40K  5.9G   1% /dev/shm
    tmpfs                           2.4G  744K  2.4G   1% /run
    tmpfs                           4.0M     0  4.0M   0% /sys/fs/cgroup
    /dev/sda5                        14G  2.9G  9.9G  23% /
    tmpfs                           5.9G  128K  5.9G   1% /tmp
    /dev/sda3                       230M   33M  185M  16% /boot
    /dev/mapper/support_vg-support   17G  113M   16G   1% /opt/vmware/support
    /dev/sda2                        10M  2.1M  8.0M  21% /boot/efi
    /dev/loop0                      365M   49K  345M   1% /opt/vmware/support/logs/srm/SRAs
    tmpfs                           1.2G     0  1.2G   0% /run/user/666

    Note: Verify that the /opt/vmware/support mount point is at or near 100% capacity.

  2. Identify Disk Mapping: Run the lsblk command to list the disk partitions and identify the mapping for the /opt/vmware/support partition (typically /dev/sdb):
    admin@srm01-dr [ ~ ]$ lsblk
    NAME                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
    loop0                  7:0    0  400M  0 loop /opt/vmware/support/logs/srm/SRAs
    sda                    8:0    0   16G  0 disk
    ├─sda1                 8:1    0    4M  0 part
    ├─sda2                 8:2    0   10M  0 part /boot/efi
    ├─sda3                 8:3    0  256M  0 part /boot
    ├─sda4                 8:4    0    2G  0 part [SWAP]
    └─sda5                 8:5    0 13.7G  0 part /
    sdb                    8:16   0   17G  0 disk
    └─support_vg-support 254:0    0   17G  0 lvm  /opt/vmware/support
    sr0                   11:0    1  2.3G  0 rom

  3. Expand the Disk in vCenter: Connect to the vSphere Client, select the SRM Appliance, and increase the size of Hard disk 2 (e.g., from 17 GB to 20 GB).

  4. Resize Physical Volume (PV): Run the following command to inform the operating system of the increased disk size:
    root [ /home/admin ]# pvresize /dev/sdb
      Physical volume "/dev/sdb" changed
      1 physical volume(s) resized or updated / 0 physical volume(s) not resized
    Expected output: "1 physical volume(s) resized or updated"

  5. Reboot the Appliance: Reboot the SRM Appliance to ensure the system recognizes the updated partition table.

  6. Verify Free Space: Run pvs to confirm the free space (PFree) is available:
    root [ /home/admin ]# pvs
      PV         VG         Fmt  Attr PSize   PFree
      /dev/sdb   support_vg lvm2 a--  <20.00g 3.00g

  7. Extend the Logical Volume (LV): Expand the logical volume to utilize the newly available free space:
    root [ /home/admin ]# lvextend -l +100%FREE /dev/support_vg/support
      Size of logical volume support_vg/support changed from <17.00 GiB (4351 extents) to <20.00 GiB (5119 extents).
      Logical volume support_vg/support successfully resized.

  8. Resize the Filesystem: Finalize the change by resizing the filesystem to match the new logical volume size:
    root [ /home/admin ]# resize2fs /dev/support_vg/support
    resize2fs 1.46.5 (30-Dec-2021)
    Filesystem at /dev/support_vg/support is mounted on /opt/vmware/support; on-line resizing required
    old_desc_blocks = 2, new_desc_blocks = 2
    The filesystem on /dev/support_vg/support is now 5241856 (4k) blocks long.

  9. Verification: Run df -h one final time to confirm that the /opt/vmware/support partition size has been updated and is no longer at 100% capacity.
    root [ /home/admin ]# df -h
    Filesystem                      Size  Used Avail Use% Mounted on
    devtmpfs                        4.0M     0  4.0M   0% /dev
    tmpfs                           5.9G   40K  5.9G   1% /dev/shm
    tmpfs                           2.4G  752K  2.4G   1% /run
    tmpfs                           4.0M     0  4.0M   0% /sys/fs/cgroup
    /dev/sda5                        14G  2.9G  9.9G  23% /
    tmpfs                           5.9G  128K  5.9G   1% /tmp
    /dev/sda3                       230M   33M  185M  16% /boot
    /dev/mapper/support_vg-support   20G  106M   19G   1% /opt/vmware/support
    /dev/sda2                        10M  2.1M  8.0M  21% /boot/efi
    /dev/loop0                      365M   49K  345M   1% /opt/vmware/support/logs/srm/SRAs
    tmpfs                           1.2G     0  1.2G   0% /run/user/666