我的操作系统是 RHNL 版本 6.2,使用 NFS 服务 (nfs-utils-1.2.3) 连接到 NFS 服务器,
并在文件 /var/log/messages 中发现了很多消息:
Apr 1 11:08:35 XXX rpc.idmapd[3010]: nss_getpwnam: name '2' does not map into domain 'XXXX.com'
Apr 1 11:14:26 XXX rpc.idmapd[3010]: nss_getpwnam: name '0' does not map into domain 'XXXX.com'
Apr 1 11:18:36 XXX rpc.idmapd[3010]: nss_getpwnam: name '2' does not map into domain 'XXXX.com'
Apr 1 11:24:27 XXX rpc.idmapd[3010]: nss_getpwnam: name '0' does not map into domain 'XXXX.com'
Apr 1 11:28:37 XXX rpc.idmapd[3010]: nss_getpwnam: name '2' does not map into domain 'XXXX.com'
Apr 1 11:34:27 XXX rpc.idmapd[3010]: nss_getpwnam: name '0' does not map into domain 'XXXX.com'
Apr 1 11:38:37 XXX rpc.idmapd[3010]: nss_getpwnam: name '2' does not map into domain 'XXXX.com'
Apr 1 11:44:28 XXX rpc.idmapd[3010]: nss_getpwnam: name '0' does not map into domain 'XXXX.com'
Apr 1 11:48:37 XXX rpc.idmapd[3010]: nss_getpwnam: name '2' does not map into domain 'XXXX.com'
这条消息是什么意思?
答案1
这意味着您的 /etc/idmapd.conf 文件或 /etc/hosts 文件中存在主机名问题。请确保 NFS 服务器和客户端上的 idmapd.conf 文件相同,还要确保您的客户端将 localhost 和 localdomain 解析为环回地址 (127.0.0.1),并且您的域名未解析为环回。