How to increase the storage space /opt/vmware/support partition on SRM Appliance?
search cancel

How to increase the storage space /opt/vmware/support partition on SRM Appliance?

book

Article ID: 429910

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:

This KB explains about how to increase the storage space /opt/vmware/support partition on SRM Appliance.

Environment

VMware Live Site Recovery 9.0.2

Resolution

Follow the below steps to increase the SRM appliance /opt/vmware/support partition space on SRM appliance. 

1. Ensure there is good backup of the SRM appliance and ensure there is no snapshot in the SRM appliance.

2. Connect to SRM appliance via putty session and run df -h to check the current space utlization for /opt/vmware/support partition on SRM Appliance.

Example : 

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

3. Run lsblk command to list the disk parition and mount points of SRM appliance. 

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

4. Running pvs command on SRM appliance to display formatted information about Physical Volumes (PVs) within Logical Volume Manager (LVM).

root [ /home/admin ]# pvs
  PV         VG         Fmt  Attr PSize   PFree
  /dev/sdb   support_vg lvm2 a--  <17.00g    0


5. Connect to vSphere Web client and select your SRM appliance and increase the space of Hard disk 2 from 17 GB disk space to 20 GB.

Before increasing the disk space on SRM appliance the Hard disk 2 disk space shows 17 GB



After Increasing the Hard disk 2 space by 3 GB i.e. from 17 GB to 20 GB we can now see the updated space as 20 GB.



6. Run pvresize /dev/sdb to increase the space for /dev/sdb partition is mapped to /opt/vmware/support in SRM appliance.

root [ /home/admin ]# pvresize /dev/sdb
  Physical volume "/dev/sdb" changed
  1 physical volume(s) resized or updated / 0 physical volume(s) not resized

7. Reboot the SRM appliance.

8. Run pvs command on SRM appliance to check if you are able to see the PFree showing up newly added space i.e. in this example we added 3 GB additional space so we should see 3GB under PFree section in the below output.

root [ /home/admin ]# pvs
  PV         VG         Fmt  Attr PSize   PFree
  /dev/sdb   support_vg lvm2 a--  <17.00g    0
root [ /home/admin ]#

9. If the PFree space is not updated in this case we need to re-run "pvresize /dev/sdb" again and then run pvs command to validate whether the PFree is showing newly added space i.e. 3 GB.

root [ /home/admin ]# pvresize /dev/sdb
  Physical volume "/dev/sdb" changed
  1 physical volume(s) resized or updated / 0 physical volume(s) not resized
root [ /home/admin ]# pvs
  PV         VG         Fmt  Attr PSize   PFree
  /dev/sdb   support_vg lvm2 a--  <20.00g 3.00g
root [ /home/admin ]#

10. Then run lvdisplay to see the size of each logical volumes and LV Path will display the name of the logical volume. In this example we are increasing the space for /dev/support_vg/support logical volume.

Before exapanding the logical volume the LV Size of /dev/support_vg/support is 17.00 GiB.

For example :

root [ /home/admin ]# lvdisplay
  --- Logical volume ---
  LV Path                /dev/support_vg/support
  LV Name                support
  VG Name                support_vg
  LV UUID                GZiuSw-9Dwc-xxxx-xxxx-xxxx-xxxx-D2Xobi
  LV Write Access        read/write
  LV Creation host, time photon-machine, 2024-06-03 02:15:30 +0000
  LV Status              available
  # open                 1
  LV Size                <17.00 GiB
  Current LE             4351
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0

11. Now expand the space /dev/support_vg/support using the lvextend -l +100%FREE to increase 100% of the available free space which is 3 GB.

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.


12. Now Run the lvdisplay command to see the updated logical volume space for /dev/support_vg/support.

root [ /home/admin ]# lvdisplay
  --- Logical volume ---
  LV Path                /dev/support_vg/support
  LV Name                support
  VG Name                support_vg
  LV UUID                GZiuSw-9Dwc-xxxx-xxxx-xxxx-xxxx-D2Xobi
  LV Write Access        read/write
  LV Creation host, time photon-machine, 2024-06-03 02:15:30 +0000
  LV Status              available
  # open                 1
  LV Size                <20.00 GiB
  Current LE             5119
  Segments               3
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0

13. To finalize the change, we must run resize2fs /dev/mapper/support_vg-support. This command expands the file system into the newly allocated 3 GB of free space, bringing the total usable capacity for /opt/vmware/support from 17 GB to 20 GB.

Before running the resize2fs /dev/support_vg/support command we can see the /opt/vmware/support size shows are 17G

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   17G  106M   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

The resize2fs command completed the task of growing the logical volume /dev/support_vg/support from 17G to 20G.

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.

After running the resize2fs /dev/support_vg/support command we can see the /opt/vmware/support size shows are 20G

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