Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 04, 2009 1:48 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
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/Mu ... nent_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.


Top
   
 Post subject:
PostPosted: Thu Jun 04, 2009 4:42 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
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


Top
   
 Post subject:
PostPosted: Thu Jun 04, 2009 5:29 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
Excellent explanation! Thank you. You've shown me a few more "dark corners" of Linux for me to explore.

Thanks


Top
   
 Post subject:
PostPosted: Sat Jun 06, 2009 2:00 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
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.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Mon Jun 28, 2010 3:47 am 
Offline
Senior Newbie

Joined: Wed Dec 30, 2009 11:18 pm
Posts: 16
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group