LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-28-2007, 03:14 AM   #1
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, grml
Posts: 210

Rep: Reputation: 33
Robust NFS file handles


Hi, when i try to access a file via NFS and the network interface shuts down,
while accessing this file, my process blocks.

After starting up the network again, my process seems to keep on reading where it stopped.

Are there any drawbacks? How much time can the network shutdown take until problems occure (ie. TCP connections with Keep Alive can be idle for about 2hrs and a few minutes)?

Are there some dependencies on mount flags? I use:
Code:
/etc/fstab:
HOST:/vol   /mnt/dir   nfs  defaults 0 0
 
Old 03-28-2007, 09:59 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 64
I don't see any issue that may arise, nor have I heard of any.

The only place I could see this happening, is if you're on a really weak wireless or bluetooth network, or if the resident sysadmin doesn't like your network activity and decides to blockade you from LAN access. In wires I trust.

What sort of problems are you thinking that may happen if the connection gets terminated?
 
Old 03-29-2007, 06:36 AM   #3
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, grml
Posts: 210

Original Poster
Rep: Reputation: 33
The machines are in a live and productive environment. We want to do some maintenance work on the NFS server and need to shut it down. The server will not be available for a few minutes.

This can happen when the process on the slave host is accessing a file on the NFS server. So the question is actually:

Will the process always block if the NFS mount is not available?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How robust is LFS? Trio3b Linux From Scratch 2 06-15-2006 07:47 PM
Open file handles - identifying locks KimVette Linux - General 2 09-24-2005 11:50 AM
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 05:33 AM
Not Enough File Handles Jaqflash Mandriva 4 03-08-2005 05:30 PM
nfs a file shares ok via file mngr but not command line. Suse 9.1 acummings Linux - Networking 2 10-09-2004 02:23 PM


All times are GMT -5. The time now is 05:15 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
Open Source Consulting | Domain Registration