- 论坛徽章:
- 0
|
大家好。
我刚开始接触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
|
|
|