clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
阿新 • • 發佈:2020-12-25
解決:clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
實驗環境:centos7。
實驗目的:NFS 儲存部署。
[[email protected] ~]# 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通)
[[email protected] ~]# 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
- 若這時候,還是一樣的報錯
[[email protected] ~]# showmount -e 192.168.10.132
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
- 檢視環境伺服器的防火牆
[[email protected] ~]# 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
12月 23 06:28:18 ovirt-node systemd[1]: Starting firewalld - dynamic firewa....
12月 23 06:28:18 ovirt-node systemd[1]: Started firewalld - dynamic firewal....
12月 23 06:28:19 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
12月 23 08:00:26 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
Hint: Some lines were ellipsized, use -l to show in full.
- 關閉防火牆
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# 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)
12月 23 06:28:18 ovirt-node systemd[1]: Starting firewalld - dynamic firewa....
12月 23 06:28:18 ovirt-node systemd[1]: Started firewalld - dynamic firewal....
12月 23 06:28:19 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
12月 23 08:00:26 ovirt-node firewalld[1013]: WARNING: AllowZoneDrifting is ....
12月 23 08:37:27 ovirt-node systemd[1]: Stopping firewalld - dynamic firewa....
12月 23 08:37:28 ovirt-node systemd[1]: Stopped firewalld - dynamic firewal....
Hint: Some lines were ellipsized, use -l to show in full.
- 檢測
[[email protected] ~]# showmount -e 192.168.10.132
Export list for 192.168.10.132:
/var/nfs/iso *
/var/nfs/vmstorage *
- 與部署環境的伺服器相比
[[email protected] ~]# exportfs -avr
exporting *:/var/nfs/iso
exporting *:/var/nfs/vmstorage
[[email protected] ~]#
- 這時我們的NFS 儲存部署報錯就解決了。