User Tools

Site Tools


zfs:testing_zfs_commands

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:

  • Disks, such as /dev/sdb
  • Partitions, such as /dev/sdb1
  • Sparse files

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.
zfs/testing_zfs_commands.txt · Last modified: 2021/10/13 00:49 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki