nfs报错处理:
1、
[[email protected] ~]# 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配置
[[email protected] 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、[[email protected] 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端口使用
[[email protected] ~]# 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
[[email protected] ~]#
7、释放端口
service rpcbind restart