|
1. NFS Server ½Ã½ºÅÛ
1.1 ¿µ±¸ÀûÀ¸·Î ÈÀÏ ½Ã½ºÅÛÀ» Share Çϵµ·Ï ÇÒ °æ¿ì
- /etc/dfs µð·ºÅ丮¿¡ ÀÖ´Â dfstab ÈÀÏ¿¡ ¾Æ·¡¿Í °°ÀÌshare ÇÒ ÈÀÏ ½Ã½ºÅÛ¿¡ °üÇÑ Á¤º¸¸¦ ´ã¾Æ ³õ´Â´Ù.
# vi /etc/dfs/dfstab
# place share(1M) commands here for automatic execution
# on entering init state 3.
#
# share [-F fstype] [ -o options] [-d ""] [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o rw=school2 /DATA
- share command ¸¦ ½ÇÇàÇÑ´Ù.
# /usr/sbin/shareall -F nfs
- /etc/rc3.d/S15nfs.server¸¦ ½ÇÇàÇÏ¿© NFS °ü·Ã DaemonÀ» ¶ç¿ì°í, ps ¸í·ÉÀ¸·Î "nfsd" ¿Í "mountd"°¡ ½ÇÇàµÇ¾ú´ÂÁö È®ÀÎÇÑ´Ù.
# /etc/init.d/rpc start
# /etc/init.d/
# /etc/rc3.d/S15nfs.server start
# ps -ef|grep nfsd
# ps -ef|grep mountd
- "share" command¸¦ »ç¿ëÇÏ¿© ÈÀÏ ½Ã½ºÅÛÀÌ Á¦´ë·Î shareµÇ¾ú´Â°¡ È®ÀÎÇÑ´Ù.
# /usr/sbin/share
- /DATA rw=school2 ""
- /etc/rc3.d/S15nfs.server¸¦ ½ÇÇàÇÏ¿© NFS °ü·Ã DaemonÀ» ¶ç¿ì°í, ps ¸í·ÉÀ¸·Î "nfsd" ¿Í "mountd"°¡ ½ÇÇàµÇ¾ú´ÂÁö È®ÀÎÇÑ´Ù.
# /etc/rc3.d/S15nfs.server start
# ps -ef|grep nfsd
# ps -ef|grep mountd
- "share" command¸¦ »ç¿ëÇÏ¿© ÈÀÏ ½Ã½ºÅÛÀÌ Á¦´ë·Î shareµÇ¾ú´Â°¡ È®ÀÎÇÑ´Ù.
# /usr/sbin/share
- /cdrom/solaris_ext_1_0 ro ""
2. NFS Client ½Ã½ºÅÛ
2.1 ¿µ±¸ÀûÀ¸·Î ´Ù¸¥ ¼¹ö·Î ºÎÅÍ ÈÀÏ ½Ã½ºÅÛÀ» mount ÇÏ¿© »ç¿ëÇÒ °æ¿ì
- /etc/vfstab ÈÀÏ¿¡ ¾Æ·¡¿Í °°ÀÌ NFS Mount point¸¦ ÁöÁ¤ÇÑ´Ù.
nfs_server:mount_point - local_mount_point nfs - yes soft,intr,bg
- À§¿Í °°ÀÌ ÁöÁ¤À» ÇÑÈÄ ¾Æ·¡¿Í °°ÀÌ mount ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
% mount local_mount_point
¿¹) NFS server ½Ã½ºÅÛÀÇ È£½ºÆ® À̸§ÀÌ "sun1"ÀÌ°í sun1¿¡ shareÇÏ´Â ÈÀÏ ½Ã½ºÅÛÀÌ /PATCHDBÀÎ °æ¿ì ÀÌ ÈÀÏ ½Ã½ºÅÛÀ» ÀÚ½ÅÀÇ ½Ã½ºÅÛÀÇ /patch
µð·ºÅ丮·Î mountÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ /etc/vfstab¿¡ ÁöÁ¤ÇÑ´Ù.
sun1:/PACTHDB - /patch nfs - yes soft,intr,bg
À§¿Í °°ÀÌ ÁöÁ¤À» ÇÑÈÄ ¾Æ·¡¿Í °°ÀÌ mount ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
% mount /patch
2.1 ÀϽÃÀûÀ¸·Î ´Ù¸¥ ¼¹ö·Î ºÎÅÍ ÈÀÏ ½Ã½ºÅÛÀ» mountÇÏ¿© »ç¿ëÇÒ °æ¿ì
- ¾Æ·¡¿Í °°ÀÌ mount ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
% mount -F nfs -o ro nfs_server:mount_point local_mount_point
¿¹) NFS server ½Ã½ºÅÛÀÇ È£½ºÆ® À̸§ÀÌ "sun1"ÀÌ°í sun1¿¡¼ /cdrom/solstice¸¦ ÀÚ½ÅÀÇ ½Ã½ºÅÛÀÇ /cdrom µð·ºÅ丮·Î mountÇÏ¿© »ç¿ëÇÏ´Â °æ¿ì
% mount -F nfs -o ro sun1:/cdrom/solstice /cdrom
|