LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-23-2008, 12:04 PM   #1
robeph
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
NFS not mounting at boot under certain conditions.


I have two machines. We'll call them Master and Slave. Master serves NFS mount to the Slave, if the master goes down, it's all fine and dandy, when it comes back up, the mounted fs will again be accessible. One caveat; if the slave is rebooted, and the master is down/rebooting and the slave comes up attempting to mount the nfs share without the master being able to abide, it will never mount the nfs share without manual interaction (mount -a et al) Is there some set of fstab options that will force it to retry to initial mount (not just subsequent retries/remounts on fs timeout)


robf
 
Old 04-25-2008, 12:14 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
About retrying, have a look at "man nfs". The option "retry=n" for NFS4 with fore/background mounts.
Hope this helps
 
Old 04-28-2008, 10:44 AM   #3
robeph
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Pearlseattle View Post
About retrying, have a look at "man nfs". The option "retry=n" for NFS4 with fore/background mounts.
Hope this helps
Done and done, to avail. This isn't the problem I don't think... Here is what I see occurring although I can't be for certain, but this is what it appears to be doing. When the system (client) boots, it mounts the devices/locations from fstab, including the NFS share on the master. Problem is that if it doesn't mount, then it fails, there is no retry because mount failed, and the retry=n is never actually of consequence. It seems that once it's been mounted retry correctly works. I've tried all options both hard/soft and fg/bg, to no avail. I'm not really sure what I can do to offset this. Currently we have a script that causes it to just wait to mount nfs, (since it typically doesn't take more than about 20-30 seconds for the master to come up after the slave has booted, this is usually sufficient) But I see this a fail point if for some reason the master was not to come up in the allotted time, thus this really needs to be handled via the correct methods, of which I'm lost to.
 
Old 04-29-2008, 08:16 AM   #4
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
Having pondered your client mount issue can't find a 'correct method' either. My reading man ifplugd suggests it might present a painless work around. There is a run= option that is executed on change of nic status. So you sit at the client and can't login to your server home. Unplug the nic and then wait till you think the master/server is up then replug. Not sure you would need/want an unmount -t nfs when the nic goes inactive but would want to mount -t nfs when the nic goes active.

I present as concept only and have no practical experience.

ppd
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS entries in /etc/fstab not mounting on boot jwolter0 Linux - Server 11 02-27-2012 01:28 PM
Problem mounting NFS share at boot amishtechie Linux - Networking 1 03-17-2007 10:23 PM
Mounting a nfs partition on boot time wjleon Linux - Newbie 1 05-02-2005 11:12 AM
NFS not mounting on boot lairdcp Linux - Networking 0 01-04-2005 08:30 PM
mounting nfs on boot-up jonfa Linux - General 1 09-04-2001 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration