Prev / Next

2008-12-18 / NFSv4 を使ってみる

いろいろと変更しているついでに NFSv4 を使ってみることに.

NFSv4 になっていろいろと変わったことがあるようだけれど,
設定上必要なのは以下の 3 点.

1. rpcidmapd の起動
2. サーバ側の /etc/exports
3. クライアント側での mount 方法




1. rpcidmapd の起動

とくに説明不要

2. サーバ側の /etc/exports

/home   client(rw,sync,fsid=0)


NFSv3 までとの違いは fsid=0 がつくこと.
これより,クライアント側ではサーバの /home が / としてみえる.

3. クライアント側での mount 方法
2 でサーバの /home が / としてみえるようになっているので
mount 方法は以下の通り.

mount -t nfs4  nfsserver:/ /home


/etc/fstab の記述は以下のとおり

nfsserver:		/home	nfs4	defaults	0 0


- CentOS5.0でNFSv4の設定 - sous le grand arbre
  http://www.grandarbre.net/2007/10/centos50nfs4-1.html
- Validation Case Study: NFSv3とNFSv4のファイル操作ベンチマーク比較
  http://www.itmedia.co.jp/enterprise/articles/0807/18/news008.html

comments powered by Disqus