touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #44519
[Bug 1358310] Re: using umount with bash wildcard ends in "device is busy" for mount of parent directory
[Expired for util-linux (Ubuntu) because there has been no activity for
60 days.]
** Changed in: util-linux (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1358310
Title:
using umount with bash wildcard ends in "device is busy" for mount of
parent directory
Status in util-linux package in Ubuntu:
Expired
Bug description:
hi,
i've run into a problem on ubuntu 14.04 while mounting an ganeti
instance for doing some chroot stuff. but the problem itself not
related to ganeti or any other virtualization. its just a problem
while mounting/unmounting some devices.
so heres an example how to reproduce the problem:
lvcreate -L 1G -n test system
lvcreate -L 1G -n test2 system
mkfs.ext4 /dev/system/test
mkfs.ext4 /dev/system/test2
mount /dev/system/test /mnt/
mkdir /mnt/test2
mount /dev/system/test2 /mnt/test2/
ln -sf /etc/issue /mnt/
umount /mnt/*
umount /mnt/
lvremove -f /dev/system/test2
lvremove -f /dev/system/test
if i run this commands /mnt/ is still mounted and it is only possible
to umount it using "-l" switch. but after this it is still not
possible to remove the logical volume because it says "Logical volume
system/test contains a filesystem in use."
if i run the same commands but without the "ln -sf /etc/issue /mnt/"
everything is okay. also if i replace "umount /mnt/*" with "umount
/mnt/boot" everything works.
so it seems like umount ist opening /etc/issue for some reason if a
bash wildcard is used and not releasing it. checking with lsof or
fuser does not show any open files under /mnt/ nor for /etc/issue.
the problem does not exist with ubuntu 12.04.
a solution for this problem would be great because if you often do
some chroot stuff it is easier to use "umount /mnt/*" to umount all
bind mounts like /proc/ or /sys/ than running a umount command for
each mount.
also i havent found a way, other than reboot, to remove an open
logical volume if it was hit by this problem.
lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
regards
the2nd
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1358310/+subscriptions