NFS problem: mount: RPC: Program not registered

I have two Linux boxes (RedHat 6.0) and this is what I get when I try to use mount command:
mount: RPC: Program not registered
(this happens on one of the machines only) I can mount with the second one just fine. I was wondering what would cause this error message and how could I fix it.

Example:

[root@a1 /home]# mount a2:/home/ab/ /home/cd/
mount: RPC: Program not registered
[root@a1 /home]#
Doomed4Asked:
Who is Participating?
 
marcelvhConnect With a Mentor Commented:
1) your /proc/filesystems don't include 'nfs' . Your kernel seems not support nfs
The hard way (but the simplest) can be to recompile a new kernel where nfs is include.
for this in /usr/src/linux do
a "make menuconfig"
configure your kernel
don't forget in the menu "filesystem" --> "networkfilesystem" to include nfs as part of your new kernel.
the rest is classic:
make dep; make clean ; make bzImage
install your kernel
edit lilo.conf to your new kernel ( as test f.i.) and execute lilo to refresh your mbr
2) to verify wich rpc services are register you can do a "rpcinfo -p" on each computer
the /etc/rpc file is sdandard and must have an entry for the services you want to use - here nfs and mountd
my standard numbers are
nfs 100003
mountd 100005

marcel


0
 
marcelvhCommented:
try to see if nfsd and mountd are fired with "ps x" command, if not  thats your problem ,if they are go to see in the file /etc/services if rpc , ... are uncomment
0
 
marcelvhCommented:
rectification, apologize
/etc/services don't concern nfs
but:
1)you can see if nfs is support if you see him in /proc/filesystems
2)to use nfs your configuration must include the execution at the boottime of
rpc.portmap
rpc.nfsd
rpc.mountd
in this order - verify this at the boot time
/etc/rpc inform of all the services that are connect on RPC
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
Doomed4Author Commented:
marcelvh,

rpc.portmap
rpc.nfsd
rpc.mountd

start in correct order, and this is what /proc/filesystems looks like:  

[root@a1 /proc]# more filesystems
        ext2
nodev   proc
        iso9660
nodev   devpts

what else do you think might be wrong?
0
 
ashfaq786Commented:
wheather yur directory mount is a slice
or a sub direcory
0
 
n0thingCommented:
/etc/rc.d/init.d/nfs start
to start the NFS deamon on the 2nd server.
Add the pair of hostname/IP to both machine.
On the client side, you must start the nfs client.
There's a few scripts under /etc/rc.d/init.d and etc/rc.d/rc3.d
0
 
Big_SmirkCommented:
Had the same issue with Mandrake 9.1

I didn't instally autofs.  In the description it talked about automatically mounting _and_ unmounting fs.  I didn't think I wanted auto unmounting so I deselected that package... well, now I know better.

1) I did a search for packages that contained a file called mount, autofs had that.
2) Reading a bit further down the description it seems that it is recommended for all networked workstations.  So, I learned that automounting and unmounting is the norm.

Finally.
3) I installed and the not registered message went away.

Smirk
0
All Courses

From novice to tech pro — start learning today.