touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #78940
[Bug 1444402] Re: LXC with r/w sys and udev keeps trying to unmount bind mounts
This is the command line I'm using for test iteration. It's not that
simple, so I want to keep it here in case I ever need it again.
This builds systemd from git, copies it into a "test" container, starts
it, runs the bind mount/umount, and shows the debug log:
schroot -r -c session:schroot-wily-systemd -- make -j4 && sudo rm -f
/srv/lxc/test/rootfs/lib/systemd/systemd && sudo cp systemd
/srv/lxc/test/rootfs/lib/systemd/systemd && clear && sudo lxc-start -n
test && sleep 3 && sudo lxc-attach -n test -- sh -c 'systemctl show -p
Id,ActiveState,SubState,BindsTo,BoundBy dev-sda3.device etc-
schroot.mount; systemd-analyze set-log-level debug; mkdir /tmp/etc
/tmp/boot; mount -o bind /etc /tmp/etc; mount -o bind /boot /tmp/boot;
sleep 0.5; echo "---- unmounting /tmp/etc ----"; umount /tmp/etc; sleep
0.5; systemctl show -p Id,ActiveState,SubState,BindsTo,BoundBy dev-
sda3.device etc-schroot.mount tmp-boot.mount; systemd-analyze set-log-
level info; mount | egrep "/tmp/|/etc"; journalctl -b | grep -A10000
"Reached target Graphical"; poweroff'
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1444402
Title:
LXC with r/w sys and udev keeps trying to unmount bind mounts
Status in systemd:
New
Status in systemd package in Ubuntu:
In Progress
Status in systemd source package in Vivid:
In Progress
Bug description:
I recently hit ENOSPC which turned out to be the result of various
syslogs from the current and previous boots totalling up to 30G.
They were filled with messages like
Apr 15 11:22:35 vivid systemd[1]: Unit var-lib-schroot-union-underlay-vivid\x2damd64\x2d5d4f7453\x2d9a95\x2d4a6a\x2d9aee\x2d9394923bf734.mount is bound to inactive unit dev-disk-by\x2duuid-980689ca\x2de7d9\x2d4a99\x2d8230\x2d33b8b6e917cd.device. Stopping, too.
Apr 15 11:22:35 vivid systemd[1]: Unmounting /var/lib/schroot/union/underlay/vivid-amd64-5d4f7453-9a95-4a6a-9aee-9394923bf734...
Apr 15 11:22:35 vivid umount[31795]: umount: /var/lib/schroot/union/underlay/vivid-amd64-5d4f7453-9a95-4a6a-9aee-9394923bf734: target is busy
Apr 15 11:22:35 vivid umount[31795]: (In some cases useful info about processes that
Apr 15 11:22:35 vivid umount[31795]: use the device is found by lsof(8) or fuser(1).)
Apr 15 11:22:35 vivid systemd[1]: var-lib-schroot-union-underlay-vivid\x2damd64\x2d5d4f7453\x2d9a95\x2d4a6a\x2d9aee\x2d9394923bf734.mount mount process exited, code=exited status=32
Apr 15 11:22:35 vivid systemd[1]: Failed unmounting /var/lib/schroot/union/underlay/vivid-amd64-5d4f7453-9a95-4a6a-9aee-9394923bf734.
Apr 15 11:22:35 vivid systemd[1]: Unit var-lib-schroot-union-underlay-vivid\x2damd64\x2d5d4f7453\x2d9a95\x2d4a6a\x2d9aee\x2d9394923bf734.mount is bound to inactive unit dev-disk-by\x2duuid-980689ca\x2de7d9\x2d4a99\x2d8230\x2d33b8b6e917cd.device. Stopping, too.
Apr 15 11:22:35 vivid systemd[1]: Unmounting /var/lib/schroot/union/underlay/vivid-amd64-5d4f7453-9a95-4a6a-9aee-9394923bf734...
Apr 15 11:22:35 vivid systemd[1]: Unmounted /var/lib/schroot/union/underlay/vivid-amd64-5d4f7453-9a95-4a6a-9aee-9394923bf734.
Apr 15 11:22:35 vivid systemd[1]: Unit var-lib-schroot-union-underlay-vivid\x2damd64\x2d5d4f7453\x2d9a95\x2d4a6a\x2d9aee\x2d9394923bf734.mount entered failed state.
looping constantly for the duration of any builds in sbuild.
Why is systemd trying to do this?
laney@vivid> apt-cache policy systemd
systemd:
Installed: 219-7ubuntu1
Candidate: 219-7ubuntu1
Version table:
*** 219-7ubuntu1 0
500 http://sherwood/ubuntu/ vivid/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/systemd/+bug/1444402/+subscriptions
References