ZFS Missing snapshots with zfstools

I have a bit of a mystery here, and I am hoping someone can help me solve it. I have two machines, one is my desktop, with two mirrored ZFS pools. The other is my laptop has a single stripe across two SSDs. Both are running 13.2-RELEASE with zfstools, and have been since shortly after they were built in 2019. I have both configured identically:

Code:
15,30,45 * * * * /usr/local/sbin/zfs-auto-snapshot frequent  4
0        * * * * /usr/local/sbin/zfs-auto-snapshot hourly   24
7        0 * * * /usr/local/sbin/zfs-auto-snapshot daily     7
14       0 * * 7 /usr/local/sbin/zfs-auto-snapshot weekly    4
28       0 1 * * /usr/local/sbin/zfs-auto-snapshot monthly  12
*/20     * * * * /usr/local/sbin/zfs-cleanup-snapshots

Which should give me 4 frequent (quarter-hourly), 24 hourly, 7 daily, 4 weekly, and 12 monthly snapshots, which is exactly what I want. But for some reason, I see that I only have two monthlies on my desktop, yet I have the full 12 on the laptop, and I am trying to figure out why that would be. Here is what I have (for /usr/home) on the desktop:

Code:
[defiant ~]# zfs list -t snapshot | awk '{ print $1 }' | grep home | grep monthly
NX74205/usr/home@zfs-auto-snap_monthly-2023-05-01-00h28
NX74205/usr/home@zfs-auto-snap_monthly-2023-06-01-00h28

But on the laptop:

Code:
[root@danube storm]# zfs list -t snapshot | awk '{ print $1 }'  | grep home | grep monthly
NX72003/usr/home@zfs-auto-snap_monthly-2022-07-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2022-08-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2022-09-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2022-10-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2022-11-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2022-12-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2023-01-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2023-02-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2023-03-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2023-04-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2023-05-01-00h28
NX72003/usr/home@zfs-auto-snap_monthly-2023-06-01-00h28

I should note that all of the frequent, hourly, and daily snapshots appear to be intact on defiant. It is just that every monthly before May 1 is gone.

So I was wondering where I could look to try and figure out why I only have two months of snapshots on defiant, and a full year on danube. I checked the logs and nothing jumped out at me. I also made a point of checking my command history to make sure I had not done something dumb, and don't see anything there either.

Thanks,
--vr
 
You don't mention running 'zpool history' rather than the command (which I would understand as the shell) history?
I actually did not know about zpool history. I will look at it. Thank you! I did not realize that zfs kept a database of all transactions. ZFS gets more amazing the more I use it...
 
Back
Top