======================================= FreeBSD zfs swap file ======================================= Tests on FreeBSD 14 using ZVOLs for swap files does not work. AFAIK If you can't grow your swap partition then this is the only way to add a swap file with zfs. ======================================= Add partitions or disks and mirror them --------------------------------------- gmirror label -v -b prefer -F swap0 /dev/ada2 /dev/ada3 gmirror status echo "/dev/mirror/swap0 none swap sw 0 0" >> /etc/fstab swapon -a swapinfo ======================================= Done =======================================