免费注册 查看新帖 |

Chinaunix

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

配置了auto_home,但是/home下面看不到主目錄 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-28 13:53 |只看该作者 |倒序浏览
大家好。
我刚开始接触solaris不久。
找了部分资料照着配置了auto_home和auto_master,启动了nfs,但是开机之后,发现/home下面还是空的。
下面是我的配置文件:
/etc/auto_home
#
# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)auto_home  1.6     03/04/28 SMI"
#
# Home directory map for automounter
#
+auto_home
mqm 127.0.0.1:/export/home/mqm


/etc/auto_master
#
# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)auto_master        1.8     03/04/28 SMI"
#
# Master map for automounter
#
+auto_master
/net            -hosts          -nosuid,nobrowse
/home           auto_home       -nobrowse



/etc/dfs/dfstab
#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command 'svcadm enable network/nfs/server' to
#       run the NFS daemon processes and the share commands, after adding
#       the very first entry to this file.
#
#       share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
share -F nfs -o rw -d "mqm" /export/home/mqm


开机之后用svcs -a |grep nfs查看nfs发现都是启动着的。
root@gsstivsun01 # svcs -a|grep nfs
online         13:26:03 svc:/network/nfs/status:default
online         13:26:04 svc:/network/nfs/nlockmgr:default
online         13:26:05 svc:/network/nfs/mapid:default
online         13:26:05 svc:/network/nfs/cbd:default
online         13:26:12 svc:/network/nfs/client:default
online         13:26:13 svc:/network/nfs/rquota:default
online         13:26:13 svc:/network/nfs/server:default

论坛徽章:
0
2 [报告]
发表于 2009-07-29 08:51 |只看该作者
不是吧?
難道沒有人會這個?
還是這個問題太簡單了,大家都不屑于回答呢?

论坛徽章:
0
3 [报告]
发表于 2009-07-29 10:05 |只看该作者
cat /etc/vfstab 看你的home是不是已经被你分区了
而且看起来你share的还是/export/home下的目录, 不是home下的

论坛徽章:
0
4 [报告]
发表于 2009-07-29 23:47 |只看该作者
Your auto mount and NFS setup seems to be correct. The automount creates and removes directories in /home on demand. The directory is only created when it is referenced such as ls /home/mqm or cd /home/mqm etc. If you don't access the directory for a certain period of time, it is automatically removed.

Try ls /home/mqm or cd /home/mqm. You should see the directory being created.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP