I would like to build some understanding around snapshots. Sanoid/syncoid seems to work fine. For example, subvol-109-disk-0 seems to be replicated from prod1 to pc12 as expected.
root@prod1:/srv/subvol-109-disk-0# ls
bin boot dev etc home lib lib64 media mnt moodle-backup opt proc root run sbin srv sys tmp usr var
havard@pc12:/zfs/prod1/subvol-109-disk-0$ ls
bin boot dev etc home lib lib64 media mnt moodle-backup opt proc root run sbin srv sys tmp usr var
We have access to the latest snapshot. That is cool. Also, it seems to be possible to look at older snapshots. That is very cool. Like this:
root@pc12:/zfs/prod1/subvol-109-disk-0/.zfs/snapshot/syncoid_ls3_2024-12-12:19:10:10-GMT00:00# ls
bin boot dev etc home lib lib64 media mnt moodle-backup opt proc root run sbin srv sys tmp usr var
So we have a boatload of snapshots on PC12. Now, I would like to read out some metrics from these snapshots. For example:
zfs diff can tell you what changed between snapshots. You can use its output plus stat in the .zfs/snapshots directory to get the time of the latest change.
This is cool for showing high level information about datasets. Like what proxmox subvolumes are added since last summer. I can see if subsets are added, moved or deleted.