I have recently installed Ubuntu 20.04 with ZFS as the file system. I check my RAM / swap and it is as follows:
qallaf89@desktop:~$ free -h total used free shared buff/cache available Mem: 31Gi 22Gi 4.1Gi 1.9Gi 4.2Gi 6.0Gi Swap: 2.0Gi 0B 2.0Gi
Now if I want to increase my swap space normally I follow this tutorial from digital ocean and it works perfectly. However, since I have ZFS I am having some issues:
qallaf89@desktop:~$ sudo fallocate -l 100G /swapfile fallocate: fallocate failed: Operation not supported
I looked around and indeed there seems to be a problem with ZFS / fallocate().
I also came across this documentation from oracle but it is of no use to me as well:
qallaf89@desktop:~$ swap -l Command 'swap' not found, did you mean: command 'stap' from deb systemtap (4.2-3) command 'szap' from deb dvb-apps (1.1.1+rev1500-1.2) command 'soap' from deb soapaligner (2.20-3) command 'sway' from deb sway (1.4-2) command 'smap' from deb slurm-client (19.05.5-1) command 'sswap' from deb secure-delete (3.1-6ubuntu2) command 'snap' from deb snapd (2.44.3+20.04) command 'swarp' from deb suckless-tools (44-1) command 'swab' from deb odin (2.0.3-2build1) Try: sudo apt install <deb name> qallaf89@desktop:~$ sudo apt show swap N: Unable to locate package swap N: Unable to locate package swap E: No packages found
Could someone with knowledge on the matter please help me increase my swap space?