红联Linux门户
Linux帮助

CentOS和Debian下NFS版本不兼容的问题

发布时间:2016-02-16 15:51:57来源:linux网站作者:yuesichiu

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)


本文永久更新地址:http://www.linuxdiyf.com/linux/18132.html