LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-12-2009, 07:46 PM   #1
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 162

Rep: Reputation: 28
NFS: failed: RPC Error: Program not registered


Sorry about the cross post but this seemed more relevant in the Server forums.

I keep getting this error when trying to mount an NFS " mount to NFS server '192.168.2.252:/mnt/raid5' failed: RPC Error: Program not registered"

Server:
#rpcinfo
program version netid address service owner
100000 4 tcp6 ::.0.111 portmapper superuser
100000 3 tcp6 ::.0.111 portmapper superuser
100000 2 tcp6 ::.0.111 portmapper superuser
100000 4 udp6 ::.0.111 portmapper superuser
100000 3 udp6 ::.0.111 portmapper superuser
100000 2 udp6 ::.0.111 portmapper superuser
100000 4 local /v portmapper superuser
100000 3 local /v portmapper superuser
100000 2 local /v portmapper superuser
100003 2 udp 0.0.0.0.8.1 nfs unknown
100003 3 udp 0.0.0.0.8.1 nfs unknown
100003 4 udp 0.0.0.0.8.1 nfs unknown
100021 1 udp 0.0.0.0.133.16 nlockmgr unknown
100021 3 udp 0.0.0.0.133.16 nlockmgr unknown
100021 4 udp 0.0.0.0.133.16 nlockmgr unknown
100021 1 tcp 0.0.0.0.204.250 nlockmgr unknown
100021 3 tcp 0.0.0.0.204.250 nlockmgr unknown
100021 4 tcp 0.0.0.0.204.250 nlockmgr unknown
100021 1 udp6 ::.223.21 nlockmgr unknown
100021 3 udp6 ::.223.21 nlockmgr unknown
100021 4 udp6 ::.223.21 nlockmgr unknown
100021 1 tcp6 ::.234.145 nlockmgr unknown
100021 3 tcp6 ::.234.145 nlockmgr unknown
100021 4 tcp6 ::.234.145 nlockmgr unknown
100003 2 tcp 0.0.0.0.8.1 nfs unknown
100003 3 tcp 0.0.0.0.8.1 nfs unknown
100003 4 tcp 0.0.0.0.8.1 nfs unknown
100005 1 udp6 ::.203.248 mountd unknown
100005 1 tcp6 ::.157.35 mountd unknown
100005 2 udp6 ::.203.248 mountd unknown
100005 2 tcp6 ::.157.35 mountd unknown
100005 3 udp6 ::.203.248 mountd unknown
100005 3 tcp6 ::.157.35 mountd unknown

Server:
#rpcinfo -p
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
100000 4 0 111 portmapper
100000 3 0 111 portmapper
100000 2 0 111 portmapper
100021 1 udp 57109 nlockmgr
100021 3 udp 57109 nlockmgr
100021 4 udp 57109 nlockmgr
100021 1 tcp 60049 nlockmgr
100021 3 tcp 60049 nlockmgr
100021 4 tcp 60049 nlockmgr
100005 1 udp 52216 mountd
100005 1 tcp 40227 mountd
100005 2 udp 52216 mountd
100005 2 tcp 40227 mountd
100005 3 udp 52216 mountd
100005 3 tcp 40227 mountd

Client:
#rpcinfo -p 192.168.2.252
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
100000 4 0 111 portmapper
100000 3 0 111 portmapper
100000 2 0 111 portmapper
100021 1 udp 57109 nlockmgr
100021 3 udp 57109 nlockmgr
100021 4 udp 57109 nlockmgr
100021 1 tcp 60049 nlockmgr
100021 3 tcp 60049 nlockmgr
100021 4 tcp 60049 nlockmgr
100005 1 udp 52216 mountd
100005 1 tcp 40227 mountd
100005 2 udp 52216 mountd
100005 2 tcp 40227 mountd
100005 3 udp 52216 mountd
100005 3 tcp 40227 mountd


The client IP is 192.168.2.84.

