Skip to main content

How to check backups

Check to see if the backups are ZAS or ZAB

  1. Spit out a list of filesystems
    1. zfs list

  2. Look for something that is supposed to be backing up and check it's attributes
    zfs get all <path>

  3. If it contains these, it is configured to use ZAB:
    1. 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. 
  4. If those are not present, it is likely configured to use ZAS, or not backing up at all.

  5. ZAS uses CRON.  Check to see if there are backup jobs in CRON
    cat /etc/cron.d/zfs-crons
    1. 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)

  6. Check to see if the backups in on the local server and the backup server match

    local
    zfs list -t snapshot <path> | tail -5
    ex.: zfs list -t snapshot raid/r.r/tucker-data | tail -5 

    remote backup location
    zfs list -t snapshot <path> | tail -5
    ex: zfs list -t snapshot raid/zas/r.r/tucker-data | tail -5

  7. 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