NFS consistency problem?

Trond Myklebust trond.myklebust at fys.uio.no
Mon May 7 10:54:54 EDT 2007


On Mon, 2007-05-07 at 16:17 +0200, Jonathan Schmitt wrote:
> Hi Denis,
> 
> thanks for your suggestion.
> 
> Am Montag, 7. Mai 2007 15:19 schrieb Charland, Denis:
> > > I'm using nfs4 with gss/kerberos authentification and I'm
> > > having a consistency
> > > (cache coherency?) problem.
> 
> > Try to export your filesystem using "sync" instead of "async" to see if it
> > makes a difference.
> 
> I tried and now my options are:
> sync,rw,fsid=0,insecure,no_subtree_check,anonuid=65534,anongid=65534
> 
> (afterwards exportfs -r and a remount at the client side)
> 
> It still happens:
> 
> I log onto computer A as user X, onto computer B as the same user X. Now, at 
> the bash prompt I type
>   echo A >> file.txt
> on computer A, afterwards
>   echo B >> file.txt
> on computer B and so on.
> 
> cat file.txt gives me
>   A
>   A
>   A

That should normally work as long as nobody is keeping the file open on
client A while client B is writing. Which kernel revision are your
clients using?

Trond



More information about the NFSv4 mailing list