To speed things up on the UFS backup disk, you could enable
softupdates on the file system and mount with
noatime option.
You can check for
softupdates by running
tunefs:
Code:
# tunefs -p /dev/ada0s3f
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: soft update journaling: (-j) disabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) disabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
Here it already has been enabled but with something like
# tunefs -n /dev/ada0p1
you could enable it.
Or to see whether the destination is the bottleneck you could create a test backup
tmpfs partition of say 2 or 4 GB and do a partial rsync to that partition. See
tmpfs(5)
This an
/etc/fstab with a
tmpfs mount of
/tmp:
Code:
# dev mount FStype Options Dump Pass#
#----------- ----- ----- ------------------- ---- ----
/dev/ada0s3a / ufs rw,noatime 1 1
/dev/ada0s3b none swap sw 0 0
/dev/ada0s3d /usr ufs rw,noatime 2 2
/dev/ada0s3e /home ufs rw,noatime 2 2
/dev/ada0s3f /var ufs rw,noatime 2 2
/dev/ada0s3g /var/www ufs rw,noatime 2 2
/dev/ada0s3h /var/db/mysql ufs rw,noatime 2 2
#
tmpfs /tmp tmpfs rw,mode=01777,size=1073741824 0 0
# tmpfs size is in bytes:
# calculate the size with 'echo 'x * 1024^2' | bc' for size in MB
# calculate the size with 'echo 'x * 1024^3' | bc' for size in GB
# NOTE: you cannot use 'noatime' for tmpfs !