How to check backups
Check to see if the backups are ZAS or ZAB
zfs list -t snapshot <path> | tail -5
- spit out a list of filesystems
zfs list
- Look for something that is supposed to be backing up and check it's attributes
zfs get all <path> - If it contains these, it is ZAB-ing:
-
autobackup:zab=true lets zab know that this filesystem should be selected for backup
zab:backuptype=bks|r2|r1|sandbox|scratch
autobackup:<filesystem path with -'s instead of /> ie raid/one would be raid-one (zab will be able to parse paths that have dashes in the name so continue with -'s for /'s and-'s)
zab:server="server.fqdn.edu:zfs-dest-path,server2.fqdn.edu:zfs-dest-path" at least one server must be defined, there is a max of 1024 characters.
-
- If those are not present, it is likely ZAS-ing
- ZAS uses CRON. Check to see if there are backup jobs in CRON
cat /etc/cron.d/zfs-crons
- In the output, look for lines without hashtags
ex. # simplest case: all the buckets from a system can go into the same zas on the dest, bucket name lists for each established in zfsutil11 1 * * * root cew-zfsutil --dest=ember:raid/zas --dest=flames:raid/zas push-buckets-dual21 1 * * * root cew-zfsutil --dest=flames:raid/zas push-buckets-sing
push-buckets-sing = single backup and translates to raid/r
push-buckets-dual = two backups and translates to raid/r.r (or possibly raid/r)
- In the output, look for lines without hashtags
- Check to see if the backups in on the local server and the backup server match
localzfs list -t snapshot <path> | tail -5ex.: zfs list -t snapshot raid/r.r/tucker-data | tail -5
remote backup locationzfs list -t snapshot <path> | tail -5ex: zfs list -t snapshot raid/zas/r.r/tucker-data | tail -5 - If they match (or for ZAS if they are close), backups are working:
ex.
[gritadm@ember ~]$ zfs list -t snapshot raid/zas/r.r/tucker-data | tail -5
raid/zas/r.r/tucker-data@zas_h-20261130-1702 0B - 523G -
raid/zas/r.r/tucker-data@zas_h-20261130-1802 0B - 523G -
raid/zas/r.r/tucker-data@zas_h-20261130-2002 0B - 523G -
raid/zas/r.r/tucker-data@zas_h-20261130-2202 0B - 523G -
raid/zas/r.r/tucker-data@zas_d-20261130-2304 0B - 523G -
gritadm@torch:~$ zfs list -t snapshot raid/r.r/tucker-data | tail -5
raid/r.r/tucker-data@zas_h-20261201-1002 0B - 523G -
raid/r.r/tucker-data@zas_h-20261201-1102 0B - 523G -
raid/r.r/tucker-data@zas_h-20261201-1202 0B - 523G -
raid/r.r/tucker-data@zas_h-20261201-1302 0B - 523G -
raid/r.r/tucker-data@zas_h-20261201-1402 0B - 523G -
GRIT-owned Petabyte servers:
17, 18,19, 23, 25, 36