caching NFS reads (fscache)

gbr

Renowned Member
May 13, 2012
125
2
83
Hi,

I'm doing some testing with fscache and cachefilesd. Everything seems to be running, but the filesystem is never mounted with the cache enabled:

mount -t nfsv4 192.168.50.100:/volume1/Storage tmp -o fsc

I do have run=yes = /etc/default/cachefilesd

/proc/fs/nfsfs/volumes show FSC as no.

The kernel module is also running fine.

Any ideas why it won;t mount with fscache?

Gerald
 
did you check the cachefilesd.conf , is the caching directory defined?

Yup. If I look inside the directory, all the correct subdirs are created

root@proxmox-0:/var/cache/fscache# ls -l
total 24
drwx------ 2 root root 4096 Jun 11 11:57 cache
drwx------ 2 root root 4096 Jun 11 11:57 graveyard
drwx------ 2 root root 16384 Jun 11 11:55 lost+found
root@proxmox-0:/var/cache/fscache#