628  
   0
Linux客户端挂载NFS共享报:“wrong fs type””
作者:陈运佳于 2018年06月28日 发布在分类 / 经验案例 / 经验案例 下,并于 2018年06月28日 编辑
fs type bad option bad superbloc nfs

一、组网图

不涉及。

二、问题描述

Linux客户端挂载nfs共享,挂载过程报错,具体信息如下。

-bash-4.1# mount -t nfs 172.0.120.50:/mnt/data02/share/nfs /tmp
mount: wrong fs type, bad option, bad superblock on 172.0.120.50:/mnt/data02/share/nfs,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

三、过程分析

根据错误日志信息打印提示,操作系统未安装nfs-utils的软件包,导致系统无法识别nfs等文件系统,所以打印报错。


四、解决方法

1、Redhat、CentOS建议配置yum源,并采用yum方式安装nfs-utils软件包。

Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * rpmforge: mirrors.tuna.tsinghua.edu.cn
 * updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.2.3-75.el6_9 will be installed
--> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libtirpc >= 0.2.1-11 for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Running transaction check
---> Package libtirpc.x86_64 0:0.2.1-5.el6 will be updated
---> Package libtirpc.x86_64 0:0.2.1-13.el6_9 will be an update
---> Package nfs-utils-lib.x86_64 0:1.1.5-13.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================
 Package                                         Arch                                     Version                                              Repository                                 Size
===============================================================================================================================================================================================
Installing:
 nfs-utils                                       x86_64                                   1:1.2.3-75.el6_9                                     updates                                   336 k
Installing for dependencies:
 nfs-utils-lib                                   x86_64                                   1.1.5-13.el6                                         base                                       71 k
Updating for dependencies:
 libtirpc                                        x86_64                                   0.2.1-13.el6_9                                       updates                                    82 k

Transaction Summary
===============================================================================================================================================================================================
Install       2 Package(s)
Upgrade       1 Package(s)

Total download size: 489 k
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta                                                                                                                                                     | 291 kB     00:00     
Processing delta metadata
Package(s) data still to download: 489 k
(1/3): libtirpc-0.2.1-13.el6_9.x86_64.rpm                                                                                                                               |  82 kB     00:00     
(2/3): nfs-utils-1.2.3-75.el6_9.x86_64.rpm                                                                                                                              | 336 kB     00:00     
(3/3): nfs-utils-lib-1.1.5-13.el6.x86_64.rpm                                                                                                                            |  71 kB     00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                          4.2 MB/s | 489 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libtirpc-0.2.1-13.el6_9.x86_64                                                                                                                                              1/4 
  Installing : nfs-utils-lib-1.1.5-13.el6.x86_64                                                                                                                                           2/4 
  Installing : 1:nfs-utils-1.2.3-75.el6_9.x86_64                                                                                                                                           3/4 
  Cleanup    : libtirpc-0.2.1-5.el6.x86_64                                                                                                                                                 4/4 
  Verifying  : libtirpc-0.2.1-13.el6_9.x86_64                                                                                                                                              1/4 
  Verifying  : nfs-utils-lib-1.1.5-13.el6.x86_64                                                                                                                                           2/4 
  Verifying  : 1:nfs-utils-1.2.3-75.el6_9.x86_64                                                                                                                                           3/4 
  Verifying  : libtirpc-0.2.1-5.el6.x86_64                                                                                                                                                 4/4 

Installed:
  nfs-utils.x86_64 1:1.2.3-75.el6_9                                                                                                                                                            

Dependency Installed:
  nfs-utils-lib.x86_64 0:1.1.5-13.el6                                                                                                                                                          

Dependency Updated:
  libtirpc.x86_64 0:0.2.1-13.el6_9                                                                                                                                                             

Complete!

2、再次使用相同挂载命令挂载成功。

-bash-4.1# mount -t nfs 172.0.120.50:/mnt/data02/share/nfs /tmp
-bash-4.1# df -h -T
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda2     ext4     30G   10G   18G  36% /
tmpfs        tmpfs    939M     0  939M   0% /dev/shm
//172.0.120.50/SMB
              cifs     99G   81G   13G  87% /mnt
172.0.120.50:/mnt/data02/share/nfs
               nfs     99G   81G   13G  87% /tmp


五、风险提示

无。




 知识评论当前评论数0

 推荐知识


 访问权限

创建人 陈运佳
文档编辑权限 创建者私有
文档阅读权限 来自分类
分类阅读权限 所有人
分类编辑权限 技术服务部  : 机构     渠道合作伙伴  : 机构     系统管理员 : 人员     
分类审核权限 审核小组  : 岗位    
分类预览权限 审核小组 : 岗位    
分类下载权限 技术服务部  : 机构    
 历史版本

修改日期 修改人 备注
2018-06-28 10:28:18[当前版本] 陈运佳 CREAT

 目录
    宏杉案例知识库-V4.0.1