* util-linux-2.27.1 - umount -a -O _netdev problem, _netdev ignored
@ 2016-01-31 3:30 Zoltan
2016-02-01 10:14 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Zoltan @ 2016-01-31 3:30 UTC (permalink / raw)
To: util-linux
Hello,
There is a problem in the code of util-linux-2.27.1, in the umount binary.
The command
umount -a -O _netdev
does _not_ umount anything, despite an /etc/fstab with the likes of
...
alpha:/var/mail /var/mail nfs _netdev,soft,tcp
...
The "mount -a -O _netdev" command works as expected. However, the
/run/mount/utab files is empty, and I was unable to get the "umount -a -O
_netdev" to work as advertised. Running it with "--verbose" flag merely
confirmed that everything was being ": ignored".
I have a physical /etc/mtab (not symlink), and the "_netdev" option is missing
from /etc/mtab file, but that's probably expected???
If I manually add it (_netdev) to /etc/mtab, then the umount -a -O _netdev
does work. But /run/mount/utab is empty. Trying to step through the code
gets pretty brutal, and the *fs population is still hidden inside some
macro...and I can never find where the /run/mount/utab is even being parsed in
the umount code-path.
This is with a root-over-NFS setup, in case that matters. Probably shouldn't.
Kernel is 4.3.0.
Is this a regression? Seems there were issues before...wondering if it
re-surfaced.
--
### Any similarity between my views and the truth is completely ###
### coincidental, except that they are endorsed by NO ONE ###
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: util-linux-2.27.1 - umount -a -O _netdev problem, _netdev ignored
2016-01-31 3:30 util-linux-2.27.1 - umount -a -O _netdev problem, _netdev ignored Zoltan
@ 2016-02-01 10:14 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2016-02-01 10:14 UTC (permalink / raw)
To: Zoltan; +Cc: util-linux
On Sat, Jan 30, 2016 at 07:30:13PM -0800, Zoltan wrote:
> There is a problem in the code of util-linux-2.27.1, in the umount binary.
>
> The command
>
> umount -a -O _netdev
>
> does _not_ umount anything, despite an /etc/fstab with the likes of
>
> ...
> alpha:/var/mail /var/mail nfs _netdev,soft,tcp
> ...
>
> The "mount -a -O _netdev" command works as expected. However, the
> /run/mount/utab files is empty, and I was unable to get the "umount -a -O
> _netdev" to work as advertised. Running it with "--verbose" flag merely
> confirmed that everything was being ": ignored".
>
> I have a physical /etc/mtab (not symlink), and the "_netdev" option is missing
> from /etc/mtab file, but that's probably expected???
You need /etc/mtab *or* /run/mount/utab. It does not make sense to
have both files. Use 'rm -rf /run/mount' or use the symlink.
It's also important if you have /sbin/mount.nfs linked with libmount.
I guess it's system without systemd.
> If I manually add it (_netdev) to /etc/mtab, then the umount -a -O _netdev
> does work. But /run/mount/utab is empty. Trying to step through the code
It seems that the problem is not umount, but missing _netdev in mtab
or utab.
Suggestion:
* cleanup your disk (use the symlink or regular mtab)
* try "LIBMOUNT_DEBUG=all mount /var/mail" and verify that _netdev is
stored on the disk (mtab or utab)
* if success try "LIBMOUNT_DEBUG=all umount -a -O _netdev"
Note that for NFS we use mount.nfs from nfs-utils package and it has to
be compiled with libmount, otherwise it does not store anything to utab
and use mtab (if possible).
On systems with systemd we use --enable-libmount-force-mountinfo where
classic mtab is ignored at all.
The env.variable LIBMOUNT_DEBUG=all is your good friend if you want to
debug anything.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-01 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-31 3:30 util-linux-2.27.1 - umount -a -O _netdev problem, _netdev ignored Zoltan
2016-02-01 10:14 ` Karel Zak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.