[Linux-cachefs] Caching NFS4 not working?

Ask Bjørn Hansen ask at develooper.com
Fri Mar 2 00:30:08 UTC 2007


Hi,

I'm trying to get cachefilesd working on a FC6 system (with all  
updates installed).   The server is also running FC6.

I did the following (sorta -- puppet did some of it for me, of course)

yum -y install cachefilesd
lvcreate -n fscache -L1G vg0
mkfs.ext3  /dev/vg0/fscache
tune2fs -o user_xattr /dev/vg0/fscache

echo /dev/vg0/fscache  /var/fscache   ext3 defaults 0 2 >> /etc/fstab
echo nfs.la.sol:/home        /home   nfs4    rw,intr,fsc     0 2 >> / 
etc/fstab

chkconfig --level 345  cachefilesd  on
shutdown -r now

after rebooting I cat a file from an NFS mounted directory to /dev/null

# cat ~ask/test.dd > /dev/null

but the /var/fscache directory stays empty.

# ls -l /var/fscache
total 16
drwx------ 2 root root 16384 Mar  1 08:19 lost+found


[root at prod3 fscache]# mount | grep -E 'cache|home'
/dev/mapper/vg0-fscache on /var/fscache type ext3 (rw)
nfs.la.sol:/home on /home type nfs4 (rw,intr,addr=10.50.0.30)

I added "debug 3" to cachefilesd.conf, but I don't see any debug  
output anywhere.

I did notice the following from `dmesg` though (I am mounting two  
filesystems from the NFS server).

mount.nfs4[1645]: segfault at 0000555555554000 rip 00002aaaaad3afb4  
rsp 00007fff1661f108 error 7
mount.nfs4[1650]: segfault at 0000555555554000 rip 00002aaaaad3afb4  
rsp 00007fff4083d328 error 7

If I unmount and mount again, I don't see the segfault message.

  # grep -v ^\# /etc/cachefilesd.conf
dir /var/fscache
debug 3

Any ideas?


  - ask

-- 
http://develooper.com/ - http://askask.com/





More information about the Linux-cachefs mailing list