[OpenAFS] Cleaning up the client cache

Jeffrey Hutzelman jhutz@cmu.edu
Fri, 16 Jul 2004 13:39:01 -0400


On Friday, July 16, 2004 09:58:06 -0400 Jim Rees <rees@umich.edu> wrote:

>   Is there a chance to delete the cache on demand (something like
>   'fs cleancache') without stopping the cachemanager?
>
> Nothing other than "fs flush" but maybe there should be.

No; fs flush doesn't remove data from the cache; it just clears metadata so 
the client will be forced to contact the fileserver the next time it wants 
that data.

You can generally convince the cache manager to remove data from the cache 
by temporarily setting the cache size down to a very small size.  Of 
course, even that only _frees_ the blocks on disk; it doesn't zero them.