<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NFS on Support Tools</title><link>https://support.tools/categories/nfs/</link><description>Recent content in NFS on Support Tools</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 11 Jul 2022 23:24:00 -0500</lastBuildDate><atom:link href="https://support.tools/categories/nfs/index.xml" rel="self" type="application/rss+xml"/><item><title>Caching NFS files with cachefilesd</title><link>https://support.tools/post/caching-nfs-files-with-cachefilesd/</link><pubDate>Mon, 11 Jul 2022 23:24:00 -0500</pubDate><guid>https://support.tools/post/caching-nfs-files-with-cachefilesd/</guid><description>&lt;p&gt;The cachefilesd tool is great for caching network filesystems like NFS mounts! In addition to its ease of use, it provides a substantial amount of stats. For more information, see &lt;a href="https://www.kernel.org/doc/Documentation/filesystems/caching/fscache.txt"&gt;https://www.kernel.org/doc/Documentation/filesystems/caching/fscache.txt&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The following steps will help you cache an NFS mount (this will also work for NFS-Ganesha servers):&lt;/p&gt;&#10;&lt;p&gt;Install cachefilesd as a daemon&#10;Make sure /etc/cachefilesd.conf is configured correctly. The file does not need to be edited in most cases! It is just a matter of checking the disk limits.&#10;The cachefilesd daemon should be started.&#10;Mount the network directories using the &amp;ldquo;fsc&amp;rdquo; option. If they have already been mounted, unmount and mount them all. A network mount must have the fsc option enabled to enable file caching.&#10;Check the stats to see if file caching is working.&lt;/p&gt;&#10;&lt;p&gt;In most Linux distributions, it will be almost the same as the example below, which uses Ubuntu 22.04.&lt;/p&gt;</description></item></channel></rss>