I decided to create external HDD with ZFS for backups. I would like to make sure that my preparation process of HDD is correct or know suggestions on what to do better. The HDD size is 4 TB and 4 KiB sector sized.
I am confused with zpool property cachefile. Is if mandatory or useful to set cachefile property for pools on an external HDD?
Code:
# gpart create -s GPT da0
# gpart add -a 4k -t freebsd-zfs -l backup da0
# sysctl vfs.zfs.min_auto_ashift=12
# zpool create -O compression=lz4 -O atime=off -m /media/backup -f zdisk1 gpt/zdisk1
# zfs create -o copies=2 backup/first-dataset
I am confused with zpool property cachefile. Is if mandatory or useful to set cachefile property for pools on an external HDD?
# zpool set cachefile=/mnt/boot/zfs/zpoll.cache backup