Here is my host.allow:
rpcbind: 192.168.2.84 : ALLOW
mountd: 192.168.2.84 : ALLOW
portmap: 192.168.2.84 : ALLOW
lockd: 192.168.2.84 : ALLOW
rquotad: 192.168.2.84 : ALLOW
statd: 192.168.2.84 : ALLOW

Here is my host.deny:
#Empty

Here is my /etc/exports:
/mnt/raid5 *(rw,no_root_squash,async)

The client can see the export list:
#showmount -e 192.168.2.252
Export list for 192.168.2.252:
/mnt/raid5 *

The firewall is disable on both client and server.

This configuration seemed to work on my other Linux box.

I'm assuming my issues is that the client doestn't see nfs when I do "rpcinfo -p". I can see several NFSD threads running on the server when I do a "ps -fe" and when I do rpcinfo on the server I can see nfs.
Does anyone know why nfs doesn't get reported with "rpcinfo -p"?
 
Old 11-12-2009, 09:46 PM   #2
sujit2106
LQ Newbie
 
Registered: Aug 2009
Posts: 7
Blog Entries: 3

Rep: Reputation: 0
Cool

Quote:
Originally Posted by dbrazeau View Post
Sorry about the cross post but this seemed more relevant in the Server forums.

I keep getting this error when trying to mount an NFS " mount to NFS server '192.168.2.252:/mnt/raid5' failed: RPC Error: Program not registered"

Server:
#rpcinfo
program version netid address service owner
100000 4 tcp6 ::.0.111 portmapper superuser
100000 3 tcp6 ::.0.111 portmapper superuser
100000 2 tcp6 ::.0.111 portmapper superuser
100000 4 udp6 ::.0.111 portmapper superuser
100000 3 udp6 ::.0.111 portmapper superuser
100000 2 udp6 ::.0.111 portmapper superuser
100000 4 local /v portmapper superuser
100000 3 local /v portmapper superuser
100000 2 local /v portmapper superuser
100003 2 udp 0.0.0.0.8.1 nfs unknown
100003 3 udp 0.0.0.0.8.1 nfs unknown
100003 4 udp 0.0.0.0.8.1 nfs unknown
100021 1 udp 0.0.0.0.133.16 nlockmgr unknown
100021 3 udp 0.0.0.0.133.16 nlockmgr unknown
100021 4 udp 0.0.0.0.133.16 nlockmgr unknown
100021 1 tcp 0.0.0.0.204.250 nlockmgr unknown
100021 3 tcp 0.0.0.0.204.250 nlockmgr unknown
100021 4 tcp 0.0.0.0.204.250 nlockmgr unknown
100021 1 udp6 ::.223.21 nlockmgr unknown
100021 3 udp6 ::.223.21 nlockmgr unknown
100021 4 udp6 ::.223.21 nlockmgr unknown
100021 1 tcp6 ::.234.145 nlockmgr unknown
100021 3 tcp6 ::.234.145 nlockmgr unknown
100021 4 tcp6 ::.234.145 nlockmgr unknown
100003 2 tcp 0.0.0.0.8.1 nfs unknown
100003 3 tcp 0.0.0.0.8.1 nfs unknown
100003 4 tcp 0.0.0.0.8.1 nfs unknown
100005 1 udp6 ::.203.248 mountd unknown
100005 1 tcp6 ::.157.35 mountd unknown
100005 2 udp6 ::.203.248 mountd unknown
100005 2 tcp6 ::.157.35 mountd unknown
100005 3 udp6 ::.203.248 mountd unknown
100005 3 tcp6 ::.157.35 mountd unknown

