Centos5

NFS 客戶端可以掛載,無法自動掛載

  • November 1, 2012

我有/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 伺服器的網路流量。

我意識到確切地知道哪裡出了問題可能有點困難,但歡迎提出任何建議。

恩!回答我自己:

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

問題解決了。一個晦澀的錯誤資訊怎麼樣?

/etc/auto.users嘗試稍微簡化您的文件:

*   -fstype=nfs4   server:/users/&

無論如何,rw 標誌應該由伺服器導出控制,tcp/port 的東西應該​​保持預設,除非你專門修改它以使其不同。

引用自:https://serverfault.com/questions/259538