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

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

实验环境:centos7。
实验目的:NFS 存储部署。

[root@oVirt-Engine ~]# showmount -e 192.168.10.132
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
  • 开启nfs服务
systemctl start rpcbind nfs-server
  • 查看部署了nfs服务的服务器接口(前提两台主机可以ping通)
[root@oVirt-Engine ~]# rpcinfo -p 192.168.10.132
   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  35065  status
    100024    1   tcp  42556  status
    100005    1   udp  20048  mountd
    100005    1   tcp  20048  mountd
    100005    2   udp  20048  mountd
    100005    2   tcp  20048  mountd
    100005    3   udp  20048  mountd
    100005    3   tcp  20048  mountd
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    3   tcp   2049  nfs_acl
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    3   udp   2049  nfs_acl
    100021    1   udp  42203  nlockmgr
    100021    3   udp  42203  nlockmgr
    100021    4   udp  42203  nlockmgr
    100021    1   tcp  37289  nlockmgr
    100021    3   tcp  37289  nlockmgr
    100021    4   tcp  37289  nlockmgr
  • 若这时候,还是一样的报错
[root@oVirt-Engine ~]# showmount -e 192.168.10.132
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
  • 查看环境服务器的防火墙
[root@ovirt-node ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: active (running) since 三 2020-12-23 06:28:18 UTC; 2h 8min ago
     Docs: man:firewalld(1)
 Main PID: 1013 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─1013 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid

1223 06:28:18 ovirt-node systemd[1]: Starting firewalld - dynamic firewa....
1223 06:28:18 ovirt-node systemd[1]: Started firewalld - dynamic firewal....
1223 06:28:19 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
1223 08:00:26 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
Hint: Some lines were ellipsized, use -l to show in full.
  • 关闭防火墙
[root@ovirt-node ~]# systemctl stop firewalld
[root@ovirt-node ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)

1223 06:28:18 ovirt-node systemd[1]: Starting firewalld - dynamic firewa....
1223 06:28:18 ovirt-node systemd[1]: Started firewalld - dynamic firewal....
1223 06:28:19 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
1223 08:00:26 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
1223 08:37:27 ovirt-node systemd[1]: Stopping firewalld - dynamic firewa....
1223 08:37:28 ovirt-node systemd[1]: Stopped firewalld - dynamic firewal....
Hint: Some lines were ellipsized, use -l to show in full.
  • 检测
[root@oVirt-Engine ~]# showmount -e 192.168.10.132
Export list for 192.168.10.132:
/var/nfs/iso       *
/var/nfs/vmstorage *
  • 与部署环境的服务器相比
[root@ovirt-node ~]# exportfs -avr
exporting *:/var/nfs/iso
exporting *:/var/nfs/vmstorage
[root@ovirt-node ~]#
  • 这时我们的NFS 存储部署报错就解决了。

你可能感兴趣的:(实验报错集合(已解决),linux,NFS存储)