NFS mounts (warning) when restarting networking?
> Reconfiguring network interfaces…if-up.d/mountnfs[eth0]: waiting for interface eth0:0 before doing NFS mounts (warning).
done.
I have 2 ip addresses, both set to be static following this tutorial:
I can only make guesses as to what it means. I've tried searching google, but there's either not much out there or I'm not searching with the correct terms "NFS mounts (warning) networking" or I don't understand what I have found.
As far as I know I don't have any NFS mounts, I do have a few disk images attached in my Configuration Profile, but none are actually mounted as of right now:
# cat /proc/partitions
major minor #blocks name
202 0 1048576 xvda (root)
202 16 262144 xvdb (swap)
202 32 5242880 xvdc (not mounted)
202 48 1048576 xvdd (not mounted)
202 64 262144 xvde (not mounted)
thanks for any insight.
4 Replies
What is happening is that the primary eth0 interface is brought up (via ifup) due to its entry in /etc/network/interfaces. In response to that, scripts in /etc/network/if-up.d will run automatically. And one of those scripts is mountnfs to automatically mount any filesystems in /etc/fstab that are marked as nfs. You'll find the code that generates the warning in /etc/network/if-up.d/mountnfs.
I'm guessing at why the code was written this way, but since the script can't tell with certainty which (if you have multiple) of your network interfaces may be needed for the NFS mount to succeed, it checks all the "auto" interfaces in /etc/network/interfaces and if any aren't configured yet, it exits with the warning you saw. In your case, you have a second, eth0:0, alias interface, that holds your secondary address which isn't up yet - thus the warning.
But since the same script will then re-run on each subsequent interface coming up, when it gets to the final interface it proceeds to mount any network filesystems.
From the script on Debian (assuming Debian 5 - I don't have a Debian 4 image to check), it appears that the "am I the last interface to come up" check is done even before checking fstab so you can get this warning even if you don't have any nfs filesystems configured.
If the message annoys you, and you don't have any nfs mounts, you can always get rid of the mountnfs script in /etc/network/if-up.d, or chmod -x the script, which will cause it to be skipped.
– David
Thanks
@db3l:
If the message annoys you, and you don't have any nfs mounts, you can always get rid of the mountnfs script in /etc/network/if-up.d, or chmod -x the script, which will cause it to be skipped.
Terrific explanation. Another alternative, which I performed on my Debian box, is to just comment out the warning.
Thanks