Check if the system has any configured swap.
If you get the output that means you already have a configured swap memory. For example.
If you don’t get any output means your system does not have a swap memory.
To create a swap memory follow these instructions:
Verify is there any swap memory or not?
No swap memory is active If the Swap section is zero.
Check the system usages.
In /dev/sda1 section the system has 184GB storage where 88GB is free. We have plenty of space for swap memory.
Create swap memory by allocating a space from storage:
Here I’m creating 1GB of swap memory. You can adjust it depending of the requirements.
Verify the space is allocated or not.
Change the permission of swap memory to 600 so it can only accessible by root.
mark the allocated space to be use use as a swap memory.
Enable the swap space.
This space we allocated is currently temperory. After reboot it will deallocat the space.
So we have to make it permanent.
And finally reboot the instance.
0 Comments