Open aieri opened 1 year ago
I've noticed this happens at least when zsys takes a snapshot:
/root/.zfs/snapshot/
the garbage collector cannot do its job until I manually umount them
or at next reboot
@aieri The package removal/install triggers an update-grub, and in particular triggers the code in /etc/grub.d/10_linux_zfs
, which mounts everything and does not seem to umount
it correctly.
That seems also to cause the history entries in the grub menu to fail (i.e. there is no grub history anymore), at least on Lunar. @aieri plese, could you check whether your grub history appears in the grub menu or not?
I have another laptop with a previous Ubuntu version that does not have any problem with mount or grub history, even though it uses an identical /etc/grub.d/10_linux_zfs
.
The problem seems to be related to https://github.com/zfsonlinux/zfs/issues/9958 and its workaround in the /etc/grub.d/10_linux_zfs
and something that has been changed in zfs/zsys in the latest version.
That seems also to cause the history entries in the grub menu to fail (i.e. there is no grub history anymore), at least on Lunar. @aieri plese, could you check whether your grub history appears in the grub menu or not?
@ddnexus that's right, dataset history is no longer displayed in the grub menu of my Lunar machine.
dataset history is no longer displayed in the grub menu of my Lunar machine
Thank you for confirming it.
I put a few echo
in the /etc/grub.d/10_linux_zfs
to get some feedback from both versions, and indeed the /root/.zfs/...
get mounted by it and never unmounted in Lunar. I have no idea about whether that is supposed to accomplish anything or it's just a by-product of something else, nor which code triggers it, nor if the old version even use that mountpoints. Debugging it will cost too much time to non-maintainers like myself, so I give up.
I wasted a huge amount of time just managing the quirks and bugs of zsys during the past years. On the other hand - ironically - I never had a single hardware failure on my laptops during that time. In retrospective, and looking at the behaviour of Canonical for this project (and others), adopting zsys has been a bad decision on my part, and continuing with it would be worse now, when the project is obviously in abandoned state.
Luckily there are compelling alternatives that appear to work for my needs and have some decent level of maintenance.
👀
Describe the bug After upgrading to Lunar, I noticed the garbage collector being unable to clean up old states due to the
dataset is busy
error.Somehow new states snapshots get automatically mounted under
/root/.zfs/snapshot
, so the garbage collector cannot do its job until I manually umount them. I don't believe this was the case in Kinetic.Quick workaround:
To Reproduce
Installed versions: