Create the swap volume
zfs create -V 16G rpool/swap16gb
Format the swap volume
mkswap -f /dev/zvol/rpool/swap16gb
Edit the swap partition name in /etc/fstab
Reboot and destroy the old swap volume
zfs destroy rpool/swap
Create the swap volume
zfs create -V 16G rpool/swap16gb
Format the swap volume
mkswap -f /dev/zvol/rpool/swap16gb
Edit the swap partition name in /etc/fstab
Reboot and destroy the old swap volume
zfs destroy rpool/swap
by
Tags: