[OpenAFS] About cache persistence over reboot ( again )

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


Hello,
Afs Cache must persist after reboot, but it's not the case in my
configuration, i do not know why :
Can someone explain me ?

Server : Linux Gentoo openafs 1.6.5
Client : Linux Gentoo openafs  1.6.5
kernel module 1.6.5


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)

cat /etc/openafs/cacheinfo
/afs:/var/cache/openafs:474276

afsd -afsdb -dynroot -verbose -debug

afsd client, debug msg :

afsd: enabling dynamically allocated vcaches
ParseCacheInfoFile: Opening cache info file
'/etc/openafs/cacheinfo'...
ParseCacheInfoFile: Cache info file successfully parsed:
        cacheMountDir: '/afs'
        cacheBaseDir: '/var/cache/openafs'
        cacheBlocks: 474276
afsd: My home cell is 'private.ndv'
afsd: cacheFiles autotuned to 14821
afsd: dCacheSize autotuned to 7410
afsd: cacheStatEntries autotuned to 11115
SScall(183, 28, 35)=0 SScall(183, 28, 17)=0 afsd: Forking rx listener
daemon.
afsd: Forking rx callback listener.
afsd: Forking rxevent daemon.
SScall(183, 28, 19)=0 afsd: enabling dynamically allocated vcaches
ParseCacheInfoFile: Opening cache info file
'/etc/openafs/cacheinfo'...
ParseCacheInfoFile: Cache info file successfully parsed:
        cacheMountDir: '/afs'
        cacheBaseDir: '/var/cache/openafs'
        cacheBlocks: 474276
afsd: My home cell is 'private.ndv'
afsd: cacheFiles autotuned to 14821
afsd: dCacheSize autotuned to 7410
afsd: cacheStatEntries autotuned to 11115
SScall(183, 28, 35)=0 SScall(183, 28, 17)=0 afsd: Forking rx listener
daemon.
afsd: Forking rx callback listener.
SScall(183, 28, 0)=0 afsd: enabling dynamically allocated vcaches
ParseCacheInfoFile: Opening cache info file
'/etc/openafs/cacheinfo'...
ParseCacheInfoFile: Cache info file successfully parsed:
        cacheMountDir: '/afs'
        cacheBaseDir: '/var/cache/openafs'
        cacheBlocks: 474276
afsd: My home cell is 'private.ndv'
afsd: cacheFiles autotuned to 14821
afsd: dCacheSize autotuned to 7410
afsd: cacheStatEntries autotuned to 11115
SScall(183, 28, 35)=0 SScall(183, 28, 17)=0 afsd: Forking rx listener daemon.
SScall(183, 28, 48)=0 afsd: enabling dynamically allocated vcaches
ParseCacheInfoFile: Opening cache info file '/etc/openafs/cacheinfo'...
ParseCacheInfoFile: Cache info file successfully parsed:
        cacheMountDir: '/afs'
        cacheBaseDir: '/var/cache/openafs'
        cacheBlocks: 474276
afsd: My home cell is 'private.ndv'
afsd: cacheFiles autotuned to 14821
afsd: dCacheSize autotuned to 7410
afsd: cacheStatEntries autotuned to 11115
SScall(183, 28, 35)=0 SScall(183, 28, 17)=0 afsd: Forking rx listener daemon.
afsd: Forking rx callback listener.
afsd: Forking rxevent daemon.
afsd: Forking AFSDB lookup handler.
SScall(183, 28, 36)=0 afsd: Calling AFSOP_CACHEINIT: 11115 stat cache
entries, 14821 optimum cache files, 474276 blocks in the cache, flags
= 0x0, dcache entries 7410
SScall(183, 28, 6)=0 afsd: Sweeping workstation's AFS cache directory.
doSweepAFSCache: Opening cache directory '/var/cache/openafs'
doSweepAFSCache: Current directory entry:
        inode=2, reclen=24, name='.'
doSweepAFSCache: Current directory entry:
        inode=2, reclen=24, name='..'
doSweepAFSCache: Current directory entry:
        inode=11, reclen=32, name='lost+found'
doSweepAFSCache: Current directory entry:
        inode=12, reclen=32, name='CacheItems'
doSweepAFSCache: Current directory entry:
        inode=13, reclen=32, name='VolumeItems'

doSweepAFSCache: Current directory entry:
        inode=7457, reclen=24, name='D0'
doSweepAFSCache: Opening cache directory '/var/cache/openafs/D0'
doSweepAFSCache: Current directory entry:
        inode=7457, reclen=24, name='.'
doSweepAFSCache: Current directory entry:
        inode=2, reclen=24, name='..'
doSweepAFSCache: Current directory entry:
        inode=7458, reclen=24, name='V0'
doSweepAFSCache: Current directory entry:
        inode=7459, reclen=24, name='V1'
doSweepAFSCache: Current directory entry
....................
lot of doSweepAFS
..........
doSweepAFSCache: Current directory entry:
        inode=60113, reclen=32, name='V16847'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16847'
doSweepAFSCache: Current directory entry:
        inode=60114, reclen=32, name='V16848'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16848'
doSweepAFSCache: Current directory entry:
        inode=60115, reclen=32, name='V16849'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16849'
doSweepAFSCache: Current directory entry:
        inode=60116, reclen=32, name='V16850'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16850'
doSweepAFSCache: Current directory entry:
        inode=60117, reclen=32, name='V16851'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16851'
doSweepAFSCache: Current directory entry:
        inode=60118, reclen=32, name='V16852'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16852'
doSweepAFSCache: Current directory entry:
        inode=60119, reclen=32, name='V16853'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16853'
doSweepAFSCache: Closing cache directory.
doSweepAFSCache: Closing cache directory.
afsd: 14821 out of 14821 data cache files found in sweep 1.
afsd: Calling AFSOP_CACHEINFO: dcache file is '/var/cache/openafs/CacheItems'
SScall(183, 28, 7)=0 afsd: Calling AFSOP_CELLINFO: cell info file is
'/var/cache/openafs/CellItems'
SScall(183, 28, 34)=0 afsd: Enabling dynroot support in kernel.
SScall(183, 28, 31)=0 SScall(183, 28, 29)=0 afsd: Forking AFS daemon.
afsd: Forking Check Server Daemon.
afsd: Forking 4 background daemons.
SScall(183, 28, 2)=0 node=60100, reclen=32, name='V16834'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16834'
doSweepAFSCache: Current directory entry:
        inode=60101, reclen=32, name='V16835'
doSweepAFSCache: Deleting '/var/cache/openafs/D8/V16835'

oSweepAFSCache: Closing cache directory.
doSweepAFSCache: Closing cache directory.
afsd: 14821 out of 14821 data cache files found in sweep 1.
afsd: Calling AFSOP_CACHEINFO: dcache file is '/var/cache/openafs/CacheItems'
SScall(183, 28, 7)=0 afsd: Calling AFSOP_CELLINFO: cell info file is
'/var/cache/openafs/CellItems'
SScall(183, 28, 34)=0 afsd: Enabling dynroot support in kernel.
SScall(183, 28, 31)=0 SScall(183, 28, 29)=0 afsd: Forking AFS daemon.

..............








Best Regards,
Nicolas Prochazka.