Swap is still useful as without it PVE will kill your VM/LXCs in case the node is running out of RAM. But swap on top of ZFS should be avoided as this might crash your server. So no swap file on a dataset and no zvol formated for swap.
You would need some unallocated disk space and create a normal swap partition there. But then the swap isn't redundant and a failing disk will crash your server too. Didn't found a way yet to mirror a swap partition with software raid, as mdadm should be avoided for swap too.
Not sure if there is a solution. Looks like the PVE team isn't seeing a way to solve this too, as PVE installs LVM with swap but ZFS without. And no one answer my thread so far:
No.
ARC is basically doing the opposite of swap. Swap will swap out data from RAM to disk to save some RAM. ARC will cache data from disks into RAM for better performance.
L2ARC will then move cached data from ARC in RAM back to a disk.
So L2ARC and swap do something similar, but swap can contain any data and L2ARC just cached ZFS data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.