免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2314 | 回复: 6
打印 上一主题 下一主题

[系统管理] autofs失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-03-20 23:10 |只看该作者 |倒序浏览
系统版本 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却是成功的

请大侠赐教

论坛徽章:
0
2 [报告]
发表于 2015-03-21 09:41 |只看该作者
给点排错的思路也可以啊,折腾三天了!

论坛徽章:
12
技术图书徽章
日期:2014-07-11 16:27:5215-16赛季CBA联赛之山西
日期:2016-01-08 16:10:11操作系统版块每日发帖之星
日期:2015-08-01 06:20:002015亚冠之武里南联
日期:2015-06-11 01:12:162015年亚洲杯之阿联酋
日期:2015-03-20 11:41:462015年亚洲杯纪念徽章
日期:2015-03-18 18:08:422015年辞旧岁徽章
日期:2015-03-03 16:54:15丑牛
日期:2015-01-10 22:23:32天秤座
日期:2014-08-20 15:53:35水瓶座
日期:2014-08-11 12:08:51午马
日期:2014-07-23 23:03:38IT运维版块每日发帖之星
日期:2016-02-18 06:20:00
3 [报告]
发表于 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的考题吧。。。

论坛徽章:
0
4 [报告]
发表于 2015-03-21 10:39 |只看该作者
还是不行啊,而且,客户端的/var/log/messages里面一点消息都没有

论坛徽章:
0
5 [报告]
发表于 2015-03-21 11:30 |只看该作者
请高手赐教啊!

论坛徽章:
0
6 [报告]
发表于 2015-03-21 12:00 |只看该作者
非常奇怪的是,/var/log/messages里面竟然没有和autofs相关的日志信息,想排错都找不到着手点

论坛徽章:
0
7 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP