Networking Forums

Networking Forums > Computer Networking > Linux Networking > fopen() on existing file on NFS Server fails.

Reply
Thread Tools Display Modes

fopen() on existing file on NFS Server fails.

 
 
Don Bernardo
Guest
Posts: n/a

 
      06-12-2009, 01:06 PM
Hi I really need help:

Following setup:

I have hundreds of process that periodically create a file and I have
an "master" process that tries to read them.
Each of those files has the same name but they are located in a folder
where only their process writes to. After being read, the file gets
deleted and recreated after half an hour or so. Meanwhile the master
process periodically (5-10s) checks if the file exists (if fopen!
=NULL), reads and deletes… an infinite loop.

Now I have the problem that the master process sometimes can't read
one or two of the files even though they exist. I can see them, open
and store them. After opening and storing a file with an editor (vi)
the master process suddenly can read it.

I double checked the file permissions, I do a "sync" of the NFS before
each attempt to read it. I made sure that I release all filepointers
when I don't need them any more.
I can't see a pattern which file is not read-/accessible, sometimes it
was created from process 567 sometimses 345… totally random.

OS is RedHat 5 and I use the Sun Grid Engine for the processes that
create the file. The Fileserver is apparently connected with fibre
optics and is not in heavy use. Also the files are txt files with a
couple of lines.

I was running the same code before our system has been updated from
REdhat 4.7(?) to 5.0 and it was running fine. What else has been
changed is not communicated.

Any ideas?

Cheers
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server 2008 R2 file share access fails under heavy load PaulChavez Windows Networking 3 10-31-2009 11:33 PM
RIS file copy fails afte 3rd pc starts build Johan Windows Networking 0 11-13-2006 06:20 AM
Wireless network fails during a long file transfer Robert M Jones Wireless Networks 5 07-27-2006 06:41 AM
File/resource sharing problem over existing wireless network Clive Wireless Networks 19 12-13-2004 08:30 PM
Network access fails in RH9 with large file transfers Scott Maxell Linux Networking 2 10-21-2003 02:16 AM



1 2 3 4 5 6 7 8 9 10 11