【发布时间】:2015-10-06 14:33:31
【问题描述】:
我有以下linux环境配置 机器 1:Samba 服务器
[share]
comment = Data
path = /share
force create mode = 0777
force directory mode = 0777
force user = root
force group = root
writeable = Yes
read only = No
guest ok = Yes
机器 2:安装点到机器 1 共享文件夹,使用 autofs 服务。 auto.app 文件内容:
/store -fstype=cifs,cache=none,forcedirectio,noac ://machine1/share
机器 3:安装点到机器 1 共享文件夹,使用 autofs 服务。 auto.app 文件内容:
/store -fstype=cifs,cache=none,forcedirectio,noac ://machine1/share
我面临的问题是,如果我要更新机器 2 上 /store 文件夹下的文件,则更改需要几秒钟(~5 秒)才能在 /store 文件夹下的机器 3。我希望更改立即在机器 3 上可用。我不关心任何性能影响。
对我来说这似乎是一个缓存问题,但到目前为止我找不到禁用它的方法。到目前为止,我尝试的是传递 cache=none,forcedirectio,noac 参数,但没有成功。
有什么想法吗?
谢谢
【问题讨论】: