LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-28-2009, 03:29 PM   #1
sandricky
LQ Newbie
 
Registered: Nov 2008
Posts: 14

Rep: Reputation: 0
NFS errors for fstab entries during boot time RHEL5


I have a problem in which about 4 of the 7-8 nfs mount entries in /etc/fstab do not get mounted during bootup.
I can execute `mount -a` via the command line an it works fine. When I watch the startup scripts execute I see "no route to host" error messages. This indicates that the routing tables have not be fully initialized before the nfs entries in the fstab file are attempted. I added a sleep command in the network startup script worked as well. Does anyone have a better solution to this startup issue?


Rick V
 
Old 07-28-2009, 03:38 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well the routing tables should be fine, you've either got them up or you haven't, there's nothing to wait for in terms of pure time. You can try moving the netfs script later in the boot process maybe, but i'd be reckoning there's something specific causing this. I've seen this on a bunch of systems I had to take over where the users had just totally rearranged all the scripts, when in fact the issue was that they were using trunked network ports and the Cisco switch they were connected to was insisting on a full 50 second stp timeout before it'd forward packets. Unlikely that it's exactly that, but it did happen to me, and took me a long time to really suss out, but I fixed it properly on the switch side instead of fudging the init scripts. You can certainly add some temporary debug scripts to the equation, e.g. dumping the routing tables to a file within the start() of the netfs script.
 
Old 07-28-2009, 06:24 PM   #3
sandricky
LQ Newbie
 
Registered: Nov 2008
Posts: 14

Original Poster
Rep: Reputation: 0
During the initial trouble shooting I was trying to replicate the "no route to host" error message and after a series of unsuccessful ifconfig and service network commands I received the same message when I did a service network stop and tried the mount -a command ( I had previously umounted the nfs mounts in my fstab file). Before that I downed the interface, intentionally gave a unresolvable hostname for the mount, removed the host for the /etc/hosts file etc but received different messages. After I downed the network service the routing table via the netstat -nr command showed no route to the local subnet. Issuing the mount command at that point produce the same message. We have portfast enabled on all the switch ports which should prohibit the timing issue for STP forwarding. When I get more maintenance time on the node I will try to have the routing table dumped to output before the fstab entries are mounted.
 
Old 08-05-2009, 05:40 PM   #4
sandricky
LQ Newbie
 
Registered: Nov 2008
Posts: 14

Original Poster
Rep: Reputation: 0
I verified that portfast was enabled on the Cisco ports, I have inserted the retry=3 option into the fstab mount entries and everything gets mounted correctly now. There still must be some timing issue with the startup scripts that are causing these errors. We are going to leave the retry options into the fstab from now on to avoid any timing issues.
 
  


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
NFS entries in /etc/fstab fail to mount on bootup in Mandriva 2009 dickgregory Mandriva 5 10-16-2008 08:14 AM
Network fstab entries don't mount at boot tisource Linux - Networking 7 12-29-2005 06:54 PM
Network fstab entries not being mounted at boot tisource Linux - Networking 4 12-26-2005 10:47 AM
/etc/fstab -- adding entries every boot Kamikazee Linux - Newbie 3 07-14-2005 04:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:57 AM.

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