Solution for NFS version incompatibility in CentOS/Debian system

  

In Debian and CentOS systems, using NFS error is mainly due to the incompatibility of NFS version. The following is a small series to introduce the NFS version in CentOS/Debian. Incompatible solutions, I hope to help you.

Debian version number of the command

cat /etc /debian_version view

Debian default support vers = 4, but some older versions of CentOS default support vers = 3. Therefore, the following message will appear when mounting NFS:

NFS: bad mount option value specified: vers=4

mount.nfs: an mount mount was specifiedt

Solution:

This is due to the different versions of NFS used by Linux and solaris10. The default is NFS4 for solaris10, which leads to compatibility between Solaris nfs and Linux nfs. It can be added with parameters”- o vers=3” or nfsvers=3, vers=3 to solve.

For example, running on the client:

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

Note:

1.192.168.0.100 is Server ip adress

via

2. exportfs -r Reload nfs configuration file (/etc/exports)

The above is CentOS/Debian The introduction method of the NFS version incompatibility is introduced. You only need to add parameters to solve the problem, or you can change the compatible NFS version.

Copyright © Windows knowledge All Rights Reserved