Вот моя установка: одна машина с NFS-сервером, две клиентские машины с NFS.
Клиентские машины записывают файлы в точку монтирования NFS, но иногда файлы не появляются на машине с NFS-сервером или других клиентских машинах ...
Я абсолютно озадачен этим ... любая помощь будет принята с благодарностью!
Не появляются сразу или не появляются какое-то время?
NFS по умолчанию выполняет кэширование содержимого каталогов и файлов на уровне ядра системы. Если первая машина обновляет файл, а вторая машина все еще имеет копию файла в кеше, то, если вторая машина пытается получить доступ к файлу, она может не увидеть более новую версию файла, пока не истечет срок действия ее кеша.
Проверьте страницу руководства для 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.