Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544432 - sys-apps/systemd-219: systemd tries to constantly unmount my funionfs mount
Summary: sys-apps/systemd-219: systemd tries to constantly unmount my funionfs mount
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 09:02 UTC by Michał Górny
Modified: 2015-06-01 01:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-03-25 09:02:03 UTC
fstab:

/var/db/squashfs/repos.rw=rw:/var/db/squashfs/repos.ro=ro /var/db/repos fuse.unionfs user,allow_other,use_ino,nonempty,auto_unmount,cow,dev,hide_meta_files,comment=systemd.automount   0 0

Now it seems that if I mount something on top of it (e.g. underlying squashfs), and then 'umount -l' systemd gets in some ugly unmounting loop.

journalctl -f:

mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.
mar 25 10:01:41 pomiot systemd[285]: Failed unmounting /var/db/repos.

and so on. Sometimes intermixed with:

mar 25 10:01:41 pomiot umount[20859]: umount: /var/db/repos: odmontowanie nie powiodło się: Operacja niedozwolona

[EINVAL]
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-03-25 09:02:55 UTC
What's interesting, also 'systemd --user' is killing CPU. If I SIGTERM both master systemd and 'systemd --user', the systemd returns to normal.
Comment 2 Pacho Ramos gentoo-dev 2015-03-27 20:41:30 UTC
That is with 219*? Also, does it change when changing "lzo" USE flag value? Also, maybe running "journalctl --verify" will show some corruptions that could explain this problems :/
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-04-01 20:59:55 UTC
So more details: it actually happens immediately after mounting /var/db/repos, either directly via 'systemctl start var-db-repos.mount' or via the relevant automount. At this point, systemd starts very fast unmounting attempts...

I have:

$ cat /etc/systemd/system/var-db-repos.mount.d/req-sqfs.conf 
[Unit]
Requires=var-db-squashfs-repos.ro.mount
After=var-db-squashfs-repos.ro.mount

which may be relevant. It may also be related to #541402. It's not Journal-related.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-04-07 14:24:10 UTC
It looks to be regression in automounts. For now, I just disabled automounting as a workaround.
Comment 5 Pacho Ramos gentoo-dev 2015-04-07 18:48:14 UTC
Yeah, sorry for the journald comment, I guess I was thinking on other bug/problem that day :S
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2015-04-21 20:22:08 UTC
Guys, I had same problem with mount -loop some.iso isodir, and I found that following patch fixes the problem for me:
http://cgit.freedesktop.org/systemd/systemd/patch/src/core/mount.c?id=628c89cc68ab96fce2de7ebba5933725d147aecc

Please try it and apply! :)
Comment 8 Mike Gilbert gentoo-dev 2015-04-26 17:15:39 UTC
Please give systemd-219_p112 a try.

+*systemd-219_p112 (26 Apr 2015)
+
+  26 Apr 2015; Mike Gilbert <floppym@gentoo.org> +systemd-219_p112.ebuild:
+  Add a snapshot from the v219-stable branch upstream.