How to empty cache on stratum 0


Each /var/spool/cvmfs/*/cache directory is using several GB of storage, is there a way to empty those caches?


Yes, there’s more than one way. If you umount /cvmfs/repo and /var/spool/cvmfs/repo/rdonly (where repo is the repository name) you could rm -rf the contents.

Alternatively, you can use cvmfs_talk -p to connect to the cvmfs2 process’ socket and tell it to clean up, e.g.

cvmfs_talk -p /var/spool/cvmfs/repo/cvmfs_io cleanup 0

Of course, the next time files are accessed for that repository, the cache will fill up again. The size of the cache is specified by CVMFS_QUOTA_LIMIT in /etc/cvmfs/repositories.d/repo/client.conf.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.