Chinaunix
标题:
autofs失败
[打印本页]
作者:
lch3920126
时间:
2015-03-20 23:10
标题:
autofs失败
系统版本 rhel6.6
服务器ip:192.168.157.111
客户端ip:192.168.157.113
服务器上 /etc/exports的内容
/home/ldapuser1 192.168.157.0/24(rw,no_root_squash)
客户端上 /etc/auto.master 添加
/home /etc/auto.home
编辑/etc/auto.home内容如下:
* -rw,soft,intr 192.168.157.111:/home/&
服务器和客户端的相关服务都重启了,且在客户端上通过ldap服务,可以成功的使用用户ldapuser1登录,但是就是进入不了/home/ldapuser1
su -l ldapuser1
始终提示: cannot change directory to /home/ldapuser1:no such file or directory
但是,在客户端使用mount 手动挂载服务器上的/home/ldapuser1却是成功的
请大侠赐教
作者:
lch3920126
时间:
2015-03-21 09:41
给点排错的思路也可以啊,折腾三天了!
作者:
phanx
时间:
2015-03-21 10:08
* -rw,soft,intr 192.168.157.111:/home/&
改成
* -fstype=nfs,rw,soft,intr 192.168.157.111:/home/&
不行再试试
ldapuser1 -fstype=nfs,rw,soft,intr 192.168.157.111:/home/ldapuser1
RHCSA的考题吧。。。
作者:
lch3920126
时间:
2015-03-21 10:39
还是不行啊,而且,客户端的/var/log/messages里面一点消息都没有
作者:
lch3920126
时间:
2015-03-21 11:30
请高手赐教啊!
作者:
lch3920126
时间:
2015-03-21 12:00
非常奇怪的是,/var/log/messages里面竟然没有和autofs相关的日志信息,想排错都找不到着手点
作者:
lch3920126
时间:
2015-03-21 14:48
终于搞到日志的内容了,但是看不懂
Mar 21 14:44:38 localhost3 automount[3651]: umounted indirect mount /net
Mar 21 14:44:38 localhost3 automount[3651]: shut down path /net
Mar 21 14:44:38 localhost3 automount[3651]: autofs stopped
Mar 21 14:44:42 localhost3 automount[3874]: Starting automounter version 5.0.5-109.el6, master map auto.master
Mar 21 14:44:42 localhost3 automount[3874]: using kernel protocol version 5.02
Mar 21 14:44:42 localhost3 automount[3874]: lookup(ldap): failed to find valid query dn
Mar 21 14:44:42 localhost3 automount[3874]: lookup(file): failed to read included master map auto.master
Mar 21 14:44:42 localhost3 automount[3874]: mounted indirect on /net with timeout 300, freq 75 seconds
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2