- モジュールのインストール
yum -y install portmap yum -y install nfs-utils yum -y install nfs-utils-lib
- NFSサーバの設定
# vi /etc/exports /data 10.13.167.39(rw) 10.13.167.40(rw) 10.13.167.44(rw) # vi /etc/hosts.deny portmap:ALL lockd:ALL mountd:ALL rquotad:ALL statd:ALL # vi /etc/hosts.allow portmap: 10.13.167.39, 10.13.167.40, 10.13.167.44 lockd: 10.13.167.39, 10.13.167.40, 10.13.167.44 rquotad: 10.13.167.39, 10.13.167.40, 10.13.167.44 mountd: 10.13.167.39, 10.13.167.40, 10.13.167.44 statd: 10.13.167.39, 10.13.167.40, 10.13.167.44
- NFSサーバの起動
# /etc/rc.d/init.d/portmap start # chkconfig nfs on # chkconfig --list nfs nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off # /etc/init.d/nfs start
- 動作確認
nfsやmountdがあればおk
# rpcinfo -p プログラム バージョン プロトコル ポート 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 794 status 100024 1 tcp 797 status 100021 1 udp 32768 nlockmgr 100021 3 udp 32768 nlockmgr 100021 4 udp 32768 nlockmgr 100021 1 tcp 32770 nlockmgr 100021 3 tcp 32770 nlockmgr 100021 4 tcp 32770 nlockmgr 100011 1 udp 648 rquotad 100011 2 udp 648 rquotad 100011 1 tcp 651 rquotad 100011 2 tcp 651 rquotad 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100005 1 udp 662 mountd 100005 1 tcp 665 mountd 100005 2 udp 662 mountd 100005 2 tcp 665 mountd 100005 3 udp 662 mountd 100005 3 tcp 665 mountd
NFSクライアントの設定は昨日のメモを参照のこと。