1834814 Members
2649 Online
110070 Solutions
New Discussion

nfs cant mount remotely

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

nfs cant mount remotely

we are changing the server from which we have an nfs mount exported...

I ported the file to the new host and executed exportfs -a... however, on the other boxes I try to mount the nfs exported directory but I get the following error.

nfs mount: get_fh: chdcfas4.sbc.com:: RPC: Program not registered
nfs mount: get_fh: chdcfas4.sbc.com:: RPC: Program not registered
nfs mount: retry: retrying(1) for: /appl/finapps/appscds after 5 seconds
nfs mount: retry: giving up on: /appl/finapps/appscds

Unix, the other white meat.
9 REPLIES 9
Patrick Wallek
Honored Contributor
Solution

Re: nfs cant mount remotely

Do you have the NFS server running on the new box? Check your /etc/rc.config.d/nfsconf and make sure NFS_SERVER is set to 1. Then do a

# /sbin/init.d/nfs.core start
# /sbin/init.d/nfs.server start

Now try your mount again
Robert-Jan Goossens
Honored Contributor

Re: nfs cant mount remotely

Hi,

Have you got nfs server and nfs client running on the box where you did an export, and nfs client running on the other box.

Hope it helps,
Robert-Jan.
Mark Grant
Honored Contributor

Re: nfs cant mount remotely

Sounds like one or the other machines doesn't have nfs services configured correctly.

Make sure you have all the right things set in /etc/rc.config.d/nfsconf on both hosts and then stop and restart the services thus (some probably aren't running but stopping them won't hurt)

/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.client stop /sbin/init.d/nfs.core stop

/sbin/init.d/nfs.core start
/sbin/init.d/nfs.client start
/sbin/init.d/nfs.server start


Then "exportfs -a" again


Never preceed any demonstration with anything more predictive than "watch this"
Todd McDaniel_1
Honored Contributor

Re: nfs cant mount remotely

Okay started the core/server/client on the server doing the exporting...

However, I still get the same error...

All of these servers had an nfs mount from a different box. All I am trying to do is move the filesystem being exported from one box to another.

all the other boxes are running a client already.
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: nfs cant mount remotely

What should the permissions be on /etc/exports.. it should be exe at least right?

Unix, the other white meat.
Mark Grant
Honored Contributor

Re: nfs cant mount remotely

If you haven't updated /etc/rc.config.d/nfsconf, it won't have made any diference.

Anyway, try "ps -ef | grep nfs" and you should get something like this

root 1401 1396 0 Oct 18 ? 0:00 /usr/sbin/nfsd 4
root 1396 1 0 Oct 18 ? 0:00 /usr/sbin/nfsd 4
root 1402 1401 0 Oct 18 ? 0:00 /usr/sbin/nfsd 4
root 1403 1396 0 Oct 18 ? 0:00 /usr/sbin/nfsd 4
root 1404 1403 0 Oct 18 ? 0:00 /usr/sbin/nfsd 4
root 1405 1396 0 Oct 18 ? 0:00 /usr/sbin/nfsd 4
root 10905 9937 1 17:23:48

You also need "rpc" servers started too so try a "ps -ef | grep rpc" too and make sure you have rpc.mountd running.
Never preceed any demonstration with anything more predictive than "watch this"
Pramod_4
Trusted Contributor

Re: nfs cant mount remotely

1) Ensure that you modified rc.config.d/nfsconf file to start the nfs servers daemons.
2) Do a 'export -a" once you have started the nfs server.

3) from the client do "showmount -e " ? Does it list your exported directory ?

Pramod
Todd McDaniel_1
Honored Contributor

Re: nfs cant mount remotely

mark,

this is what is running when I grep for rpc

root 1317 1 0 Oct 18 ? 0:57 /opt/dce/sbin/rpcd
root 7200 1 0 10:23:08 ? 0:00 /usr/sbin/rpc.lockd
root 6937 1 0 10:22:26 ? 0:00 /usr/sbin/rpcbind
root 7194 1 0 10:23:08 ? 0:00 /usr/sbin/rpc.statd

There is no rpc.mountd running. I think that may be the one thing stopping it.
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: nfs cant mount remotely

Okay got it running now thanks for your help.. heh the mountd wasnt running.
Unix, the other white meat.