LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-26-2008, 10:31 AM   #1
Ziggie
Member
 
Registered: Nov 2005
Distribution: Red Hat AS 3
Posts: 49

Rep: Reputation: 15
File System Locked Up when NFS mount went offline


Aight, first the basics:
Running RHEL 3 (2.4 Kernel), Dell Poweredge 2850, 4GB RAM, 2TB EMC RAID on ServerA.
Solaris Sun system on ServerB.

I do not control Server B.

ServerB publishes an NFS share that I have mounted on ServerA as /mnt/serverb.

ServerA has the 2TB raid mounted as /mnt/raid

On the raid is a samba shared directory we'll call public. Mounted at /mnt/raid/public

Inside this samba shared directory is a symlink to /mnt/serverb which is contained in /mnt/raid/public/serverb

Yesterday, serverb went into Single User Mode (as it tends to do from time to time for whatever reason) for approximately 45 minutes. 15 minutes into the outage, ServerA noticed that ServerB was missing a threw an error into the system log:
(ServerA kernel: nfs: server {ip address} not responding, still trying)

About this time, the directory /mnt/raid/public stopped responding. Completely. Any attempt to ls on the directory froze, with kill -9 commands being uneffective. Windows clients could not connect to the share at all (except an old Win98 box, but it couldn't list the directory contents). I even attempted to use a Java based file manager to look at the file system, but it locked up as well (webmin). Oddly enough, I could still tabcomplete in the directory with no problems.

No other shares were affected. Server utilization was no stranger than normal. Only this one share/directory seemed to be affected.

When serverb came back up, all of my frozen console sessions began responding again and the Windows clients could connect. The Samba logs show no errors during this time period.

So, the short question is this: Should a symlink be able to bring an entire directory to a standstill?
The longer question is: How do I keep the symlink but prevent being held hostage by serverb's erratic uptime.

Thanks in advance and sorry for the long explanation. I've never seen anything like this before.

--zigg
 
Old 08-26-2008, 11:04 AM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Are you mounting the shares manually or automatically via /etc/fstab?

also look at the man 5 page of nfs:

Code:
man 5 nfs
That will bring up the fstab entries specific to nfs. Specifically look at the soft/hard mount options. NFS is default to hard which keeps requesting for the data indefinitely (hence your hang until server is back up). the 'soft' option can be given a maximum number of tries at which point it would return and error.

Good luck! I'm fairly confident the info you need is in that manual page
 
Old 08-26-2008, 11:43 AM   #3
Ziggie
Member
 
Registered: Nov 2005
Distribution: Red Hat AS 3
Posts: 49

Original Poster
Rep: Reputation: 15
Wow, a quick reply. Thank you!

Yes, we do use fstab to mount this at startup. The entry is here:

{IP Address}:/iu6/autoproc /mnt/serverb nfs suid,dev,exec 0 0


I have added soft to the fstab entry (you're right, I believe that will solve all the issues I saw).

Given the uptime of serverb (or lack thereof) I'm sure I'll know if it worked fairly soon.

Thanks!

(amazing-a simple RTFM moment after all)

Last edited by Ziggie; 08-26-2008 at 11:47 AM.
 
  


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
mount: mount to NFS server '192.168.0.3' failed: System Error: Connection refused. fakie_flip Linux - Server 1 04-10-2008 12:28 AM
NFS server - client cannot mount remote file system mikemrh9 Linux - Networking 6 10-12-2006 11:05 PM
want to mount a remote unix-based file system to fc2, nfs the answer? how? parv Fedora 3 09-23-2004 12:28 PM
How can I nfs mount an NTFS file system on my linux server jj4broder Linux - Networking 4 09-30-2003 02:03 PM
A mounted file system inside an NFS mount paradoxlight Linux - Networking 1 04-24-2002 08:34 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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