NFS
share is a network file sharing protocol. It is used to provide shared access
to files and folders across Linux machines over the network. This error comes
when sometime the NFS service is stopped on the NFS server and will gives the below
error while running showmount –e <NFS Server IP>.
[root@linuxcnf ~]# showmount -e 192.168.1.103
clnt_create: RPC:
Program not registered
[root@linuxcnf ~]#
|
This
article describes How to Resolve showmount fails with error “clnt_create: RPC:
Program not registered “on CentOS
7.
Step 1. Start NFS Service: Go to NFS Server and run the following
command to check the service status and if stopped than start NFS service on NFS server:
[root@linuxcnf ~]# systemctl status nfs
● nfs-server.service - NFS server and
services
Loaded: loaded
(/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset:
disabled)
Drop-In:
/run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: inactive (dead) since Sun 2022-01-16 16:01:12 IST;
6s ago
Process: 2507
ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Process: 2505
ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 2504 ExecStop=/usr/sbin/rpc.nfsd 0
(code=exited, status=0/SUCCESS)
Main PID: 2419 (code=exited,
status=0/SUCCESS)
Jan 16 15:44:00
linuxcnf systemd[1]: Starting NFS server and services...
Jan 16 15:44:00
linuxcnf systemd[1]: Started NFS server and services.
Jan 16 16:01:12
linuxcnf systemd[1]: Stopping NFS server and services...
Jan 16 16:01:12
linuxcnf systemd[1]: Stopped NFS server and services.
[root@linuxcnf ~]#
|
[root@linuxcnf ~]# systemctl start nfs
[root@linuxcnf ~]#
|
Step 2. Enable Auto Start: Run
the following commands to auto start the service across reboot the NFS Server:
[root@linuxcnf ~]# systemctl enable nfs
Created symlink from
/etc/systemd/system/multi-user.target.wants/nfs-server.service to
/usr/lib/systemd/system/nfs-server.service.
[root@linuxcnf ~]#
|
Step 3. Validate Showmount: Go to
the client machine and run the below showmount command to validate the NFS
Server status:
[root@linuxcnf ~]# showmount -e 192.168.1.103
Export list for
192.168.1.103:
/nfsshare *
[root@linuxcnf ~]#
|
Done!!! Showmount fails resolved
on CentOS
7. Now follow the article How
to Mount an NFS Share on CentOS 7 Client and How
to Mount an NFS Share on CentOS 8 Client.
no help
ReplyDeletenot wokring!
ReplyDeleteIts working for my case. Thanks to give this very basic but important hint.
ReplyDelete