[OpenAFS] Re: About cache persistence over reboot ( again )

Andrew Deason adeason@sinenomine.net
Thu, 8 Aug 2013 17:24:31 -0500


On Thu, 8 Aug 2013 23:55:22 +0200
nicolas prochazka <prochazka.nicolas@gmail.com> wrote:

> 1 - Boot, afs cache is filling with data ( ~ 260M , network bandwith
> show me ~ 260M also ).
> 2 - shutdown
> 3 - boot, all data seems to be redownload from server ( network
> bandwitch show me ~ 260 M)

Keep in mind: the openafs client will ignore cached data if it was
stored in the cache "soon" before shutting down. If you're running a
test like this and you're rebooting immediately after reading data, that
can be the cause; just wait a few minutes before rebooting if you're
running tests.

However, it does look like that may not be the reason here:

> cat /etc/openafs/cacheinfo
> /afs:/var/cache/openafs:474276
> 
> afsd -afsdb -dynroot -verbose -debug
> 
> afsd client, debug msg :
[...]
> doSweepAFSCache: Current directory entry:
>         inode=60113, reclen=32, name='V16847'
> doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16847'
[...]
> afsd: 14821 out of 14821 data cache files found in sweep 1.

According to this, you're only supposed to have 14821 cache files, but
afsd is finding a lot more than that, so it's deleting the extra ones.
Did you change any of the configuration between boots? Do you see these
messages every time you start up afsd? (the "Deleting '/var/cache...'"
messages)

After you start up afsd, does the file /var/cache/openafs/D8/V16847
exist?

-- 
Andrew Deason
adeason@sinenomine.net