error handling when accessing NFS files
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > error handling when accessing NFS files




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    error handling when accessing NFS files  
Ivan Novick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-07 12:17 AM

Hi,

I am writing an app that requires numerous NFS file access operations.

It seems that some small percantage of the time file operations, such
as open file, will fail under heavy load conditions on the NFS
server.  The adhoc solution I have is to wait and retry and then the
file operation succeeds.  This seems really bad.

Does anyone know of a clean way to access NFS files and handle the
condition where the operation fails intermittantly, other than the
wait and try again solution?  Or perhaps to handle the error as a NFS
error and not as a file is not present error?

Thank you so much for any ideas,

Ivan Novick
http://www.0x4849.net






[ Post a follow-up to this message ]



    Re: error handling when accessing NFS files  
Logan Shaw


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-07 06:19 AM

Ivan Novick wrote:
> I am writing an app that requires numerous NFS file access operations.
>
> It seems that some small percantage of the time file operations, such
> as open file, will fail under heavy load conditions on the NFS
> server.  The adhoc solution I have is to wait and retry and then the
> file operation succeeds.  This seems really bad.

It sounds like either (a) you've encountered a bug, or (b) your NFS
filesystems are mounted with the "soft" option.  If it's (b), try
mounting with "hard" instead.

- Logan





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:10 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register