How to increase the Swap file size on VRMS appliances.
search cancel

How to increase the Swap file size on VRMS appliances.

book

Article ID: 416430

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

This article is intended to guide on how to increase the Swap file size on the VRMS appliances.

Environment

VMware Live Recovery 9.x

Resolution

 

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 Partition
swapoff /dev/sda4

3. Check Partition Details
fdisk -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 Partition
mkswap /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 fsck
PARTUUID=7c9a8316-46c0-4a7b-a293-############ / ext3 defaults 1 1
PARTUUID=d82e5c13-8cc6-409f-ac85-############   swap    swap    defaults        0       0
PARTUUID=97ac8e56-9ab9-4099-a3af-############ /boot ext3 defaults,nosuid,noacl,nodev,noexec 1 2
PARTUUID=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 partition
mount -a

Or
Reboot the VRMS appliance:
reboot

Verify the swap status :
swapon --show

 

Additional Information

Step-by-Step Calculation
 
1. Total size required:
4 GB = 4× 1024×1024×1024=4,294,967,296 bytes
 
2. Sector size:
512 bytes per sector
 
3. Number of sectors needed:
4,294,967,296
-------------- =8,388,608 sectors
512
 
 
4. If your first sector is 33,554,432 (as shown in your prompt), then:
 
Last sector = 33,554,432 + 8,388,608 - 1 = 41,943,039