LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-14-2007, 03:28 PM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Rep: Reputation: 32
NFS: not recovering from dropped connections


Hi all,

I customarily mount several (W)LAN NFS shares on my laptop running Ubuntu (7.10). I try to remember to manually dismount them when I take the laptop off the LAN, but sometimes I forgot, or the cable falls out, or the wireless connections is momentarily dropped; in such cases, I find it virtually impossible to remount the shares: I try restarting NFS, portmapper, networking, restarting X, anything else I can think of to no avail. Likewise nautilus hangs and the open file dialogs in my apps don't work (probably because I have the NFS mounts bookmarked in nautilus). The only remedy is to reboot.

I seem to recall earlier versions of Ubuntu being more forgiving about lost NFS mounts, but that is perhaps another matter.

In any case:

Is there a way of mounting NFS shares in a more robust way? I usually just run it like mount host:/some/export mountpoint without any options.

Is there some specific way of restarting NFS that I should know of?

Alternately, is there an alternative to NFS which would be better at handling this kind of situation? (My shares are on a Fedora 8 box).

Thanks.

Last edited by Kropotkin; 12-14-2007 at 03:31 PM.
 
Old 12-14-2007, 03:56 PM   #2
owenjh
Member
 
Registered: Sep 2007
Distribution: Fedora / Slackware
Posts: 46

Rep: Reputation: 15
SSHFS is a pretty simple setup, all you need to do is have SSH running on one box & sshfs + fuse on the other. Once your connections been dropped try using umount to unmount the directory. Sometimes I forget to unmount my sda1 thumbdrive before I pull it out and have to manually do:
Code:
umount /mnt/sda1
before it will let me mount it again.

Hope this helps,


Owen.
 
Old 12-15-2007, 08:00 PM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Original Poster
Rep: Reputation: 32
OK, will give it a try. I found this in the Ubuntu wiki, SSHFS, and it was particulary helpful in setting it up.

Thanks.
 
Old 12-17-2007, 08:21 AM   #4
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
My experience with NFS shares is the same as yours. . .when it flakes, it just totally hoses. I've not found a way around it other than restarting the client.
 
Old 12-19-2007, 08:51 PM   #5
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Original Poster
Rep: Reputation: 32
In my experience it happens particularly when either a nautilus window is displaying a share or an app has opened a file on one. There must be some subsystem, like maybe udev, which crashes when this happens.
 
Old 01-10-2008, 01:15 PM   #6
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Original Poster
Rep: Reputation: 32
soft mount

Here is a partial fix:

Mounting an NFS Volume

Note in particular the section on hard mount vs soft mount. Mounting an nfs share with the soft option may solve some of these problems.
 
  


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
Asterisk dropped in 10.3? Dox Systems - Brian SUSE / openSUSE 0 10-24-2007 09:29 AM
Dropped connections... Unr3a164 Linux - Networking 0 04-21-2007 12:16 AM
ssh and nfs connections refused by Linux host running RedHat 9.0 and having 2 NIC erinduffy Linux - Networking 1 01-21-2005 11:13 AM
Dropped connections TrulyTessa Linux - Networking 20 12-03-2004 11:33 AM
Forwarded Connections Dropped codedv Linux - Networking 0 08-28-2004 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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