LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 06-16-2010, 03:40 PM   #1
Hmail
LQ Newbie
 
Registered: May 2007
Posts: 17

Rep: Reputation: 0
System hangs when nfs connection is lost


This is the situation:
I have a server which is located in the basement. The server exports a few directories which I mount on my desktop using NFS. From time to time, the connection gets lost. The server is also not always on. I can't change that part, so I worked out a script which notifies me when it's going down, and when it's back up again. It also mounts everything back.

However.. As soon as I loose the connection, my desktop seems to be gone. KDE doesn't work, but I can use a few applications like Konsole, google-chrome, firefox, stuff like that. But the plasma-desktop around it hangs.

As soon as the connection gets back again, everything works. I have this issue only when my desktop is running while I loose the connection to the server. If it's down when I start my desktop, everything works properly. Unless the server comes alive, the nfs directories are mounted and the connection is lost again.

I'm not really sure if this is a networking case, it could also be KDE related, but I figured this was the most reasonable place to put my topic in.

My hardware:

linux-bbdu:~ # lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 8600 GT] (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
04:00.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

My kernel:
linux-bbdu:~ # uname -r
2.6.31.12-0.2-default

My linux distribution:
linux-bbdu:~ # cat /etc/SuSE-release
openSUSE 11.2 (i586)
VERSION = 11.2

My KDE version:
linux-bbdu:~ # kde4-config --version
Qt: 4.6.3
KDE: 4.3.5 (KDE 4.3.5) "release 0"
kde4-config: 1.0


I hope I gave enough explanation of my problem, and thanks in advance for your answers.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-16-2010, 03:53 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,566

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
Yeah, that happens.

Try mounting with the "bg,soft,intr" options. See "man nfs" for an explanation.

Also try unmounting the shares when they go away. "umount" won't work, and "umount -f" probably won't either, so try "umount -l". Try to stop any processes that are trying to use the mounts first. See the man page for umount for -f and -l.
 
2 members found this post helpful.
Old 06-16-2010, 03:53 PM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
In this situation, it might be best to use automount.,
If a connection is dropped, the mount will auto unmount - and hopefully solve the hanging problem..
 
Old 06-16-2010, 04:05 PM   #4
Hmail
LQ Newbie
 
Registered: May 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
Yeah, that happens.

Try mounting with the "bg,soft,intr" options. See "man nfs" for an explanation.
That seems to work.. I'm not sure it happens every time, but I tried it, and when I unplug the connection from the server, my desktop stays alive. Even when I have applications which use the server running. Thanks!

Quote:
Originally Posted by AlucardZero View Post
Also try unmounting the shares when they go away. "umount" won't work, and "umount -f" probably won't either, so try "umount -l". Try to stop any processes that are trying to use the mounts first. See the man page for umount for -f and -l.
That was my first option, but it didn't work. The script automatically unmounts everything with umount -l, because I couldn't access the directories anymore, and bash would hang if I tried to access them. I'll take a look at ending processes when I have no connection, but then I have to decide in a script which application can live without the connection, even though it tries to open something from the server every now and then, and which application need a connection to stay alive.

But it looks like it's solved now, thanks a lot!


Quote:
Originally Posted by centosboy View Post
In this situation, it might be best to use automount.,
If a connection is dropped, the mount will auto unmount - and hopefully solve the hanging problem..
Isn't that the same as not specifying "noauto" in /etc/fstab? If so, then I already use that.

Last edited by Hmail; 06-16-2010 at 04:07 PM.
 
Old 06-16-2010, 04:41 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,566

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
Not quite; automount (autofs) is a separate program. "noauto" in fstab just prevents it from being mounted at boot.
 
  


Reply

Tags
hangs, kde4, nfs, system


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
Lost connection to MySQL server at 'reading initial communication packet', system err manishsingh4k Linux - Server 8 07-20-2009 07:31 AM
Opensuse 11.1 - System hangs - Keyboard hangs - Mouse works cvrprakash Linux - Desktop 1 04-07-2009 03:12 AM
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
System freezes/hangs on connection to ethernet and wireless neosenate Linux - Laptop and Netbook 6 01-09-2006 06:11 AM


All times are GMT -5. The time now is 11:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration