meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:remotefs:cachefilesd [2024/10/26 19:48] – created niziak | linux:remotefs:cachefilesd [2024/12/03 10:22] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== cachefilesd ====== | ====== cachefilesd ====== | ||
| + | |||
| + | [[https:// | ||
| ===== NFS ===== | ===== NFS ===== | ||
| + | FS cache is not used: | ||
| + | <code bash> | ||
| + | $ cat / | ||
| + | NV SERVER  | ||
| + | v4 c0a84190  | ||
| + | </ | ||
| + | |||
| + | Install FS cache: | ||
| + | <code bash> | ||
| sudo apt install cachefilesd -y | sudo apt install cachefilesd -y | ||
| + | </ | ||
| + | |||
| + | Enable it: | ||
| + | |||
| + | <file bash / | ||
| + | # Defaults for cachefilesd initscript | ||
| + | # sourced by / | ||
| + | |||
| + | # You must uncomment the run=yes line below for cachefilesd to start. | ||
| + | # Before doing so, please read / | ||
| + | # extended user attributes need to be enabled on the cache filesystem. | ||
| + | RUN=yes | ||
| + | |||
| + | # Additional options that are passed to the Daemon. | ||
| + | DAEMON_OPTS="" | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | $ cat / | ||
| + | |||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | Modify mount option for NFS and add '' | ||
| + | |||
| + | ==== issues ==== | ||
| + | |||
| + | === errno 95 (Operation not supported) === | ||
| + | |||
| + | < | ||
| + | About to bind cache | ||
| + | CacheFiles bind failed: errno 95 (Operation not supported) | ||
| + | </ | ||
| + | |||
| + | When ''/ | ||
| + | |||
| + | Workaround1: | ||
| + | |||
| + | No possibility to use '' | ||
| + | |||
| + | <code bash> | ||
| + | zfs create  | ||
| + | zfs create -V 5gb ssdpool/ | ||
| + | mkfs.ext4 / | ||
| + | blkid / | ||
| + | |||
| + | / | ||
| + | </ | ||
| + | |||
| + | <file init / | ||
| + | UUID=1924bc34-6503-40bd-b32f-359191f62c6a  | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||