LoginSignup
2
0

More than 5 years have passed since last update.

nfsマウントでクライアントを増やした時に「mount.nfs: requested NFS version or transport protocol is not supported」

Posted at

サーバー側の設定追加

# vi /etc/sysconfig/iptables
-A INPUT -p tcp --sport 2049 -s 172.168.1.1 -j  ACCEPT
-A OUTPUT -p tcp --sport 2049 -d 172.168.1.1 -j ACCEPT
#この行の後に同じように2行該当IPアドレスを指定して入力して追加

-A INPUT -p tcp --sport 2049 -s 172.168.1.2 -j  ACCEPT
-A OUTPUT -p tcp --sport 2049 -d 172.168.1.2 -j ACCEPT

反映

# service iptables restart
# vi /etc/exports
※他行と同様にIPを変えた行を最後に追加
/data1  172.168.1.2(rw,wdelay,no_root_squash,no_subtree_check,anonuid=65534,anongid=65534)

反映

# /usr/sbin/exportfs -r

クライアント側の設定

# yum install nfs-utils
# mkdir /data1
# service rpcbind start
# mount -t nfs -o nfsvers=3  172.168.1.225:/data1 /data1

エラー!
mount.nfs: requested NFS version or transport protocol is not supported

解決

なんてことはなく

# service nfs restart

で、解消。。
既存のクライアントへの影響が若干心配であるが、直後に確認した限りではマウントが外れるようなことはなかった。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0