You are not logged in.

#1 2012-03-16 22:17:44

lowph
Member
From: NL
Registered: 2011-10-14
Posts: 24

[SOLVED] util-linux upgrade results in NFS problem

After upgrading to util-linux 2.21-5 (and mkinitcpio-0.8.4-1/mkinitcpio-busybox-1.19.4-2) my computer gives an error during boot about mounting a NFS share.

Mounting Network Filesystems    [BUSY] 
mount.nfs4: /mnt/wodan is busy or already mounted
[FAIL]

The mount works fine, however I have to unmount the NFS share before shutting down otherwise the shutdown hangs on:

Unmounting Swap-based filesystems

Downgrading util-linux to 2.20.1 solves the problem, upgrading to 2.21-6 from testing gives the same problem.

The NFS mount is defined in fstab:

172.19.3.2:/              /mnt/wodan     nfs4    _netdev,rsize=32768,wsize=32768,timeo=14,intr  0  0

Looking through /var/log I cannot find anything that seems related to this (except the message above).
How can I find where/when/why it is mounting my NFS share twice?
Is this a bug or am I doing something wrong?

Last edited by lowph (2012-03-17 16:53:50)

Offline

#2 2012-03-17 16:53:08

lowph
Member
From: NL
Registered: 2011-10-14
Posts: 24

Re: [SOLVED] util-linux upgrade results in NFS problem

I have solved my problem, I'll explain it as I understand it:

It was caused by the _netdev option in my fstab (which defines to wait until network devices are up, an option I used since my previous distro), removing this solves the problem.
/etc/rc.d/netfs calls mount twice, once with -t "$NETFS" and once with -O _netdev which results in mount being called twice for my NFS share. Apparently the updated mount command in util-linux is more strict and this causes the error. I guess the same thing happens when shutting down where it waits to unmount a fs which is already unmounted.

Offline

Board footer

Powered by FluxBB