nfs 를 사용하기 위해서
아래와 같은 daemon 들이 필요하다고 합니다.
The server has to be running the following daemons:
mountd : The NFS mount daemon which carries out the requests that nfsd(8) passes on to it.
rpcbind : This daemon allows NFS clients to discover which port the NFS server is using.
The client can also run a daemon, known as nfsiod. The nfsiod daemon services the requests from the NFS server. This is optional, and improves performance, but is not required for normal and correct operation. See the nfsiod(8) manual page for more information.
출처 : FreeBSD handbook.
따라서 제 서버에 아래와 같이 추가하였습니다.
# Start up NFS server
nfs_server_enable="YES"
rpcbind_enable="YES"
nfs_server_enable="YES"
rpcbind_enable="YES"
grep nfs /etc/defaults/rc.conf 를 검색해보니
flag 는 위와 같네요.
mountd 는 nfs server를 켜면 자동으로 시작된다고 합니다.
mountd 의 flag는 아래와 같네요.
mountd_flags="-r" # Flags to mountd (if NFS server enabled).
그리고 mountd 에 아래와 같이 추가하였습니다.
/home/skyrapper/ -rw -maproot=skyrapper -alldirs 147.46.122.66
그리고 아래와 같이 명령을 내려 nfs 를 재시작 시켰습니다.
rpcbind
nfsd -u -t -n 4
mountd -r
server에서 showmount -e 명령으로 nfs가 mount 되어 있나 확인할 수 있습니다.
헉.. 재부팅 했더니 ssh 이 막혔네요..ㅠ 안습안습

댓글목록
등록된 댓글이 없습니다.