[OpenAFS] client cache files clean-up

Jeffrey Hutzelman jhutz@cmu.edu
Fri, 10 May 2002 16:12:20 -0400 (EDT)

On Mon, 6 May 2002, Charles Clancy wrote:

> > Hi everyone i've got an afsclient, that after an unclean umount of
> > /usr/vice doesn't work anymore, afsd starts but doesn't do anything.
> > Could it be the cache files? if yes how can i non-drastically clean
> > them?
> Well, the easiest is of course:
> 	/etc/init.d/afs stop
> 	rm -rf /usr/vice/cache/*
> 	/etc/init.d/afs start

Of course, if you remove just the CacheItems file, it will have
essentially the same effect but take less time.  Once this file is removed
and the cache manager restarted, it will ignore the existing contents of
any V* files, but you won't have to sit around waiting for all those
unlinks and then for afsd to recreate them all.

Also note that the CacheItems file is safe to remove even while the cache
manager is running -- it holds it open all the time, so bad things won't
happen if you remove it.  This is _not_ true of other files in the cache.

-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
   Sr. Research Systems Programmer
   School of Computer Science - Research Computing Facility
   Carnegie Mellon University - Pittsburgh, PA