NFS 客户端可以挂载,但无法自动挂载

NFS 客户端可以挂载,但无法自动挂载

我有/etc/auto.master:

/cpy/users  /etc/auto.users --timeout=90

我有/etc/auto.users:

*   -fstype=nfs4,rw,proto=tcp,port=2049   server:/users/&

在“普通”的 CentOS 5 机器上,这些运行良好。在我使用“yum groupinstall core”和一些小调整构建的虚拟机上,当用户自己登录时,我得到了这个:

Apr 14 09:33:29 testing automount[5240]: handle_packet: type = 3
Apr 14 09:33:29 testing automount[5240]: handle_packet_missing_indirect: token 136, name myself, request pid 5249
Apr 14 09:33:29 testing automount[5240]: attempting to mount entry /cpy/users/myself
Apr 14 09:33:29 testing automount[5240]: lookup_mount: lookup(program): looking up myself
Apr 14 09:33:29 testing automount[5240]: lookup(program): lookup for myself failed
Apr 14 09:33:29 testing automount[5240]: ioctl_send_fail: token = 136
Apr 14 09:33:29 testing automount[5240]: handle_packet: type = 3
Apr 14 09:33:29 testing automount[5240]: handle_packet_missing_indirect: token 137, name myself, request pid 5249
Apr 14 09:33:29 testing automount[5240]: failed to mount /cpy/users/myself
Apr 14 09:33:29 testing automount[5240]: attempting to mount entry /cpy/users/myself
Apr 14 09:33:29 testing automount[5240]: ioctl_send_fail: token = 137
Apr 14 09:33:29 testing automount[5240]: failed to mount /cpy/users/myself

发生这种情况时,NFS 服务器没有网络流量。

我意识到确切知道问题所在可能有点困难,但欢迎任何建议。

答案1

Gn!我自问:

chmod -x /etc/auto.master /etc/auto.users

问题解决了。错误消息这么模糊,怎么办?

答案2

尝试/etc/auto.users稍微简化一下你的文件:

*   -fstype=nfs4   server:/users/&

无论如何,rw 标志应该由服务器导出来控制,tcp/port 内容应该保留默认设置,除非您特意对其进行了修改以使其不同。

相关内容