Linux NFS fsync problems

This is a discussion on Linux NFS fsync problems within the Linux Networking forums, part of the Linux Forums category; Hi, I have an NFS mount from a linux client to a linux NFS server using a soft mount. I ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-30-2008
byaarov@yahoo.com
 
Posts: n/a
Default Linux NFS fsync problems

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
  #2 (permalink)  
Old 04-30-2008
h.stroph
 
Posts: n/a
Default Re: Linux NFS fsync problems

In news:efd6663a-8305-40ef-a5d5-c12e3c208cc8@m1g2000pre.googlegroups.com,
byaarov@yahoo.com <byaarov@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.


Reply With Quote
  #3 (permalink)  
Old 04-30-2008
byaarov@yahoo.com
 
Posts: n/a
Default Re: Linux NFS fsync problems

On Apr 30, 1:36 pm, "h.stroph" <m...@privacy.net> wrote:
> Innews:efd6663a-8305-40ef-a5d5-c12e3c208cc8@m1g2000pre.googlegroups.com,
> 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
  #4 (permalink)  
Old 04-30-2008
h.stroph
 
Posts: n/a
Default Re: Linux NFS fsync problems

In news:96f0543f-cdd0-4606-b586-6a4f93749dd8@m1g2000pre.googlegroups.com,
byaarov@yahoo.com <byaarov@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."


Reply With Quote
  #5 (permalink)  
Old 05-01-2008
byaarov@yahoo.com
 
Posts: n/a
Default Re: Linux NFS fsync problems

On Apr 30, 3:55 pm, "h.stroph" <m...@privacy.net> wrote:
> Innews:96f0543f-cdd0-4606-b586-6a4f93749dd8@m1g2000pre.googlegroups.com,
> 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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0