Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to change the directory and size of AFS cache

📅 2014-May-03 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

A typical OpenAFS installation uses the /var/cache/openafs directory as a cache for the files and directories you access on the AFS distributed file system. It typically mounts the file system at the local directory named /afs where you can access it as if it existed on your local storage. The commonly used size of the cache is 50MB.

To change any of these 3 parameters, edit the /etc/openafs/cacheinfo file. A typical line in this file is:

/afs:/var/cache/openafs:50000

The first item is the local directory where AFS is mounted, the second is the location of the cache and the third is the size in KB. Change these to any values you want and restart the OpenAFS client for it to take effect:

$ sudo /etc/init.d/openafs-client restart

Tried with: OpenAFS 1.6.7 and Ubuntu 14.04