How to change the directory and size of AFS cache

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.