ZFS - Testing ZFS Commands

ZFS pools can actually be installed not just on disks, but on anything with a descriptor in /dev that allows random access.

This includes:


Testing ZFS Commands


Create a ZFS Pool with Sparse Files

for n in {0..7}; do truncate -s 1G $n.raw; done
zpool create -o shift=12 test raidz2 /tmp/*.raw
zpool status test
zpool list test

NOTE: This will build a test pool out of sparse files in seconds.

  • This will show how much usable capacity will be available, which will be useful for when doing this for real.