20台客户端的文件服务器,linux – NFS – 客户端上的文件未出现在服务器上

不要立即出现或不出现一段时间?

默认情况下,NFS会在系统内核级别执行目录和文件内容的缓存级别.如果机器1更新文件并且机器2仍然在缓存中获得该文件的副本,则如果机器2尝试访问该文件,则在其缓存到期之前它可能看不到该文件的较新版本.

检查nfs的手册页以获取以下参数:

acregmin=n The minimum time in seconds that attributes of a regu-

lar file should be cached before requesting fresh

information from a server. The default is 3 seconds.

acregmax=n The maximum time in seconds that attributes of a regu-

lar file can be cached before requesting fresh informa-

tion from a server. The default is 60 seconds.

acdirmin=n The minimum time in seconds that attributes of a direc-

tory should be cached before requesting fresh informa-

tion from a server. The default is 30 seconds.

acdirmax=n The maximum time in seconds that attributes of a direc-

tory can be cached before requesting fresh information

from a server. The default is 60 seconds.

actimeo=n Using actimeo sets all of acregmin,acregmax,acdirmin,and acdirmax to the same value. There is no default

value.

noac Disable all forms of attribute caching entirely. This

extracts a significant performance penalty but it

allows two different NFS clients to get reasonable

results when both clients are actively writing to a

common export on the server.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值