LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-26-2007, 02:35 AM   #1
Sputnikc
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian stable/testing/unstable
Posts: 32

Rep: Reputation: 15
NFS mount at boot-time problem


I've been using debian for over 7 years now. Allways to my satisfaction.

But now since august 2007 i've been having a bit of problems with nfs mounting at boot-time.
My NFS server is on Stable, all the clients are on testing.
I have 3 NFS mounts at boot-time in fstab.
Most of the time only 2 of them get mounted correctly and 1 gives a boot error :
Code:
mount.nfs: mount to NFS server 'detonator' failed: RPC Error: Program not registered
Sometimes none of the NFS shares get mounted at boot-time also
I've tried moving the startup scripts to a later time at boot but that didn't help me.
If none was mounted at boot-time i have to do "mount -a" a couple of times to get them mounted. They always mount eventually, but also with the same error as above the first time to try.

Did anyone find a solution for this annoying problem?
 
Old 11-07-2007, 09:01 AM   #2
Sputnikc
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian stable/testing/unstable
Posts: 32

Original Poster
Rep: Reputation: 15
For those curious :
Changing the hostname from the nfs-server in the fstab line to the ip address of the nfs-server seems to work better.
I still wonder why...
My name resolving works fine otherwise.
 
Old 07-28-2009, 03:13 PM   #3
sandricky
LQ Newbie
 
Registered: Nov 2008
Posts: 14

Rep: Reputation: 0
Nfs not working at boot time

I have seen a similar problem and if you watch the startup scripts execute you may 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. I am not sure if there is another fix available to resolve this. I have added the IP address, ensured the server name was resolving etc. You may only want to add the sleep statement to the start stanzas vice the main body of the script to eliminate unecessary delays in the shutdown or network stop commands.
 
  


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 mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
problem with failing mount at boot time rconan Fedora 2 08-03-2005 07:44 AM
Mounting a nfs partition on boot time wjleon Linux - Newbie 1 05-02-2005 11:12 AM
Create NFS Mounts at boot time rwalkerphl Linux - Newbie 1 11-17-2004 02:59 AM
redhat 7.2 mount nfs"RPC:time out"problem bee33 Linux - Networking 1 02-19-2004 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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