Hello, thank you to all site admin for moving this over from r/ZFS.
I’m on a debian based system (ubuntu, etc) and currently have the zfs-auto-snapshot package installed and running. I would like to only snapshot 2 of my 3 datasets under 1 pool. The third dataset (in this case ‘dataset2’ below) would be a scratch directory where I don’t want snapshots enabled.
I have set dataset2 to not auto snapshot:
$ sudo zfs set com.sun:auto-snapshot:frequent=false pool0/dataset2
$ sudo zfs set com.sun:auto-snapshot:hourly=false pool0/dataset2
$ sudo zfs set com.sun:auto-snapshot:daily=false pool0/dataset2
$ sudo zfs set com.sun:auto-snapshot:weekly=false pool0/dataset2
$ sudo zfs set com.sun:auto-snapshot:monthly=false pool0/dataset2
However, the pool itself containing all datasets also shows snapshots (example: pool0@zfs-auto-snap_daily-2023-07-22-1437).
$ zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
pool0@zfs-auto-snap_daily-2023-07-22-1437 0B - 302K -
pool0/dataset0@zfs-auto-snap_daily-2023-07-22-1437 23.2K - 3.13T -
pool0/dataset1@zfs-auto-snap_daily-2023-07-22-1437 0B - 1.94T -
is this normal behavior?
would pool0@zfs-auto-snap_daily-2023-07-22-1437 have any data from dataset2?
$ zfs get all pool0 pool0/dataset0 pool0/dataset1 pool0/dataset2 | grep snap*
pool0 snapdir hidden default
pool0 usedbysnapshots 0B -
pool0 snapshot_limit none default
pool0 snapshot_count none default
pool0 snapdev hidden default
pool0/dataset0 snapdir hidden default
pool0/dataset0 usedbysnapshots 4.23M -
pool0/dataset0 snapshot_limit none default
pool0/dataset0 snapshot_count none default
pool0/dataset0 snapdev hidden default
pool0/dataset1 snapdir hidden default
pool0/dataset1 usedbysnapshots 0B -
pool0/dataset1 snapshot_limit none default
pool0/dataset1 snapshot_count none default
pool0/dataset1 snapdev hidden default
pool0/dataset2 snapdir hidden default
pool0/dataset2 usedbysnapshots 0B -
pool0/dataset2 snapshot_limit none default
pool0/dataset2 snapshot_count none default
pool0/dataset2 snapdev hidden default
pool0/dataset2 com.sun:auto-snapshot:frequent false local
pool0/dataset2 com.sun:auto-snapshot:hourly false local
pool0/dataset2 com.sun:auto-snapshot:monthly false local
pool0/dataset2 com.sun:auto-snapshot:weekly false local
pool0/dataset2 com.sun:auto-snapshot:daily false local
why does snapshot_count show set to none when there appears to be snapshots present?
further reading:
thank you!