Server:
#rpcinfo -p
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
100000 4 0 111 portmapper
100000 3 0 111 portmapper
100000 2 0 111 portmapper
100021 1 udp 57109 nlockmgr
100021 3 udp 57109 nlockmgr
100021 4 udp 57109 nlockmgr
100021 1 tcp 60049 nlockmgr
100021 3 tcp 60049 nlockmgr
100021 4 tcp 60049 nlockmgr
100005 1 udp 52216 mountd
100005 1 tcp 40227 mountd
100005 2 udp 52216 mountd
100005 2 tcp 40227 mountd
100005 3 udp 52216 mountd
100005 3 tcp 40227 mountd

Client:
#rpcinfo -p 192.168.2.252
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
100000 4 0 111 portmapper
100000 3 0 111 portmapper
100000 2 0 111 portmapper
100021 1 udp 57109 nlockmgr
100021 3 udp 57109 nlockmgr
100021 4 udp 57109 nlockmgr
100021 1 tcp 60049 nlockmgr
100021 3 tcp 60049 nlockmgr
100021 4 tcp 60049 nlockmgr
100005 1 udp 52216 mountd
100005 1 tcp 40227 mountd
100005 2 udp 52216 mountd
100005 2 tcp 40227 mountd
100005 3 udp 52216 mountd
100005 3 tcp 40227 mountd


The client IP is 192.168.2.84.

Here is my host.allow:
rpcbind: 192.168.2.84 : ALLOW
mountd: 192.168.2.84 : ALLOW
portmap: 192.168.2.84 : ALLOW
lockd: 192.168.2.84 : ALLOW
rquotad: 192.168.2.84 : ALLOW
statd: 192.168.2.84 : ALLOW

Here is my host.deny:
#Empty

Here is my /etc/exports:
/mnt/raid5 *(rw,no_root_squash,async)

The client can see the export list:
#showmount -e 192.168.2.252
Export list for 192.168.2.252:
/mnt/raid5 *

The firewall is disable on both client and server.

This configuration seemed to work on my other Linux box.

I'm assuming my issues is that the client doestn't see nfs when I do "rpcinfo -p". I can see several NFSD threads running on the server when I do a "ps -fe" and when I do rpcinfo on the server I can see nfs.
Does anyone know why nfs doesn't get reported with "rpcinfo -p"?

It seems that NFS service is not started
Start the NFS service using below command

/etc/init.d/nfs start or service nfs restart

Sujit2106
 
Old 11-13-2009, 10:47 AM   #3
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 162

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by sujit2106 View Post
It seems that NFS service is not started
Start the NFS service using below command

/etc/init.d/nfs start or service nfs restart

Sujit2106
I have tried restarting the service a few times with no change. It looks like all the services restart correctly.

#service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]


I see all the nfs threads running when I type "ps -fe":

