Ubuntu: ZFS partition as swap


I'm using native-zfs and was wondering if there is a way to use a ZFS partition for SWAP. I'm running my server off of a thumbdrive and thought that would be a good way to speed it up a little bit.


Using ZFS for swap should just work, just like it does under Solaris and FreeBSD.

zfs create pool/swap -V 1G -b 4K  mkswap -f /dev/pool/swap  swapon /dev/pool/swap  


Swap partitions have to be in a particular format that is suited for swapping, so you cannot use any other file system for swap. This rules out zfs for this reason.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »