安装FScache模块
yum -y install cachefilesd
systemctl enable cachefilesd
systemctl start cachefilesd
配置参数
默认配置文件在/etc/cachefilesd.conf,其中第一行是SSD缓存的位置,我因为系统盘是SSD所以没有做任何修改,有兴趣可以研究一下。
# cat /etc/cachefilesd.conf
###############################################################################
#
# Copyright (C) 2006,2010 Red Hat, Inc. All Rights Reserved.
# Written by David Howells (dhowells@redhat.com)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
#
###############################################################################
dir /var/cache/fscache
tag mycache