Networking Forums

Networking Forums > Computer Networking > Linux Networking > Linux NFS fsync problems

Reply
Thread Tools Display Modes

Linux NFS fsync problems

 
 
byaarov@yahoo.com
Guest
Posts: n/a

 
      04-30-2008, 08:18 PM
Hi,
I have an NFS mount from a linux client to a linux NFS server using a
soft mount.

I have a program that is writing to a file on that share, correctly
checking for return values and after each write calls fsync. It also
logs each message with a unique increasing transaction ID.

When I reboot my NFS server, my client application does not see any
error and fsync continues to return success. When the NFS server
comes back up, the writes keep going through, but all the writes that
were issued while the NFS server was down is lost.

How do I detect that the writes are actually NOT succeeding?

 
Reply With Quote
 
 
 
 
h.stroph
Guest
Posts: n/a

 
      04-30-2008, 08:36 PM
In news:efd6663a-8305-40ef-a5d5-(E-Mail Removed),
(E-Mail Removed) <(E-Mail Removed)> typed:

> I have an NFS mount from a linux client to a linux NFS server using a
> soft mount.
>
> I have a program that is writing to a file on that share, correctly
> checking for return values ....
>
> When I reboot my NFS server, my client application does not see any
> error and fsync continues to return success. When the NFS server
> comes back up, the writes keep going through, but all the writes that
> were issued while the NFS server was down is lost.


Obviously, the program that is "correctly checking for return values" isn't.


 
Reply With Quote
 
byaarov@yahoo.com
Guest
Posts: n/a

 
      04-30-2008, 10:31 PM
On Apr 30, 1:36 pm, "h.stroph" <m...@privacy.net> wrote:
> Innews:efd6663a-8305-40ef-a5d5-(E-Mail Removed),
> byaa...@yahoo.com <byaa...@yahoo.com> typed:
>
> > I have an NFS mount from a linux client to a linux NFS server using a
> > soft mount.

>
> > I have a program that is writing to a file on that share, correctly
> > checking for return values ....

>
> > When I reboot my NFS server, my client application does not see any
> > error and fsync continues to return success. When the NFS server
> > comes back up, the writes keep going through, but all the writes that
> > were issued while the NFS server was down is lost.

>
> Obviously, the program that is "correctly checking for return values" isn't.


No, it is, since it behaves correctly against other systems, like a
NetApp. It's a pretty simple program that does a pwrite and an fsync.
 
Reply With Quote
 
h.stroph
Guest
Posts: n/a

 
      04-30-2008, 10:55 PM
In news:96f0543f-cdd0-4606-b586-(E-Mail Removed),
(E-Mail Removed) <(E-Mail Removed)> typed:

>>> I have a program that is writing to a file on that share, correctly
>>> checking for return values ....

>>
>>> When I reboot my NFS server, my client application does not see any
>>> error and fsync continues to return success. When the NFS server
>>> comes back up, the writes keep going through, but all the writes
>>> that were issued while the NFS server was down is lost.

>>
>> Obviously, the program that is "correctly checking for return
>> values" isn't.

>
> No, it is, since it behaves correctly against other systems, ...


Ah, that's why it's telling you that the NFS writes are successful when the
NFS server is down ... you're using a different definition of the concept
"correctly checking."


 
Reply With Quote
 
byaarov@yahoo.com
Guest
Posts: n/a

 
      05-01-2008, 12:14 AM
On Apr 30, 3:55 pm, "h.stroph" <m...@privacy.net> wrote:
> Innews:96f0543f-cdd0-4606-b586-(E-Mail Removed),
> byaa...@yahoo.com <byaa...@yahoo.com> typed:
>
> >>> I have a program that is writing to a file on that share, correctly
> >>> checking for return values ....

>
> >>> When I reboot my NFS server, my client application does not see any
> >>> error and fsync continues to return success. When the NFS server
> >>> comes back up, the writes keep going through, but all the writes
> >>> that were issued while the NFS server was down is lost.

>
> >> Obviously, the program that is "correctly checking for return
> >> values" isn't.

>
> > No, it is, since it behaves correctly against other systems, ...

>
> Ah, that's why it's telling you that the NFS writes are successful when the
> NFS server is down ... you're using a different definition of the concept
> "correctly checking."


Apparently this is a known issue in the Linux NFS implementation...
Thanks for the hep.
 
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
Problems with VPN over NAT / Linux 2.6 John Fjoldstad Linux Networking 1 03-29-2006 01:47 PM
Linux NIS Problems Owen Funkhouser Linux Networking 1 09-15-2005 11:58 PM
Linux-Wlan Problems Michael Heath Linux Networking 0 12-13-2003 05:46 AM
linux-wlan problems! hosk Linux Networking 0 10-03-2003 02:12 AM
Linux wlan-ng configuration problems (LINUX) matty-x Wireless Internet 2 09-05-2003 09:18 AM



1 2 3 4 5 6 7 8 9 10 11