LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-13-2006, 05:03 PM   #1
technomeister
Member
 
Registered: Oct 2005
Distribution: Slackware loved and lost, Ubuntu current.
Posts: 34

Rep: Reputation: 15
small problem with NFS


ok, so i've got an NFS share up and running between two systems in my house.

everything works great, except when the NFS server is powered down for the night. this causes most file operations (file > open) on the client to hang. it's obviously still looking for the NFS share and never times out when it can't find it. I can't umount the share either,even with umount -f - it hangs too...

is there any way around this, apart from manually unmounting the share before the server is powered off?

Last edited by technomeister; 12-13-2006 at 05:08 PM.
 
Old 12-13-2006, 05:22 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
What version of NFS are you working with?
Are you mounting with the hard or soft option?
Have you set a timeout value on the mount?
Run the command ' man nfs ' to learn about the above.

Brian
 
Old 12-13-2006, 06:04 PM   #3
technomeister
Member
 
Registered: Oct 2005
Distribution: Slackware loved and lost, Ubuntu current.
Posts: 34

Original Poster
Rep: Reputation: 15
cheers, got it just needed a little pointer.

It was the soft mount option in fstab i was looking for...

soft: If an NFS file operation has a major timeout then report an I/O error to the calling program. The default is to continue retrying NFS file operations indefinitely.

Using that lets me umount the share, although I see it's not recommended, hence isn't the default. none of the timeout options seem to apply though so it'll have to do.
 
Old 12-14-2006, 04:09 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Glad you have it worked out.

Brian
 
  


Reply

Tags
hang, mount, nfs



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 client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
A small problem in C indian Programming 2 09-07-2004 08:56 AM
Small Distro For NFS dudeman456 Linux - General 2 02-04-2004 04:59 PM
this problem is so small destkid Linux - Newbie 3 10-19-2001 09:39 AM

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

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