UID PID PPID C STIME TTY TIME CMD
root 1 0 0 01:00 ? 00:00:02 init [3]
root 2 0 0 01:00 ? 00:00:00 [kthreadd]
root 3 2 0 01:00 ? 00:00:00 [ksoftirqd/0]
root 4 2 0 01:00 ? 00:00:00 [watchdog/0]
root 5 2 0 01:00 ? 00:00:00 [events/0]
root 6 2 0 01:00 ? 00:00:00 [khelper]
root 9 2 0 01:00 ? 00:00:00 [async/mgr]
root 76 2 0 01:00 ? 00:00:00 [kblockd/0]
root 81 2 0 01:00 ? 00:00:00 [ata/0]
root 82 2 0 01:00 ? 00:00:00 [ata_aux]
root 136 2 0 01:00 ? 00:00:00 [khungtaskd]
root 137 2 0 01:00 ? 00:00:00 [pdflush]
root 138 2 0 01:00 ? 00:00:00 [pdflush]
root 139 2 0 01:00 ? 00:00:00 [kswapd0]
root 190 2 0 01:00 ? 00:00:00 [aio/0]
root 197 2 0 01:00 ? 00:00:00 [nfsiod]
root 205 2 0 01:00 ? 00:00:00 [crypto/0]
root 776 2 0 01:00 ? 00:00:00 [exec-osm/0]
root 780 2 0 01:00 ? 00:00:00 [mpt_poll_0]
root 781 2 0 01:00 ? 00:00:00 [scsi_eh_0]
root 822 2 0 01:00 ? 00:00:00 [mtdblockd]
root 971 2 0 01:00 ? 00:00:00 [rpciod/0]
root 1195 1 0 01:00 ? 00:00:00 syslogd -m 0
root 1198 1 0 01:00 ? 00:00:00 klogd -x
root 1224 1 0 01:00 ? 00:00:00 rpcbind
root 1237 1 0 01:00 ? 00:00:00 xinetd -stayalive -pidfile /var/
root 1281 1 0 01:00 ? 00:00:00 /usr/local/sbin/sshd
root 1286 1 0 01:00 ? 00:00:00 /usr/bin/perl /usr/local/webmin/
root 1288 1 0 01:00 ttyS0 00:00:00 -bash
root 1346 2 0 01:16 ? 00:00:00 [md0_raid5]
root 1500 2 0 02:14 ? 00:00:00 [lockd]
root 1501 2 0 02:14 ? 00:00:00 [nfsd4]
root 1502 2 0 02:14 ? 00:00:00 [nfsd]
root 1503 2 0 02:14 ? 00:00:00 [nfsd]
root 1504 2 0 02:14 ? 00:00:00 [nfsd]
root 1505 2 0 02:14 ? 00:00:00 [nfsd]
root 1506 2 0 02:14 ? 00:00:00 [nfsd]
root 1507 2 0 02:14 ? 00:00:00 [nfsd]
root 1508 2 0 02:14 ? 00:00:00 [nfsd]
root 1509 2 0 02:14 ? 00:00:00 [nfsd]
root 1512 1 0 02:14 ? 00:00:00 rpc.mountd
root 1514 1281 3 17:48 ? 00:00:00 sshd: root@ttyp0
root 1516 1514 2 17:48 ttyp0 00:00:00 -bash
root 1536 1516 0 17:48 ttyp0 00:00:00 ps -fe
 
Old 11-13-2009, 11:34 AM   #4
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 285

Rep: Reputation: 61
Your syntax for /etc/hosts.allow is incorrect. It should be something like
Code:
rpcbind: 192.168.2.84
mountd: 192.168.2.84
portmap: 192.168.2.84
lockd: 192.168.2.84
rquotad: 192.168.2.84
statd: 192.168.2.84
 
Old 11-13-2009, 12:03 PM   #5
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 162

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by fpmurphy View Post
Your syntax for /etc/hosts.allow is incorrect. It should be something like
Code:
rpcbind: 192.168.2.84
mountd: 192.168.2.84
portmap: 192.168.2.84
lockd: 192.168.2.84
rquotad: 192.168.2.84
statd: 192.168.2.84
I tried the suggested hosts.allow syntax, but it didn't change anything. I still don't see nfs with the command "rpcinfo -p" on both the server and the client (on the client I use "rpcinfo -p 192.168.2.252). However I do see nfs using just "rpcinfo" with no options on the server, is this just my nfs client, as I do nfs mount my root directory on the server?
 
Old 11-13-2009, 02:07 PM   #6
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 162

Original Poster
Rep: Reputation: 28
I reinstalled the portmap and nfs rpms and restarted the machine and now it seems to work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to send 'clear' to local ypserv: RPC:Program not registered beginner16 Linux - Newbie 3 04-29-2014 12:25 PM
NFS server: RPC: Program not registered burbank Linux - Networking 11 09-15-2011 02:04 PM
NFS: failed: RPC Error: Program not registered dbrazeau Linux - Networking 2 03-25-2011 03:35 PM
NFS Issues: rpcinfo -p hangs and RPC...Program not registered... mohtech Linux - Networking 2 11-23-2007 10:53 PM
NFS Portmap: RPC: Program not registered fibbi Linux - Software 2 08-12-2004 12:40 AM


All times are GMT -5. The time now is 09:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration