NFS Mout错误对应:clnt_create: RPC: Program not registered

本文记录了常见的NFS Mount时出现的Program not registered的对应方法。

环境

  • OS: CentOS 7.4
  • NFS版本信息
[appman@host131 ~]$ rpm -qa |grep rpcbind
rpcbind-0.2.0-47.el7.x86_64
[appman@host131 ~]$ rpm -qa |grep nfs
libnfsidmap-0.25-19.el7.x86_64
nfs-utils-1.3.0-0.61.el7.x86_64
[appman@host131 ~]$

注:具体设定可参看如下文章。

  • https://blog.csdn.net/liumiaocn/article/details/88653809

错误现象

执行exportfs之后,使用showmount无法正常动作。

[appman@host131 ~]$ sudo showmount -e localhost
[sudo] password for appman: 
clnt_create: RPC: Program not registered
[appman@host131 ~]$

原因

nfs服务未启动,需要保证rpcbind和nfs服务正常启动。

[appman@host131 ~]$ systemctl status nfs
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
[appman@host131 ~]$ 

启动服务并确认

appman@host131 ~]$ systemctl start nfs
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ===
[appman@host131 ~]$ 
[appman@host131 ~]$ sudo showmount -e localhost
Export list for localhost:
/opt/lib/docker 192.168.163.118
[appman@host131 ~]$

你可能感兴趣的:(Unix/Linux,nfs,mount,Program,not,registered,rpcbind,linux)