Debian 預設支援 NFSv4,CentOS 舊版預設 NFSv3。跨版本掛載時出現 NFS: bad mount option value specified: vers=4 錯誤。解決方法:在掛載指令加入 -o vers=3 或 nfsvers=3 強制使用 NFSv3 協定。
mount -t nfs 192.168.0.100:/nfsroot /mnt
# NFS: bad mount option value specified: vers=4
# mount.nfs: an incorrect mount option was specified
# 客戶端執行(強制 NFSv3)
mount -t nfs 192.168.0.100:/nfsroot /mnt -o vers=3
# 或
mount -t nfs 192.168.0.100:/nfsroot /mnt -o nfsvers=3
# 寫入 /etc/fstab 永久生效
192.168.0.100:/nfsroot /mnt nfs vers=3,defaults 0 0
exportfs -r
# 重新讀取 /etc/exports 並匯出

rpcbind (111)、mountd、statd、lockd 多埠口,相容性較好。# 查看目前掛載使用的版本
nfsstat -m
# 或
cat /proc/mounts | grep nfs
# 顯示 vers=3.0 或 vers=4.0