3

使用CacheFS优化NFS访问

 2 years ago
source link: https://www.taterli.com/8498/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用CacheFS优化NFS访问

安装,一句话:

apt install cachefilesd

默认没运行,需要使能一下,打开/etc/default/cachefilesd取消RUN=yes的注释,然后重启服务:

systemctl restart cachefilesd

挂载时候添加上参数就可以了.

mount -t nfs4 -o rsize=32768,wsize=32768,intr,hard,proto=tcp,sync,fsc [2602:ffd5:1:1000::1]:/mnt /mnt

怎么知道Cache是否有效,复制文件试试呗,本机剩余空间越大,缓存的能力越强,缓存不到就只能走NFS远程了.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK