This article is intended to guide on how to increase the Swap file size on the VRMS appliances.
VMware Live Recovery 9.x
Steps 1. Increase the storage space:
Power of the VRMS VM
Edit the VM settings and increase the first disk drive
Power ON the VRMS VM
Take a snapshot of the VM to revert if needed.
Steps 2. Stop services:
Stop all VRMS services:systemctl stop hbrsrv hms hms-vpostgres dr-client
Steps 3 : Increase the Swap memory:
1. Verify the present swap memory:
swapon --summary
or free -h
2. Disable the Swap Partitionswapoff /dev/sda4
3. Check Partition Detailsfdisk -l /dev/sda
4. Resize the Partition :fdisk /dev/sda
Inside fdisk:
Press p to list partitions.
Press d and choose partition 4 to delete /dev/sda4.
Press n to create a new partition:
Choose primary
Use the same start sector as before [default]
Specify a new end sector to make it 4 GB in size
Press t and set the type to swap (Linux swap)
Press w to write changes and exit
Steps 4. Creation of swap partition:
Format the New Swap Partitionmkswap /dev/sda4
Turn On the Swap:swapon /dev/sda4
Ensure the correct UUID or device path is listed:blkid
Edit the /etc/fstab and update the PARTUTIL : for swap
root@vr01 [ /home/admin ]# vi /etc/fstab#system mnt-pt type options,nosuid,nodev dump fsckPARTUUID=7c9a8316-46c0-4a7b-a293-############ / ext3 defaults 1 1PARTUUID=d82e5c13-8cc6-409f-ac85-############ swap swap defaults 0 0PARTUUID=97ac8e56-9ab9-4099-a3af-############ /boot ext3 defaults,nosuid,noacl,nodev,noexec 1 2PARTUUID=a6368c79-2752-4447-a217-############ /boot/efi vfat rw,nosuid,nodev,exec,auto,nouser,async 1 2/dev/cdrom /mnt/cdrom iso9660 ro,noauto,nosuid,nodev 0 0/dev/support_vg/logs /opt/vmware/logs ext3 rw,nosuid,nodev,exec,auto,nouser,async 0 1/dev/support_vg/support /opt/vmware/support ext3 rw,nosuid,nodev,exec,auto,nouser,async 0 1/dev/support_vg/heapdump /opt/vmware/heapdump ext3 rw,nosuid,nodev,exec,auto,nouser, async 0 1/dev/support_vg/vrmsdb /var/lib/vrmsdb ext3 rw,nosuid,nodev,exec,auto,nouser,async 0 1
Mount the partitionmount -a
Or
Reboot the VRMS appliance:reboot
Verify the swap status :
swapon --show