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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

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
marcelvhCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.