This is on a debian bullseye that I plan to upgrade shortl.
When I set up this machine, I created a 1G partition for boot pool, without thinking much about what snapshot are
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
bpool 960M 592M 368M - - 40% 61% 1.00x ONLINE -
Whenever there is something that triggers an initramfs rebuild, I get some ‘convenient’ backup files from dkms. This has the effect that even just a couple snapshots fill up the partition.
This is how my snapshots look like today, after deleting the helpful dkms backup files:
bpool/BOOT/debian@autosnap_2023-05-01_00:00:08_monthly 162M - 334M -
bpool/BOOT/debian@autosnap_2023-06-01_00:00:08_monthly 88K - 338M -
bpool/BOOT/debian@autosnap_2023-06-19_23:30:08_weekly 80K - 338M -
bpool/BOOT/debian@autosnap_2023-06-26_23:30:08_weekly 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-01_00:00:08_monthly 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-03_23:30:08_weekly 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-10_23:30:08_weekly 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-16_00:00:08_daily 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-17_00:00:08_daily 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-17_23:30:08_weekly 0B - 338M -
bpool/BOOT/debian@autosnap_2023-07-18_00:00:08_daily 0B - 338M -
bpool/BOOT/debian@autosnap_2023-07-19_00:00:08_daily 56K - 338M -
bpool/BOOT/debian@autosnap_2023-07-20_00:00:08_daily 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-21_00:00:08_daily 80K - 338M -
bpool/BOOT/debian@autosnap_2023-07-22_00:00:08_daily 56K - 338M -
bpool/BOOT/debian@autosnap_2023-07-23_00:00:08_daily 56K - 182M -
This is the sanoid template:
[template_boot]
frequently = 0
hourly = 0
daily = 8
weekly = 5
monthly = 6
yearly = 0
autosnap = yes
autoprune = yes
Whenever I have to do an upgrade on this machine, I have to carefully look for dkms or initram errors, as I have put myself in a stinky corner once, and I’d rather not do it again. I generally prune the snapshot manually before doing anything.
Is there a better way to handle this whole thing? Maybe having snapshot created by an initramfs hook, instead of sanoid?