The easiest way to flush a cache is, as root, to:
fs setca 1
fs setca 0

The first will try to reduce the size of the cache to 1 block. This
won't literally happen, but it'll likely go down below 100.

The latter will set your cache size back to the default set in the
cacheinfo file.

If that doesn't work, you will have to reboot.  The best way to clean
the cache out completely is to remove the file
/usr/vice/cache/CacheItems and reboot.

Esther 
----------------------------------------------------------------
  [EMAIL PROTECTED]     Esther Filderman   [EMAIL PROTECTED]                   
         Senior Systems Mangler & Iron Chef AFS
             Pittsburgh Supercomputing Center


On Sun, 31 Oct 2004 12:40:10 -0500, Derek T. Yarnell <[EMAIL PROTECTED]> wrote:
> I have had a few machines that have rebooted unexpectedly, power loss.
> They now have afs client caches that are corrupted. Rebooting is not
> really a good option, is there a way I can flush them fully?
> 
> --
> Derek T. Yarnell
> UNIX System Administrator
> Computer Science Department
> University of Maryland
> _______________________________________________
> OpenAFS-info mailing list
> [EMAIL PROTECTED]
> https://lists.openafs.org/mailman/listinfo/openafs-info
>
_______________________________________________
OpenAFS-info mailing list
[EMAIL PROTECTED]
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to