LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-13-2006, 04:42 PM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
Broken NFS Links: Server seems laggy


hi there,

am playing with NFS and I have set it such that it links on boot. I realise when the server gets disconnected, and the client try to connect to the NFS link, it kind of "hang". Because i use the 'hard' option to mount, it will resume once server is back up.

But what's the best way to mount it such that it won't hang, and the server can carry on as per normal. All I need to do is have my script to check if a certain file is in that NFS directory. if it is not there (link broken), link user to a "server down" page or something.

Oh, I am doing NFS for a web server-file server.

thanks!
 
Old 07-13-2006, 07:14 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Pretty much, you can't do this with NFS. Once the NFS servers dies/disconnects, there will be I/O interruption on the client. If you did a 'df', your listing will be stuck/hung at the point where it's trying to get the sizes of that NFS mount point. At this point, what you can do is either wait until the server comes back online, or just umount it. If it doesn't unmount because it spits out "device busy", you can do a lazy unmount.

There are more tricks to this too.

-twantrd
 
Old 07-13-2006, 09:46 PM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by twantrd
Pretty much, you can't do this with NFS. Once the NFS servers dies/disconnects, there will be I/O interruption on the client. If you did a 'df', your listing will be stuck/hung at the point where it's trying to get the sizes of that NFS mount point. At this point, what you can do is either wait until the server comes back online, or just umount it. If it doesn't unmount because it spits out "device busy", you can do a lazy unmount.

There are more tricks to this too.

-twantrd

Tricks? what tricks

What's lazy unmount?

Because I was thinking i have a few web application on this web server, but only one uses the NFS. so if the NFS link do go down and all services get affected due to the lag, pity!
 
Old 07-14-2006, 02:21 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
A short momentary lag shouldn't affect you that much. However, if yours is unacceptable, I would suggest tuning NFS a bit more. Are you nfs mounting using version 3? Have you tried changing the rsize and wsize? Those are just a head start. Those are tons of information on the web regarding NFS tuning.

Quote:
What's lazy unmount?
'man umount'. That is your friend .

-twantrd
 
  


Reply


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
script to fix broken links in website disorderly Linux - General 2 05-19-2006 09:06 AM
Broken simbolic links ale_murakami Amigo 2 05-20-2005 06:06 AM
Broken links? danthehat Linux - Newbie 4 02-03-2005 03:06 PM
Konqueror and broken links lachlan Linux - Software 0 07-29-2002 09:23 PM
Micro$oft = broken links sewer_monkey LQ Suggestions & Feedback 8 06-19-2002 02:46 PM


All times are GMT -5. The time now is 11:16 PM.

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