NFS挂载报错

环境:CentOS 6.5 64bit

在一台客户端机上执行mount命令挂载nfs,结果报如下错误:


1

2

3

4

5

6


mount: wrong fs type, bad option, bad superblock on 192.168.0.10:/bak,

       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,执行如下命令:


1

yum -y install nfs-utils

之后再挂载,正常。

在客户端和服务端使用命令:showmount -e 10.10.209.148  报错

clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)

解决方法:

被访问的NFS服务器上的防火墙没有添加规则,向iptables里面添加以下查看的所有端口即可(目前解决的方法,当然你也可以关闭防火墙,不过这样是比较不安全的,如果你的nfs作用不大,建议你另选别的应用来替代吧!毕竟开那么多的端口,比较不安全呀!)

#vim /etc/sysconfig/iptables

#service iptables stop  //关闭防火墙

通过#rpcinfo -p 10.10.209.148

[[email protected] /]# rpcinfo -p 10.10.209.148
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 52943 status
100024 1 tcp 37706 status
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 37438 nlockmgr
100021 3 udp 37438 nlockmgr
100021 4 udp 37438 nlockmgr
100021 1 tcp 46331 nlockmgr
100021 3 tcp 46331 nlockmgr
100021 4 tcp 46331 nlockmgr
100005 1 udp 57177 mountd
100005 1 tcp 43147 mountd
100005 2 udp 49154 mountd
100005 2 tcp 54810 mountd
100005 3 udp 55707 mountd
100005 3 tcp 58309 mountd

时间: 2024-08-08 05:24:05

NFS挂载报错的相关文章

NFS客户端配置为开机自动挂载报错(二)

NFS客户端配置为开机自动挂载时,系统启动报错. 报错信息类似: mount: mount: mount to NFS server '172.16.1.254' failed: mount: System Error: No route to host. 原因:网络启动后需要对网络内路由表进行"学习".在未完成路由表学习之前启动netfs服务会报错. 解决方法:延后netfs启动时间.(延时时间以实际情况为准,建议30秒) 示例: 修改:/etc/init.d/netfs脚本 在如下

iscsiadmin 挂载报错

命令: iscsiadm -m discovery -t sendtargets -p dx-it-iscsi-target06 --login 报错1: iscsiadm: Could not scan /sys/class/iscsi_transport. iscsiadm: Could not scan /sys/class/iscsi_transport. iscsiadm: can not connect to iSCSI daemon (111)! iscsiadm: Cannot

关于linux下挂载报错:CIFS VFS: No username specified的问题处理

在此先说一下mount.cifs挂载常用的几种方法 可以直接手动挂载: # mount -t cifs -o username=<username>,password=<password> //192.168.10.10/sharedir /mnt/dir 也可以写到fstab文件中随机自动挂载: //192.168.10.10/sharedir /mnt/dir cifs defaults,username=<username>,password=<passwo

NFS挂载报如下错误信息:mount.nfs: Stale NFS file handle解决

1)用fuser杀掉占用那个目录的进程 linux:~ # fuser -k /home/msgplus/msgplus/remote_dir 2)强制umount linux:~ # umount -f /home/msgplus/msgplus/remote_dir 3)重新挂载 linux:~ # mount -t nfs 193.168.168.85:/home/msgplusdata /home/msgplus/msgplus/remote_dir -o nolock

使用eject 退出光盘,重新挂载报错

使用eject挂载光盘,重新挂载或者安装时候保存信息如下 [[email protected] ~]# yum -y install gcc尝试挂载光盘镜像时出现mount: you must specify the filesystem type 使用-t auto -t iso9660 或不加参数都搞不定,最后在以下链接找到解决办法:问题http://blog.itpub.net/27015256/viewspace-772686/[[email protected] dev]# mount

NFS启动报错

解决办法 service rpcbind restartservice nfs restart

linux下挂在ntfs挂载报错问题解决办法

linux下挂在NTFS格式设备会挂载不了,很大一部分原因是因为没有NTF驱动,现在说的就是没有驱动而挂载不了的解决办法,在linux下安装ntfs-3g驱动,就可以挂载了,先下载r安装包,今天直接说的是yum安装办法第一步:设置yum源 wget http://mirrors.aliyun.com/repo/epel-7.repo第二步:yum查看 yum list |grep ntfs*第三步:安装yum -y install ntfs-3g第四步:挂载mount /dev/sdx /mut

nfs 客户端启动报错rpc.mountd: svc_tli_create: could not open connection for tcp6

# /etc/init.d/nfs start Starting NFS services: [ OK ] Starting NFS mountd: rpc.mountd: svc_tli_create: could not open connection for udp6 rpc.mountd: svc_tli_create: could not open connection for tcp6 rpc.mountd: svc_tli_create: could not open connec

Error:NFS启动无法绑定IPV6地址报错

NFS服务启动时无法绑定ipv6地址 在测试NFS的时候,突然发生了从未有过的错误,故障信息如下,为此特地描述一下排错的过程,供同行参考: info:[[email protected] ~]# service nfs startStarting NFS services:                                     [  OK  ]Starting NFS quotas:                                       [  OK  ]S