歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS和Debian下NFS版本不兼容的問題

CentOS和Debian下NFS版本不兼容的問題

日期:2017/2/28 14:49:04   编辑:Linux教程

Debian版本號通過命令

cat /etc/debian_version查看

Debian默認支持vers=4,但是CentOS些老版本默認支持vers=3.因此掛載NFS時會出現以下提示信息:

NFS: bad mount option value specified: vers=4

mount.nfs: an incorrect mount option was specifiedt

解決方法:

這是由於linux和solaris10使用了不同版本的NFS導致的,solaris10默認使用的是NFS4,這導致了Solaris nfs和Linux nfs的兼容問題,可以加上參數”-o vers=3”或者nfsvers=3,vers=3來解決。

比如在客戶端運行:

#mount -t nfs192.168.0.100:/nfsroot /mnt -o vers=3

注:

1.192.168.0.100是Server ip adress

OK通過

2. exportfs -r 重新加載nfs配置文件(/etc/exports)

Copyright © Linux教程網 All Rights Reserved