meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:remotefs:cachefilesd [2024/10/27 12:10] niziaklinux:remotefs:cachefilesd [2024/12/03 10:22] (current) niziak
Line 33: Line 33:
 DAEMON_OPTS="" DAEMON_OPTS=""
 </file> </file>
 +
 +<code bash>
 +$ cat /proc/fs/fscache/stats
 +
 +FS-Cache statistics
 +Cookies: n=0 v=0 vcol=0 voom=0
 +Acquire: n=0 ok=0 oom=0
 +LRU    : n=0 exp=0 rmv=0 drp=0 at=0
 +Invals : n=0
 +Updates: n=0 rsz=0 rsn=0
 +Relinqs: n=0 rtr=0 drop=0
 +NoSpace: nwr=0 ncr=0 cull=0
 +IO     : rd=0 wr=0
 +RdHelp : RA=0 RP=0 WB=0 WBZ=0 rr=0 sr=0
 +RdHelp : ZR=0 sh=0 sk=0
 +RdHelp : DL=0 ds=0 df=0 di=0
 +RdHelp : RD=0 rs=0 rf=0
 +RdHelp : WR=0 ws=0 wf=0
 +</code>
 +
 +Modify mount option for NFS and add ''-o fsc''. Mount it again.
 +
 +==== issues ====
 +
 +=== errno 95 (Operation not supported) ===
 +
 +<code>
 +About to bind cache
 +CacheFiles bind failed: errno 95 (Operation not supported)
 +</code>
 +
 +When ''/var/cache/fscache'' is located on ZFS. See" [[https://github.com/openzfs/zfs/issues/10473|Missing features w/ cachefilesd & zfs-0.8.4 on ubuntu/post 20.04, getting EBADF & EOPNOTSUPP #10473]]
 +
 +Workaround1: put in on different FS.
 +
 +No possibility to use ''tmpfs'' because: [[https://askubuntu.com/questions/1361461/running-cachefilesd-cache-on-ramdisk-tmpfs-for-pxe-nfs-boot|Running cachefilesd cache on ramdisk (tmpfs) for PXE NFS boot]]
 +
 +<code bash>
 +zfs create 
 +zfs create -V 5gb ssdpool/var/cache/fscache
 +mkfs.ext4 /dev/zvol/ssdpool/var/cache/fscache
 +blkid /dev/zvol/ssdpool/var/cache/fscache
 +
 +/dev/zvol/ssdpool/var/cache/fscache: UUID="1924bc34-6503-40bd-b32f-359191f62c6a" BLOCK_SIZE="4096" TYPE="ext4"
 +</code>
 +
 +<file init /etc/fstab>
 +UUID=1924bc34-6503-40bd-b32f-359191f62c6a  /var/cache/fscache ext4 errors=remount-ro,relatime 0       0
 +</file>
 +
 +
 +
 +