Overview of PBS Sync Levels
filesystem (Default): Triggers syncfs(2) across the entire filesystem right after a backup finishes. It balances strong crash-resistance with performance.file: Triggers an fsync(0) on every individual chunk insertion. It provides the highest level of consistency,but significantly slows down performance on slower or network-attached storages.
none: Performs no explicit syncing when writing chunks, relying on the kernel's background flushes (via dirty_expire_centisecs).It is the fastest option, but risks data loss or broken backups if a sudden power loss occurs.
PBS stores everything in files. Maximum file size is 4MB.
Filesystems:
atime=off'
* ''recordsize=1M or biggerxattr=sazfs set secondarycache=metadata backuppool if NVM cache is small (up to 10GB). Leave default if it is big enough. Keepeing also data has benefits to cache also index files.l2arc_rebuild_enabled=1l2arc_mfuonly=2 - prevent one time data reads from flooding the cache.arc_dnode_limit_percent echo 30 > /sys/module/zfs/parameters/zfs_arc_dnode_limit_percentecho $1) > /sys/module/zfs/parameters/zfs_arc_maxzfs_txg_timeout=15 (was 5)PBS needs high IOPS performance. Benefit of ZFS would be that you can accelerate it using SSDs to store the metadata. But won't help that much with verify tasks (but still a bit as the HDDs are hit by less IO, because all the metadata that is read/written from the SSD doesn't has been read/written from the HDDs). In general HDDs shouldn't be used with PBS, at least not if you store a lot of backups. And if you still do it, it's highly recommended to also use SSDs for storing the metadata.
If using L2ARC switch it to MFU algo only to prevent writing lot of data with every backup: tune_l2arc_for_backups
How to calculate special VDEV size: ZFS Metadata Special Device: Z
So:
zfs set recordsize=16M YourPoolName/DatasetUsedAsDatastore
zfs set atime=off backup2
. PBS is not relying on this mechanism.
zfs set compression=lz4 YourPoolName/DatasetUsedAsDatastore
zfs set primarycache=metadata backupDon't use a raidz1/2/3 as PBS needs high IOPS performance and IOPS performance will only scale with the number of striped vdevs, not with the number of disks. So 20 disks in a raidz wouldn't be faster than a single HDD. And resilvering would also take forever.