Sunday, 16 January 2022

How to Resolve showmount fails with error “clnt_create: RPC: Program not registered “on CentOS 7



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.

2 comments:

  1. A cost/benefit evaluation is finest way|one of the simplest ways|the easiest way} to find out} which system to use given the specifics of a project. An experienced manufacturer might be your greatest useful resource when deciding which system to use. It’s also essential suppose about|to contemplate} design standards for building molds, corresponding to draft angles, radiused edges, assist ribs, and ejector pins. Each of those serves a number of} functions in the mildew to boost the overall efficiency and durability of the final product. Once shrinkage is determined, the following step is suppose about|to contemplate} bodily properties of the fabric, along with size of the Foot Spa Machines mildew, number of cavities in the mildew, and cycle time. Injection molding is considered one of many processes used to mass manufacture plastics.

    ReplyDelete