服务器 CentOS 6.5 和 Selinux 允许
我的 NFS 服务器在 /etc/exports 中共享
/home/unixmen/ 10.0.0.0/24 (rw,sync,no_root_squash)
Run Code Online (Sandbox Code Playgroud)
客户端运行在另一台 CentOS 6.5 主机上,可以正常挂载。
当我尝试使用 autofs 进行自动挂载时,没有任何效果,谷歌搜索这个问题以找出根本原因,但没有成功。
我想知道我是否在做一些基本的错误..
请参阅 autofs 配置
~]$ cat /etc/auto.master
#/net -hosts
#+auto.master
/misc /etc/auto.misc
Run Code Online (Sandbox Code Playgroud)
和
~]$ cat /etc/auto.misc
unixmen -fstype=nfs 10.0.0.14:/home/unixmen
Run Code Online (Sandbox Code Playgroud)
我确实更改了日志级别以在 /etc/sysconfig/autofs 中进行调试,重新启动 autofs 和日志后说
Jun 27 17:20:00 ganeshh automount[12322]: mounted indirect on /misc with timeout 300, freq 75 seconds
Run Code Online (Sandbox Code Playgroud)
不确定这是否与安装问题有关
最近,我在日志中获取了这些数据
Jun 27 18:11:49 ganeshh automount[12322]: expire_proc: exp_proc = 3063937904 path /misc
Jun 27 18:11:49 ganeshh automount[12322]: expire_cleanup: got …
Run Code Online (Sandbox Code Playgroud)