Linux NFS 处理
nfs报错处理:
1、
[root@wfj-idc ~]# mount 172.16.63.141:/data1/oradata_backup /u01/oradata_backup
mount.nfs: access denied by server while mounting 172.16.63.141:/data1/oradata_backup
处理查看exportfs配置
[root@rodoops oradata_backup]# vi /etc/exports
/data1/oradata_backup 172.16.63.0(rw,sync)
172.16.63.0(rw,sync) 添加掩码 如: 172.16.63.0/24 (rw,sync)
原因exportfs 支持客户端访问IP范围导致。
2、mount 报错
mount: wrong fs type, bad option, bad superblock on 172.16.63.141:/data1/oradata_backup,
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
处理
yum -y install utils
3、[root@wfj-idc oradata_backup]# umount /u01/oradata_backup
因umount 时,没有退出/u01/oradata_backup
4、强制umount
1)用fuser杀掉占用那个目录的进程
fuser -k /directory
强制umount
2)umount -f /directory
5、查看mount错误日志
cat /var/log/messages
6、查看nfs端口使用
[root@dkprodbs ~]# rpcinfo -p
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
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100005 1 udp 10948 mountd
100005 1 tcp 24252 mountd
100005 2 udp 13875 mountd
100005 2 tcp 34159 mountd
100005 3 udp 11310 mountd
100005 3 tcp 1437 mountd
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 53490 nlockmgr
100021 3 udp 53490 nlockmgr
100021 4 udp 53490 nlockmgr
100021 1 tcp 20069 nlockmgr
100021 3 tcp 20069 nlockmgr
100021 4 tcp 20069 nlockmgr
[root@dkprodbs ~]#
7、释放端口
service rpcbind restart
本文出自 “虫子” 博客,请务必保留此出处http://worms.blog.51cto.com/969144/1658608
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。