Join GitHub today
systemd incorrectly unmounts a reused mount point after a device removal #8596
systemd version the issue has been seen with
In case of bug report: Expected behaviour you didn't see
systemd should not unmount anything.
In case of bug report: Unexpected behaviour you saw
After finishing a filesystem migration from an old LVM2 logical volume to a new one, I:
Then, just after issuing a lvremove on the old logical volume, I saw systemd unmounting the directory in which the new logical volume was mounted.
In case of bug report: Steps to reproduce the problem
The steps to reproduce the problem are:
The following code snippet can trigger the bug:
There is a downstream bug here: https://bugzilla.redhat.com/show_bug.cgi?id=1494014
I brought the bug upstream because I can reproduce the behavior on a fully-updated Arch Linux installation.
Yes, my configuration files were up to date when the bug hit me. No, I haven't issued a
My bug trigger script actually modifies
I figured that a second
I am sorry, but if you have issues with LVM2, please first contact your downstreams and the LVM community. We have no experience with this upstream, and cannot really help you with that.
If there's an issue you can reproduce without LVM involved, please reopen. But until then this is simply not the right audience for these issues, we can't help you...
@poettering Hello, please re-open this issue. This has nothing to do with LVM.
We have a Red Hat BZ associated already.
I can confirm that this issue has nothing to do with LVM, I can reproduce with iscsi (see below for reproducer).
Also, the issue only reproduces if filesystem is in /etc/fstab AND there ISN'T the "noauto" flag.
I can reproduce on RHEL7 and Fedora 27.
Reproducer using iscsi, with 2 Targets, 1 Lun in each, so that a target can be deleted to mimic switching between targets (e.g. Disaster Recovery scenario or migration).
Server (was using RHEL7):
Client (Fedora 27 or RHEL7):
Now, run the usual scenario. For convenience, I did the following:
Mount point gets automatically unmounted until