I'm building my first Ubuntu server and I'm struggling with with the swap size.
I have 16GB RAM, however the disk space is limited as I'll be running multiple VM's. I've created a partition for the host machine with 20GB which will be more than enough to start with.
However, when I look at the Logical Volumes through Webmin, the SWAP_1 volume has got about 15GB taking almost the entire partition for nothing.
I'm new to Linux and did my research into how to reduce/remove the swap but couldn't get it to work. I've added the following line:
I have rebooted the system and the swap size remains the same. I have also tried to switch swap off through the command:
But that also did not work.
I'm a bit confused with all of these things as it is a kind a new world for me.
All I want is to have as close as 20GB as possible available on my partition.