네트워크 파일 시스템. 네트워크로 장치(폴더,시스템) 공유해서 원격지(클라이언트)에서 자유롭게 이용하는 서비스

서버쪽 설정이 중요함.
1. /etc/dfs/dfstab 서버에서 부팅시 공유할 자원 맵핑
ex):: share -o ro /usr/share/man
                  -o ro : 옵션으로 읽기권한만 주겠다
                           /usr/share/man : 지정해준 폴더를

2. # /etc/init.d/nfs.server start
   nfsd와 mountd 데몬 재시작
   /etc/dfs/dfstab 파일 설정 완료 후 스크립트 시작or중지


서버쪽 요약
# vi /etc/dfs/dfstab
:: share -o ro /usr/share/man
# /etc/init.d/nfs.server start


ex) man 명령어 공유하기

# vi /etc/dfs/dfstab

"/etc/dfs/dfstab" 12 lines, 393 characters

#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command '/etc/init.d/nfs.server start' 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 -o ro /usr/share/man
~
~
~
~
~
~
~
~
~
~
"/etc/dfs/dfstab" 13 lines, 420 characters

# /etc/init.d/nfs.server start


클라쪽
man명령어를 없애서 실행해보고 = 에러발생
서버쪽 컴퓨터의 man명령어에 마운트해서 man명령어 실행해보기.

bash-2.05# mv /usr/share/man /usr/share/men
bash-2.05# man ls

No manual entry for ls.

bash-2.05# mkdir /usr/share/man
bash-2.05# mount 172.16.7.111:/usr/share/man /usr/share/man
bash-2.05# man ls

Reformatting page.  Please Wait... done

User Commands                                               ls(1)

NAME
     ls - list contents of directory

SYNOPSIS
     /usr/bin/ls [-aAbcCdfFghilLmnopqrRstux1@] [file...]

     /usr/xpg4/bin/ls [-aAbcCdfFghilLmnopqrRstux1@] [file...]

DESCRIPTION


설명 : man 폴더가 men 폴더로 바뀌어 man ls 명령이 실행되지 않았으나,
         111번 서버의 man폴더에 마운트하여 man ls 명령을 실행 성공 시킨 예제
Posted by 딩구르
,