NFS mounts (warning) when restarting networking?

What does this mean:
> 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:

http://www.linode.com/wiki/index.php/Mu … nent_setup">http://www.linode.com/wiki/index.php/MultipleIPs#Debianwayforpermanent_setup

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

I wouldn't worry too much. It appears to be a warning that can be ignored in the presence of multiple interfaces.

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

Excellent explanation! Thank you. You've shown me a few more "dark corners" of Linux for me to explore.

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.

Answered my question perfectly :) Don't use and don't plan on using NFS on my linode, so going to chmod -x the script.

Thanks

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct