我有/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”构build的虚拟机上进行了一些小的调整,当用户自己login时,
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服务器的networking通信。
我意识到确切地知道什么是错的可能有点困难,但任何build议都是值得欢迎的。
GN! 回答我自己:
chmod -x /etc/auto.master /etc/auto.users
问题解决了。 那对于一个模糊的错误信息呢?
尝试简化一下你的/etc/auto.users文件:
* -fstype=nfs4 server:/users/&
rw标志应该由服务器导出来控制,tcp / port的东西应该是默认的,除非你已经明确地破解它是不同的。