- 论坛徽章:
- 0
|
autofs实验手记:
Remote:192.168.0.131
#/usr/lib/nfs/nfsd
#/usr/lib/nfs/mountd
#share /usr/share/man
#share
- /usr/share/man rw ""
Client:192.168.0.30
#vi /etc/automaster
9 +auto_master
10 /net -hosts -nosuid,nobrowse
11 /home auto_home -nobrowse
12 /mnt1 auto_me -nosuid *手动添加*
#vi /etc/auto_me
nana -rw 192.168.0.131:/usr/share/man
*这个文件不存在,需手动添加*
#/usr/lib/autofs/automountd stop
#/usr/lib/autofs/automountd start
*很多资料上说是#/usr/lib/autofs/automountd 就可以,但我试过不行*
还不行的话,执行命令:
# automount -v
automount: /mnt1 mounted
automount: no unmounts
*which can be used to examine
exactly what the automounter is doing. It is best to kill automount
and restart it with the debug flags, so that you can see everything
from the start*
查看:
# cd /mnt1/nana &&ls
entities sman3bsm sman3kvm sman3rpc sman3xnet
man.cf sman3c sman3layout sman3rsm sman4
man1 sman3cfgadm sman3ldap sman3rt sman4b
man1m sman3cpc sman3lib sman3sched sman5
man3 sman3curses sman3libucb sman3sec sman6
man5 sman3devid sman3m sman3secdb sman7
man7d sman3devinfo sman3mail sman3slp sman7d
manl sman3dl sman3malloc sman3smartcard sman7fs
mann sman3dmi sman3mp sman3snmp sman7i
sman1 sman3door sman3nsl sman3socket sman7m
sman1b sman3elf sman3nvpair sman3sysevent sman7p
sman1c sman3exacct sman3pam sman3thr sman9
sman1f sman3ext sman3picl sman3tnf sman9e
sman1m sman3gen sman3picltree sman3ucb sman9f
sman1s sman3gss sman3plot sman3volmgt sman9s
sman2 sman3head sman3proc sman3wsreg zh
sman3 sman3krb sman3rac sman3xcurses
sman3aio sman3kstat sman3resolv sman3xfn
# df -th
文件系统 大小 用了 可用 容量 挂接在
/dev/dsk/c0d0s0 8.8G 3.6G 4.4G 46% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.1G 656K 1.1G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
/usr/lib/libc/libc_hwcap1.so.1
8.8G 3.6G 4.4G 46% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 1.1G 8K 1.1G 1% /tmp
swap 1.1G 24K 1.1G 1% /var/run
/vol/dev/dsk/c1t0d0/sun2007
93M 93M 0K 100% /cdrom/sun2007
192.168.0.131:/usr/share/man
2.9G 1.6G 1.2G 58% /mnt1/nana
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26090/showart_319238.html |
|