|
|
|
|
|
|
ۼ : 05-11-30 18:20
۾ :
ȸ : 18,379
|
**** NFS server ****
nfs
mountd : /usr/lib/nfs/mountd : NFS client mount û mountd
Ʈ (file handle) Ѱ -> /etc/rmtabϴ
nfsd : /usr/lib/nfs/nfsd : Ʈ Ŀ ڵҼ ֵ
statd : /usr/lib/nfs/statd : NFS fileý
lockd : /usr/lib/nfs/lockd : ̻ Ǵ
nfslogd : /usr/lib/nfs/nfslogd : nfs server α뵥
* statd, lockd Բ NFS locking Ѵ ̴ crashes
Ŭ̾Ʈ ٽ Ҽ ֵ Connection ǵ Ѵ.
/etc/init.d/nfs.client ũƮ డ.
* nfsd,mountd /etc/init.d/nfs.server ũƮ డ
nfs
/etc/dfs/dfstab : ý
/etc/dfs/sharedtab : ϰ ִ
/etc/dfs/fstypes : mount -F nfs ɼ ʾƵ ǵ
/etc/rmtab : host share ڿ ϰ ִ (hostname : fsname)
/etc/nfs/nfslog.conf
/etc/default/nfslogd
/etc/nfs/nfslogtab
nfs command ɾ
share :
unshare :
shareall : /etc/dfs/dfstab share Ʈ Ͽ ƮŴ
unshareall : /etc/dfs/sharetab Ʈ Ͽ ƮŴ
dfshares : ڿ ִ Ȯ
dfmounts : ڿ ִ Ȯ
nfs server õ
/etc/vfstab
/etc/mnttab
/etc/dfs/fstypes
--
⺻ /etc/dfs/dfstabϳ
(file>root)/# vi /etc/dfs/dfstab
share -F nfs -o rw /data
rw ; read-write
ro ; read-only
root=client[:client] ; root access host (client hostname)
anon=0 ; UID 0 (root) access
. dfstabϳ ʰ nfs.server
NFS service was not started because /etc/dfs/dfstab has no entries.
̷ Բ.. ߿ (mountd,nfsd) ȵ
1. 켱 丮 Ѵ.
#share -F nfs -o rw /usr/share/man
(shareallص )
2. Ȯ
(file>root)/# share
- /data rw ""
(file>root)/#
3. Ȯ
(file>root)/# ps -fe | grep lockd
root 197 1 0 16:32:36 ? 0:00 /usr/lib/nfs/lockd
root 1189 1156 0 18:06:19 pts/2 0:00 grep lockd
(file>root)/# ps -ef | grep mountd
root 1191 1156 0 18:06:24 pts/2 0:00 grep mountd
root 208 1 0 16:32:37 ? 0:00 /usr/lib/autofs/automountd
root 371 1 0 16:32:52 ? 0:00 /usr/lib/nfs/mountd
(file>root)/# ps -ef | grep nfsd
root 1196 1156 0 18:06:35 pts/2 0:00 grep nfsd
root 373 1 0 16:32:53 ? 0:00 /usr/lib/nfs/nfsd -a 16
(file>root)/# ps -fe | grep statd
daemon 199 1 0 16:32:36 ? 0:00 /usr/lib/nfs/statd
daemon 999 1 0 17:41:29 ? 0:00 /usr/lib/nfs/statd
root 1199 1156 0 18:06:40 pts/2 0:00 grep statd
(file>root)/#
Ʒ Ų.
(file>root)/#/etc/init.d/nfs.server start
- ڿ ϰ ֳ Ȯ
(file>root)/etc/dfs# dfshares
RESOURCE SERVER ACCESS TRANSPORT
file:/data file - -
file:/a file - -
(file>root)/etc/dfs#
-> /etc/hosts zzz õǾ ־Ѵ. Ͽ
(file>root)/etc/dfs# dfshares 192.168.0.212
RESOURCE SERVER ACCESS TRANSPORT
192.168.0.212:/test 192.168.0.212 - -
(file>root)/etc/dfs#
nfs ִ Ȯ մϴ.
- Ŭ̾Ʈ Ȯ
(file>root)ps -ef | grep nfs
root 1593 1 0 18:45:01 ? 0:00 /usr/lib/nfs/lockd
daemon 1591 1 0 18:45:01 ? 0:00 /usr/lib/nfs/statd
- Ŭ̾Ʈ
(file>root)/etc/init.d/nfs.client start
Ŭ̾Ʈ
(file>root)/etc/init.d# ps -ef | grep nfs
root 1564 1156 0 18:44:20 pts/2 0:00 grep nfs
root 197 1 0 16:32:36 ? 0:00 /usr/lib/nfs/lockd
daemon 199 1 0 16:32:36 ? 0:00 /usr/lib/nfs/statd
daemon 999 1 0 17:41:29 ? 0:00 /usr/lib/nfs/statd
(file>root)mount -F nfs 192.168.0.212:/test /ccc
mount μ 192.168.0.212 test nfs Ǿ ִ
丮 ccc mount Ű Դϴ.
- nfs Ʈ Ȯ
(file>root)/ccc# df -k
Ͻý KƮ 뷮 ġ
/dev/dsk/c0t0d0s0 20165785 10219660 9744468 52% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 2064904 24 2064880 1% /var/run
swap 2064896 16 2064880 1% /tmp
/dev/dsk/c0t0d0s5 54760503 7704084 46508814 15% /data
192.168.0.212:/test 15116868 3065388 11283576 22% /ccc
(file>root)/ccc#
ٸ nfs ؼ Ʈ Ǿ ִ .....
|
|
|
|
|
|
|
|
|