All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Egli <stefan.egli@gmail.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: linux-nfs <linux-nfs@vger.kernel.org>
Subject: Re: NFS v3 cached directory content out of sync
Date: Fri, 21 Aug 2009 21:08:01 +0200	[thread overview]
Message-ID: <d4098e2f0908211208j55dee16fy146ddb8de81d8722@mail.gmail.com> (raw)
In-Reply-To: <1250880591.27154.18.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>

Hi Trond,

> It sounds like a bug. You don't mention which client you are using.

from uname:
Linux (Ubuntu) 2.6.24-24-generic #1 SMP Tue Jun 30 19:54:36 UTC 2009
x86_64 GNU/Linux

from mount:
type nfs (ro,tcp,rsize=3D8192,wsize=3D8192,nfsvers=3D3,addr=3D192.168.X=
X.YY)

> You can tune the amount of time the client caches information by usin=
g
> the 'ac*' mount options. In this case, you will want to adjust the
> values of 'acdirmin' and 'acdirmax', probably setting them to zero.
>
> 'man 5 nfs' should provide you with more information.

Ok, so setting acdirmin=3D0 and acdirmax=3D0 would mean no directory
content caching, right?

>> =A0Question 4: If we'd somehow manually detected such a directory
>> content inconsistency - would there be something like a 'hey NFS
>> client, flush all NFS caches NOW' thing?
>
> No.

unmount / mount would - but that's obviously not feasible. bugger
there's nothing for that...

>> =A0Question 5: any of this related to commit 37d9d76d8b3a2ac5817e1fa=
3263cfe
>> 0fdb439e51: NFS: flush cached directory information slightly more re=
adily. ?
>
> You client should be seeing mtime changes when you are creating new
> files, so it shouldn't need to look at the ctime.
>
> The only time when ctime changes are relevant are if you use 'rsync' =
to
> copy the files without specifying --omit-dir-times.
> IOW: if something is explicitly setting the mtime on the directory.

Would have to check if that applies in our case. We're doing
backup/restore from tivoli (tsm) - maybe that guy is to be blamed
for not correctly updating mtime/ctimes ?

Cheers,
Stefan

  parent reply	other threads:[~2009-08-21 19:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-21 18:22 NFS v3 cached directory content out of sync Stefan Egli
     [not found] ` <d4098e2f0908211122y5d024dd1sd2f80356749315cc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-21 18:49   ` Trond Myklebust
     [not found]     ` <1250880591.27154.18.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-08-21 19:08       ` Stefan Egli [this message]
     [not found]         ` <d4098e2f0908211208j55dee16fy146ddb8de81d8722-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-21 19:09           ` Stefan Egli
2009-08-21 19:15           ` Simon Kirby
2009-08-22 17:36             ` Trond Myklebust
2009-08-22 17:38           ` Trond Myklebust
     [not found]             ` <1250962724.8143.29.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-08-22 23:28               ` Stefan Egli
     [not found]                 ` <d4098e2f0908240332k55ff2789r9aaa17cb5cd99cdf@mail.gmail.com>
     [not found]                   ` <d4098e2f0908240332k55ff2789r9aaa17cb5cd99cdf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-24 12:11                     ` Trond Myklebust
     [not found]                       ` <1251115893.6325.23.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-08-25 16:01                         ` Stefan Egli
     [not found]                           ` <d4098e2f0908250901y359e51cewb1e22e7193922c52-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-25 19:00                             ` Trond Myklebust
     [not found]                               ` <1251226809.25372.29.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-08-25 19:06                                 ` Stefan Egli
     [not found]                                   ` <d4098e2f0908251206o34590902u9a69aed32142d67e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-25 19:12                                     ` Trond Myklebust
     [not found]                                       ` <1251227539.25372.35.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-08-25 19:19                                         ` Stefan Egli
     [not found]                                           ` <d4098e2f0908251219w42340c9ak4538a22f8d7391b6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-25 19:25                                             ` Trond Myklebust
     [not found]                                               ` <1251228350.25372.36.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-08-25 19:34                                                 ` Chuck Lever
2009-08-25 19:45                                                   ` Stefan Egli
     [not found]                                                     ` <d4098e2f0908251245y4ed4a93bycf1a8cf902b18d84-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-25 19:50                                                       ` Trond Myklebust
2009-08-25 19:55                                                       ` Chuck Lever
2009-08-26 16:12                                                         ` Stefan Egli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d4098e2f0908211208j55dee16fy146ddb8de81d8722@mail.gmail.com \
    --to=stefan.egli@gmail.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.