NFS问题mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive

在搭建nfs的时候,showmount报错如下

[root@yzlc1 ~]# showmount -e 192.xx.xx.151
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive

 

源端查看nfs是否打开

[root@LZL ~]# exportfs -rv
exporting *:/backup

源端/backup目录已经在exporting状态了

 

检查发现本地防火墙,selinux都已经关闭,源端selinux关闭,但是防火墙没有关

报错是因为没有关闭防火墙


 

[root@LZL ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-05-27 19:07:44 CST; 16h ago
     Docs: man:firewalld(1)
 Main PID: 10612 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─10612 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

May 27 19:07:44 CISServer systemd[1]: Starting firewalld - dynamic firewall daemon...
May 27 19:07:44 CISServer systemd[1]: Started firewalld - dynamic firewall daemon.

防火墙状态为打开,关闭防火墙

[root@CISServer ~]# systemctl stop firewalld  
[root@CISServer ~]# 

 

[root@yzlc1 ~]# showmount -e 192.xx.xx.151
Export list for 192.xx.xx.151:
/backup *

 

这个时候就可以直接mount

mount 192.xx.xx.151:/backup /backup

如果需要rman备份到nfs上,需要在mount时增加参数,不然会备份报错

mount -t nfs -o rw,bg,noac,hard,nointr,rsize=32768,wsize=32768,nolock,proto=tcp,actimeo=0,vers=3,timeo=600  192.xx.xx.151:/backup /backup

你可能感兴趣的:(OS,ORACLE,RMAN,nfs,showmount,mount,-t,nfs,Port,mapper,clntudp_create)