systemd-umount doesn't unmount LVM volumes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

OS: Debian 12
systemd: 252

Could someone please explain why systemd-umount doesn't unmount LVM volumes by device:

$ systemd-mount /dev/vg0/lv0 /mnt/lvm/
Started unit mnt-lvm.mount for mount point: /mnt/lvm

$ findmnt -n /mnt/lvm
/mnt/lvm /dev/mapper/vg0-lv0 ext4   rw,relatime

$ systemctl list-units '*.mount'
mnt-lvm.mount loaded active mounted /mnt/lvm

$ systemd-umount /dev/vg0/lv0
$ systemd-umount /dev/mapper/vg0-lv0
$ systemd-umount /dev/dm-0

None of the above commands unmount LVM volume. They don't produce any output and the exit status is zero.
On the other hand, unmounting by the mountpoint works fine:

$ systemd-umount /mnt/lvm/
Stopped unit mnt-lvm.mount for mount point: /mnt/lvm

This only happens with LVM, not with regular block devices.
Is this a bug or a feature?

--
Regards,
Vladimir Mokrozub



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux