Linode Forum Index Linode Forum
Linode Community Forums
 


NFS mounts (warning) when restarting networking?

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
waldo



Joined: 21 May 2009
Posts: 336

Posted: Thu Jun 04, 2009 12:48 pm    Post subject: NFS mounts (warning) when restarting networking?  

What does this mean:
Quote: 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/Multiple_IPs#Debian_way_for_permanent_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:

Code: # 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.
Back to top  
db3l



Joined: 13 May 2009
Posts: 556

Posted: Thu Jun 04, 2009 3:42 pm    Post subject:  

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
Back to top  
waldo



Joined: 21 May 2009
Posts: 336

Posted: Thu Jun 04, 2009 4:29 pm    Post subject:  

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

Thanks
Back to top  
jed



Joined: 28 Mar 2009
Posts: 394
Location: New Jersey

Posted: Sat Jun 06, 2009 1:00 am    Post subject:  

db3l wrote: 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.
Back to top  
danlee



Joined: 30 Dec 2009
Posts: 9

Posted: Mon Jun 28, 2010 2:47 am    Post subject:  

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
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1