LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2009, 11:02 AM   #1
gumpish
LQ Newbie
 
Registered: Mar 2004
Distribution: Ubuntu 6.06.1
Posts: 8

Rep: Reputation: 0
Question NFS share in fstab fails to mount, but where is the log?


Hello.

I have two RHEL 5 systems, one has an NFS export and the other has that share listed in its fstab file. The client system should be trying to mount the NFS share upon bootup, correct?

It seems the last time the client system was restarted the NFS share didn't mount - however I don't see anything in /var/log/messages about it. I was able to mount the share manually.

I'm not as concerned at the moment about the fact that the share didn't mount automatically as much as I am concerned about the fact that I can't seem to find any log entries about the failure. Where should such failures appear? Or are they not logged by default??

Thanks!
 
Old 07-31-2009, 11:18 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello gumpish

There might be something in the /var/log boot log file.

Best

Charles
 
Old 08-01-2009, 11:26 PM   #3
gumpish
LQ Newbie
 
Registered: Mar 2004
Distribution: Ubuntu 6.06.1
Posts: 8

Original Poster
Rep: Reputation: 0
Nope, the /var/log/boot file for the time period in question is empty...
 
Old 08-02-2009, 12:40 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Since I assume the server was running at the time of the reconnection attempt, you should check /var/log/messages in the server. Those messages provide more information than the client's.

Most of the times when an NFS share doesn't mount (which usuall does) is because of a network issue. For example because the reverse DNS wasn't working (yet).

jlinkels
 
Old 08-02-2009, 01:05 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello gumpish

I write from an ubuntian perspective so you may need to translate into RedHatish.

Check that network, portmap and nfs-common init scripts are called before mountall.sh; if they are not, the only thing that makes NFS mounts in /etc/fstab work at all is that NFS keeps trying long enough for the network to come up later.

One possible cause of the network coming up slowly is switches which may queue certain types of packets (I say "certain" because I'm not certain which!). I've seen similar threads in which the solution has been to re-configure Cisco switches.

There may be timeouts available on the NFS options in /etc/fstab which you could extend.

Another solution may be to remove the NFS entries from /etc/fstab and to program their mounting into a later init script like rc.local.

Best

Charles
 
Old 08-02-2009, 01:08 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Another thought; you may be able to solve/improve the situation by using IP addresses rather than names when specifying the NFS mounts in the fstab or, if you really want names, using the hosts file rather than a DNS server for name resolution. This way you are not dependent on network facilities to get the IP address of the NFS server.
 
Old 08-19-2009, 04:45 PM   #7
rainzone
LQ Newbie
 
Registered: Jun 2009
Location: Rochester, NY, USA
Posts: 9

Rep: Reputation: 0
look in /var/logs/secure?

You might want to look in /var/logs/secure. RHEL 5 writes a bunch of messages there which I would have otherwise looked for in /var/logs/messages. I think that's because it's 'security enabled' SELinux.
 
Old 08-19-2009, 08:22 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,425

Rep: Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786
You could try the automount solution post #7 http://www.linuxquestions.org/questi...-mount-746785/

The relevant RH manual section http://www.linuxtopia.org/online_boo...ig-autofs.html
 
  


Reply

Tags
logfile, nfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
fstab entry does not mount nfs share nanbudh Linux - Networking 13 06-07-2012 03:05 PM
How can I mount a NFS share that have a SMB share mounted? perezyanez Linux - Networking 2 09-26-2008 10:03 AM
Give more mount time in /etc/fstab for an nfs mount zambega Linux - Newbie 1 08-13-2008 03:28 PM
Can't mount nfs share from fstab but can mount it manually - help Mountain Linux - Networking 1 03-30-2008 09:34 PM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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