All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Data coherency trouble with multiple clients, on2.6.14-rc5
@ 2005-10-26 15:27 Lever, Charles
  2005-10-26 16:50 ` Trond Myklebust
  0 siblings, 1 reply; 15+ messages in thread
From: Lever, Charles @ 2005-10-26 15:27 UTC (permalink / raw)
  To: Trond Myklebust, Charles Duffy; +Cc: nfs

> > The client mount options are: =
noac,nocto,sync,hard,intr,rw,nfsvers=3D3
> > The server exports flags are:=20
> (rw,no_root_squash,sync,no_wdelay,insecure)
> >=20
> > Various combinations of the above mount options make no difference.
> > I've also tried with a 2.6.14-rc5 server, and the problem persists.
>=20
> It sounds like you are really looking for the O_DIRECT (i.e. uncached)
> file I/O mode.

i agree that O_DIRECT is the right solution.  however, even with "noac"
i would expect mr. duffy's workload to behave correctly most of the
time.  sounds like he is able to make it fail very easily.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: Data coherency trouble with multiple clients on2.6.14-rc5
@ 2005-11-07 16:47 Lever, Charles
  2005-11-07 16:52 ` Peter Staubach
  0 siblings, 1 reply; 15+ messages in thread
From: Lever, Charles @ 2005-11-07 16:47 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: nfs

> On Mon, 2005-11-07 at 08:08 -0800, Lever, Charles wrote:
>=20
> > in the case of "noac", OTW writes are always synchronous.  thus you
> > should never have the problem where concurrent async writes=20
> will obscure
> > server-side changes on "noac" mounts.
>=20
> However reads are not synchronous, nor are they ordered. You have no
> guarantee that the RPC READ call that filled the first page=20
> you read was
> handled by the server before the read that filled the next page.

yes, but the client can make use of WCC in the case where it's own
updates are always synchronous, right?


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Data coherency trouble with multiple clients, on 2.6.14-rc5
@ 2005-10-26  6:01 Charles Duffy
  2005-10-26  6:23 ` Trond Myklebust
  0 siblings, 1 reply; 15+ messages in thread
From: Charles Duffy @ 2005-10-26  6:01 UTC (permalink / raw)
  To: nfs

Hi all,

I'm hoping someone can shed some light on this problem I'm having.

I have 2 NFS client machines (CentOS 4, kernel 2.6.14-rc5+latest 'NFS_ALL'=
 patch, nfsutils 1.0.6) who each mount the same export from an NFS server (=
WBEL3, kernel 2.4.21-20, nfsutils 1.0.6).

These client machines are supposed to run an in-house database application=
 - multiple processes on different clients often have the same datafile op=
en simultaneously (via NFS).

Previously, we had these client machines running 2.2.21 kernels. The old (=
pre-CTO) behaviour would see writes from any of the clients becoming immed=
iately 'visible' in any of the others. This is no longer the case, even wi=
th 'nocto' specified as a mount option.

Currently, if a process on client1 has the file open while it is written t=
o by another process (on client2), the changes made to the file are never r=
eflected in the data available to the process on client1 unless:

a) client1's NFS filesystem is unmounted and re-mounted
b) The file is 'touched' on the server or on client2 after both processes h=
ave closed the file
c) The process on client1 writes to the file (note 'touching' the file on c=
lient1 has no effect, either while or after the process has the file open)=
.

It doesn't matter if both processes subsequently close the file and exit, t=
hen re-open the file from scratch - the discrepancy remains until either (=
a), (b) or (c) occurs. Client1 and client2 are identical systems, and the p=
roblem works both ways. In the event of (c), the previous write becomes vi=
sible to client1, but the write by client1 is not visible to client2.

'stat' run on the datafile from either client always gives the same output=
.

I've also tried adding O_SYNC to the flags in the call to 'open()' in the a=
pplication itself. Makes no difference.=C2=A0 fsync()ing after every write=
 similarly makes no difference to the problem.

This problem appears similar to that which the linux-2.6.14-01-fix_attrcac=
he patch was posted in response to, but it can't be reproduced with the pr=
ocedure outlined in that post.

The client mount options are: noac,nocto,sync,hard,intr,rw,nfsvers=3D3
The server exports flags are: (rw,no_root_squash,sync,no_wdelay,insecure)

Various combinations of the above mount options make no difference.
I've also tried with a 2.6.14-rc5 server, and the problem persists.

Thanks,



---
Charles Duffy
Systems Administrator
Mail Call Couriers





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-11-07 16:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-26 15:27 Data coherency trouble with multiple clients, on2.6.14-rc5 Lever, Charles
2005-10-26 16:50 ` Trond Myklebust
2005-10-26 18:45   ` Peter Staubach
2005-10-26 19:08     ` Trond Myklebust
2005-10-26 19:53       ` Peter Staubach
2005-10-26 21:05         ` Trond Myklebust
2005-10-26 21:22           ` Peter Staubach
2005-10-26 21:57             ` Trond Myklebust
2005-10-27 12:25               ` Peter Staubach
2005-10-27 12:53                 ` Trond Myklebust
2005-10-27 14:25               ` Calum Mackay
2005-10-27 15:33                 ` Trond Myklebust
  -- strict thread matches above, loose matches on Subject: below --
2005-11-07 16:47 Data coherency trouble with multiple clients on2.6.14-rc5 Lever, Charles
2005-11-07 16:52 ` Peter Staubach
2005-10-26  6:01 Data coherency trouble with multiple clients, on 2.6.14-rc5 Charles Duffy
2005-10-26  6:23 ` Trond Myklebust
2005-10-26  7:25   ` Data coherency trouble with multiple clients, on2.6.14-rc5 Charles Duffy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.