I have some diskless machines and they mount a disk through NFS4. I want the machines to maintain a cache of specific files in their own memory. The machines don't modify the files and only read them occasionally but I need to change the list of cached files sometimes. How can I achieve it?
Nfs – in-memory-cache of specific files from NFS
cachenfs
Best Answer
You can't specify which files are cached by the cachefilesd, it simply caches the files used by the system. You can tune how the cache works by setting parameters in cachefilesd.conf but basically all you get to do is turn it on using the
fsc
option to mount and the system does the rest.Red Hat have a good write up on it.