小编And*_*oth的帖子

使用链式自动挂载挂载主目录

我已经设置了两个使用自动挂载(通过 LDAP)挂载的目录:

在/home目录下配置automount挂载

*   -fstype=bind :/network/srv/home/&
Run Code Online (Sandbox Code Playgroud)

在 /network 目录中的一项

srv    -fstype=nfs4,rw,sec=sys,noatime,hard,intr,proto=tcp,timeo=100,port=2049 myserver:/
Run Code Online (Sandbox Code Playgroud)

当我尝试访问用户的主目录(例如 ls /home/myuser)时,自动挂载失败并显示错误消息:

>> mount: special device /network/srv/home/myuser does not exist
failed to mount /home/myuser
Run Code Online (Sandbox Code Playgroud)

当我使用手动执行“绑定安装”时

mount -o bind /network/srv/home/myuser /home/myuser
Run Code Online (Sandbox Code Playgroud)

触发 /network/srv 的自动挂载,并且 myuser 主目录成功挂载到 /home/myuser。

在尝试挂载 /network/srv/home/myuser 之前如何告诉自动挂载加载 /network/srv 的任何想法?

nfs mount autofs automount

6
推荐指数
1
解决办法
1100
查看次数

标签 统计

autofs ×1

automount ×1

mount ×1

nfs ×1