LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-10-2009, 05:40 PM   #1
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Rep: Reputation: 32
NFS not mounting at boot time


Hello,

My NFS mounts are not mounting at boot time. I get
"Mounting NFS filesystems: [FAILED] at boot.
If I do a mount -a after boot they mount without problem.

I am running RHES 5. The line in fstab looks like
beanbag:/home /home nfs bg,retry=20,soft 0 0

I read earlier posts and tried moving netfs to later in the boot cycle, it is normally S25netfs in /etc/rc3.d/S25netfs I moved it to S61netfs and its still failing.

I notice that when I issue the mount -a command it prints out the following:
FS-Cache: Loaded
FS-Cache: 'netfs' registered for caching

I've never noticed this before. If I umount /home and reissue the command I don't see the FS-Cache messages again.

I am confused I have about 30 systems running NFS to each other and this is the only system I have had problems with. It hates me
 
Old 06-10-2009, 06:03 PM   #2
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Original Poster
Rep: Reputation: 32
I found a solution, though I am still looking into why I need it. I found the following

Quote:
vi /etc/init.d/netfs
insert: action $”Sleeping for 30 secs: ” sleep 30
right after: [ ! -f /var/lock/subsys/portmap ] && service portmap start
and right before: action $”Mounting NFS filesystems: ” mount -a -t nfs,nfs4
The 30 sec. sleep works but none of my other systems had to do this. I'm guessing the switch its plugged into has a problem.
 
Old 07-28-2009, 03:01 PM   #3
sandricky
LQ Newbie
 
Registered: Nov 2008
Posts: 14

Rep: Reputation: 0
I have seen a similar problem and if you watch the startup scripts execute you will 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. On one system we have about 7-8 nfs entries and only the bottom half were getting mounted. A sleep command in the network startup script worked as well.
 
  


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
Boot stops on "Mounting NFS filesystems:" for a LONG time funkymunky Fedora 1 09-12-2008 12:43 AM
error while nfs mounting: RPC -connection time out paul darciel Linux - Networking 1 06-30-2006 11:06 AM
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 - Server

All times are GMT -5. The time now is 08:41 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