ZFS - Pools - A file based zpool example

Single File Test

A single 2GB file is used as a VDEV and a zpool is made from just this one VDEV:

dd if=/dev/zero of=test.img bs=1M count=2048
sudo zpool create testpool /home/peter/test.img
sudo zpool status
  pool: pool-test
 state: ONLINE
  scan: none requested
config:
 
        NAME                      STATE     READ WRITE CKSUM
        pool-test                 ONLINE       0     0     0
          /home/peter/test.img    ONLINE       0     0     0

NOTE:

  • /home/peter/test.img: is a file based VDEV.
  • testpool: is the pool.