mount.nfs:指定了不正确的安装选项

我试图在一个centos 7.2服务器上挂载一个NFS卷:

当我尝试挂载NFS共享点时,这是我回来的回应:

[root@web1:~] #mount -t nfs nfs1.example.com:/var/nfs/home /home mount.nfs: an incorrect mount option was specified 

我检查了两台机器上都安装了nfs-utils-1.3.0-0.21.el7.x86_64 。 nfs客户端和nfs服务器操作系统都是Centos 7.2

为了解决这个问题,我把NFS服务器上的/ etc / exports文件中的清单减less到了以下内容:

 /var/nfs/home web1.example.com(rw,sync,no_root_squash,no_all_squash) 

如果我从服务器执行showmount命令,我试图挂载nfs共享,这就是我所看到的:

 [root@web1:~] #showmount -e nfs1.example.com Export list for nfs1.example.com: /var/nfs/home web1.example.com 

如果我做一个mount -v这是我得到的:

 [root@web1:~] #mount -v -t nfs nfs1.example.com:/var/nfs/home /home mount.nfs: timeout set for Fri Jan 13 11:04:19 2017 mount.nfs: trying text-based options 'vers=4,addr=162.xxx.xxx..94,clientaddr=162.xxx.xxx.6' mount.nfs: mount(2): Invalid argument mount.nfs: an incorrect mount option was specified In dmesg I find: [44428.405419] nfsd: last server has exited, flushing export cache 

我在dmesg中看到这个:

 [ 7.373186] FS-Cache: Netfs 'nfs' registered for caching [ 7.422181] Key type dns_resolver registered [ 7.456581] NFS: Registering the id_resolver key type [ 7.462309] Key type id_resolver registered [ 7.462386] Key type id_legacy registered [ 7.514441] SELinux: initialized (dev 0:40, type nfs4), uses genfs_contexts [ 8.474503] NFSD: starting 90-second grace period (net ffffffff819a29c0) – [ 16.952180] perf samples too long (2623 > 2500), lowering kernel.perf_event_max_sample_rate to 50000 [ 24.429251] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs [ 38.368207] perf samples too long (5162 > 5000), lowering kernel.perf_event_max_sample_rate to 25000 [ 38.427323] 

在命令中不指定-t nfs给出相同的结果:

 [root@nfs1:~] #mount nfs1.example.com:/var/nfs/home /home mount.nfs: an incorrect mount option was specified 

这些是我有的nfs文件系统:

 [root@nfs1:~] #grep nfs /proc/filesystems nodev nfsd nodev nfs nodev nfs4 

这里是为nfs加载的模块:

 [root@nfs1:~] #lsmod | grep ^nfs nfsv4 474203 0 nfs 241266 1 nfsv4 nfsd 284378 13 nfs_acl 12837 1 nfsd 

这不是一个防火墙的问题,因为当我从NFS服务器本身运行mount命令时,我遇到了同样的问题。 它得到了与客户端相同的错误。

我应该强调,这一次做得很好。 但是现在已经被打破了,无法使用。

有人可以帮我解决这个问题吗? 我真的被困在这一点上。