大网数据广告活动
服务器运维问答

nfs mount with nfs 3

· 52CE 我爱测

I am running CentOS 6.4 Kernel version 2.6.32-358.23.2.el6.x86_64 #1 SMP and have the following nfs info: nfs-utils-lib-1.1.5-6.el6.x86_64 nfs4-acl-tools-0.3.3-6.el6.x86_64 nfs-utils-1.2.3-36.el6.x86_64 and am trying to mount an …

问题原文

原帖链接 · rahrahruby · CC BY-SA 4.0

I am running CentOS 6.4 Kernel version 2.6.32-358.23.2.el6.x86_64 #1 SMP and have the following nfs info:

  • nfs-utils-lib-1.1.5-6.el6.x86_64
  • nfs4-acl-tools-0.3.3-6.el6.x86_64
  • nfs-utils-1.2.3-36.el6.x86_64

and am trying to mount an NFS volume with nfs3. I have the following line in my fstab:

172.16.11.87:/volume1/web /home/nas nfsver=3 rsize=8192,wsize=8192,timeo=14,intr(no_root_squach)

When I run nfsstat it still shows the client as nfs4

Server rpc stats:
calls      badcalls   badauth    badclnt    xdrcall
0          0          0          0          0       

Client rpc stats:
calls      retrans    authrefrsh
1988817    6          1988818 

Client nfs v4:

null         read         write        commit       open         open_conf    
0         0% 36943     1% 21606     1% 401       0% 392369   19% 375986   18% 
open_noat    open_dgrd    close        setattr      fsinfo       renew        
0         0% 0         0% 387945   19% 22904     1% 3         0% 2914      0% 
setclntid    confirm      lock         lockt        locku        access       
1         0% 1         0% 0         0% 0         0% 0         0% 97856     4% 
getattr      lookup       lookup_root  remove       rename       link         
613996   30% 29888     1% 1         0% 1248      0% 253       0% 414       0% 
symlink      create       pathconf     statfs       readlink     readdir      
26        0% 226       0% 2         0% 3         0% 0         0% 3825      0% 
server_caps  delegreturn  getacl       setacl       fs_locations rel_lkowner  
5         0% 0         0% 0         0% 0         0% 0         0% 0         0% 
exchange_id  create_ses   destroy_ses  sequence     get_lease_t  reclaim_comp 
0         0% 0         0% 0         0% 0         0% 0         0% 0         0% 
layoutget    layoutcommit layoutreturn getdevlist   getdevinfo   ds_write     
0         0% 0         0% 0         0% 0         0% 0         0% 0         0% 
ds_commit    
0         0% 

社区高分解答

原帖链接 · Jesus Cepeda · CC BY-SA 3.0

nfsvers is an option.

<server>:</remote/export> </local/directory> <nfs-type> <options> 0 0 

It seems that you missed the nsf-type. Changing nfsmount.conf may solve the problem in a system that will never work with nfs4. I have faced the same problem and it was solved like this in your fstab

172.16.11.87:/volume1/web /home/nas nfs nfsvers=3 0 0

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-11-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0 / CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。