Open tunloop opened 1 year ago
Not sure if this was the determining factor, but it appears I have fixed the problem.
Originally I had the mountpoint for my pool on a separate drive than my boot drive (/home is mounted there). I moved the mountpoint back to the boot drive and it mounts consistently now.
I can only guess that the appearance of /home partition on the secondary drive takes a little too long for the process that mounts the zfs pool.
Hi @tunloop I have the same issue as you. After being blocked for 6 hours, this case and your workaround saves my day.
In my case, I am on Centos 7. I am re-installing a server and the only thing that changed is centos version : centos 7.7 to centos 7.9 (and consequently kernel from 3.10.0-1160.42.2.el7.x86_64 to 3.10.0-1160.88.1.el7.x86_64). Our zfs mountpoint is /var/lib/pgsql and /var is a xfs linux filesystem.
I suppose that the order of mount has changed during the bootstrap (and /var/lib/pgsql is now mounted before /var), but it is difficult to prove because /var is not easy to umount ;-)
Thanks for reporting...
On my side :
Type | Version/Name -- | -- Distribution Name | Centos Distribution Version | Centos 7.9 Kernel Version | 3.10.0-1160.88.1.el7.x86_64 Architecture | x86_64 (intel) OpenZFS Version | zfs-2.0.5 and zfs-2.0.7
System information
Describe the problem you're observing
After upgrading from version 2.0.3-9 to version 2.1.11-1 (debian bullseye to bookworm), a ZFS mountpoint becomes a ghost. There is no data in the claimed mounted directory, and the mount point cannot be unset, cannot be forcefully unmounted, and cannot be exported. Removal of the mountpoint folder still results in mount and zfs reporting the mount to be present.
I would say this is a pretty large bug, it effectively destroys access to a zfs pool. Since the pool cannot be unmounted from this ghost mount, it cannot be exported, and the mountpoint cannot change.
Describe how to reproduce the problem
Install ZFS on Debian 11 and create pool mounted to folder inside non-root user home directory. Upgrade Debian 11 to 12, and reboot. ZFS mountpoint will now be permanent without the dataset actually being mounted.
Include any warning/errors/backtraces from the system logs
There are no system logs generated from this event, only the observed errors in mount functionality. All commands below run as root.
zpool status -v
lsblk
zfs get mountpoint
mount | grep Archive
cat /proc/mounts | grep Archive
zfs set mountpoint=/home/erasedhammer/SecureArchive SecureArchive
zfs unmount -f SecureArchive
umount /home/erasedhammer/SecureArchive