Autofs挂载nfs问题

我有一些问题让autofs在新的Centos 5.5安装上正常工作。 请从我的存储服务器find出口:

/san/files *(rw,sync,no_subtree_check,no_root_squash) /san/mail *(rw,sync,no_subtree_check,no_root_squash) 

在我的客户端上,我的auto.master如下所示:

 /home /etc/auto.home --timeout=60 /net -hosts 

auto.home:

 vmail -fstype=nfs,hard,intr,nodev,nosuid,rw xxx.xxx.xxx.xxx:/san/mail 

我不想使用NIS,但是我的更大的想法是在nfs服务器上做一个倒台,但是现在我只是在单台服务器上工作。

我可以使用“mount -t nfs xx.xxx.xxx.xxx:/san/mail/home/vmail”手动挂载nfs共享(当mountpoint存在Obv时)

/ home上的权限:

 # ls -shalt /home total 8.0K 0 drwxr-xr-x 2 root root 0 May 3 08:51 . 8.0K drwxr-xr-x 24 root root 4.0K May 3 08:51 .. 

问题是当试图去/ home / vmail我得到以下内容:

 # ls -shalt /home/vmail ls: /home/vmail: No such file or directory 

运行“automount -vf”我得到以下输出:

 Starting automounter version 5.0.1-0.rc2.143.el5_5.6, master map auto.master using kernel protocol version 5.01 mounted indirect on /home with timeout 60, freq 15 seconds mounted indirect on /net with timeout 300, freq 75 seconds attempting to mount entry /home/vmail lookup(program): lookup for vmail failed failed to mount /home/vmail 

使用/net/xxx.xxx.xxx.xxx/san/mail/的作品!

请帮助任何指针? 我现在已经死了

查找(程序)意味着automount认为你的地图是一个可执行文件,是否有可执行的位设置?

查找(文件)是你应该看到的

请参阅http://www.squarebox.co.uk/cgi-squarebox/manServer/automount.8