Confused by the doc on zfs copy-on-write (COW) tank

ok so…

  1. first of all Thanks for the quick reply!

  2. while re-reading the doc another dozen time something else got me confused… when you state " You should create a separate ZFS dataset" do you mean that I have to create another zfs zpool?? completely separate from the “backup” zpool already mounted on /mnt/BACKUP/ ?

  3. I hope I did the setup right…

  • bought a cheap H/W SAS controller with 512MG of cache and 6 old SAS 3TB drives on ebay.
  • setup the SAS drives as JBOD and enabled cache for read, and write-only-with-battery
    /dev/sdb, c, d, e, f, g
  • setup the backup zpool array as RAIDZ, using a 16GB SSD partition for cache (sda4) mounted on /media/BACKUP

zpool create backup raidz /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg cache /dev/sda4 -m /media/BACKUP

  • Setup the dedup/compression

zfs set dedup=on backup
zfs set compression=on backup

  • setup the images COWs - using my existing big single zpool called backup

echo “backup/images” > /etc/urbackup/dataset
echo “/media/BACKUP/urbackup” > /etc/urbackup/backupfolder

  • setup the files COWs - using my existing big single zpool called backup

echo “backup/files” > /etc/urbackup/dataset_file

  • modify the config to run urbackup as root and restart…

vi /etc/default/urbackupsrv
#change USER="root"all the way at the bottom of the file…
systemctl restart urbackupsrv.service

  • run the test…

$ urbackup_snapshot_helper test
Testing for btrfs…
ERROR: not a btrfs filesystem: /media/BACKUP/urbackup/testA54hj5luZtlorr494
TEST FAILED: Creating test btrfs subvolume failed
Testing for zfs…
ZFS TEST OK
stephane@HAL:/opt$