-
On the server there is 4GB memory and 4GB swap file on TEST server which is not enough.
-
Now the existing swap partition is created in lvm and there is no scope to increase the size
-
To overcome this problem create a swapfile using dd command with permission 0600

-
Change the file permission to 0600
-
Set the file as swap area
-
Test by enabling the swap on swapfile
-
Make this boot persistent by adding the entry in fstab
-
Always run mount -a command to check if any error in fstab file
-
Now disable swap on /swapfile which we have enabled manually and check swap partitions
-
Now check boot persistence by swapon command 