1827427 Members
3670 Online
109965 Solutions
New Discussion

Re: NFS questions ..

 
SOLVED
Go to solution
someone_4
Honored Contributor

NFS questions ..

Hey everyone,
I am playing around with NFS (yes this is how I spend my saturdays away from work). Well I have 2 systems. Lupus and Lvadm02.Lupus is my nfs server and lvadm02 is my nfs client and I am exporting the directory /nfs_test.It seems I have it working fine. If I am in lvadm02 and touch a file in /nfs_test then go to lupus I see it and the same thing vise versa. I do a bdf on lvadm02 and I see
lupus:/nfs_test 143360 32880 103632 24% /nfs_test
But if I am on Lupus and I do the command showmount I get an error
#showmount
showmount: lupus: RPC: Program not registered
And
#showmount -a
showmount: lupus: RPC: Program not registered
Is there something wrong here?
I am using HPUX 11.0. I do
#cat /etc/rmtab
#vadm02.admin.networkip.net:/nfs_test
lvadm02.admin.networkip.net:/nfs_test
And I see where I have the directory mounted.So I dont know why the showmount commands are not working.

Part2.
In my config for the client lvadm02 when I did
/sbin/init.d/nfs.clent stop|start
There is one line that bothers me
NFS_SERVER not set to one in /etc/rc.config.d/nfsconf, exiting.
I know that in /etc/rc.config.d/nfsconf I have the NFS_SERVER set to 0.SO is this an error or is it just telling me.
THat I have the NFS_SERVER not set to one and that NFS_SERVER is not going to start.

Well thats it ..
thanks
Richard
9 REPLIES 9
Sebastien Masson
Valued Contributor
Solution

Re: NFS questions ..

Be sure all the rpc nfs service run on your client:

rpcbind
rpc.lockd
rpc.statd

Also check name resolution (nsswitch.conf and/or resolv.conf). Try with the IP address instead of hostname.

Try with trace (10.20) or tusc (11x) to trace what showmount try to do.

I already got this message before, but I forgot how I fix it but it's not a big deal since I forgot them .. :-)

Roger Baptiste
Honored Contributor

Re: NFS questions ..

hi,

Seems that one of your nfs related daemons is not running (rpc.mountd?). That's why showmount which queries info through the rpc is not able to give the mount info.
Shutdown and restart the nfs services on your client system.
(/sbin/init.d/nfs.client stop (and then start).
For more info on RPC check:
http://us-support.external.hp.com/cki/bin/doc.pl/sid=70492b380760ab9588/screen=ckiDisplayDocument?docId=200000048194523


Regarding your other question, the message is a normalone generated by the script. You can cat the nfs.client script and see the echo statement.

HTH
raj
Take it easy.
someone_4
Honored Contributor

Re: NFS questions ..

Well it seems like I have rpc running.

# ps -ef|grep rpc
root 1260 1 0 Nov 7 ? 3:30 /opt/dce/sbin/rpcd
root 5395 1 0 15:26:21 ? 0:00 /usr/sbin/rpc.statd
root 8470 8177 1 18:35:49 pts/tb 0:00 grep rpc
root 5302 1 0 15:25:43 ? 0:00 /usr/sbin/rpcbind
root 8427 1 0 18:35:03 ? 0:00 /usr/sbin/rpc.mountd
root 5401 1 0 15:26:21 ? 0:00 /usr/sbin/rpc.lockd
someone_4
Honored Contributor

Re: NFS questions ..

Just wondering ..
when I do bdf on my nfs client.
I see
lupus:/nfs_test 143360 32872 103632 24% /nfs_test
Where is the size set?

Richard
Tom Geudens
Honored Contributor

Re: NFS questions ..

Hi Richard,
It could be that everything is set up fine,
but some networkerrors occured (we got similar warnings after a networkproblem). Restarting
all the NFS-services usually does the trick :
/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

Tom Geudens
A life ? Cool ! Where can I download one of those from ?
someone_4
Honored Contributor

Re: NFS questions ..

I restarted everything ..
and still
showmount: lupus: RPC: Program not registered
(NET-lupus) /eteam# showmount -a
showmount: lupus: RPC: Program not registered
Sachin Patel
Honored Contributor

Re: NFS questions ..

Hi Richard,
Showmount will uses rpc.mountd to show who has mount filesystem from this server.

#showmount -e (does it shows anything.
It sould show your available exported filesystem from this server

Sachin Patel
Is photography a hobby or another way to spend $
someone_4
Honored Contributor

Re: NFS questions ..

Everything is working now. I am not too sure what I did to get it to work. I restarted everything last night before I went to bed. and the showmount -a (as my last post) still didnt work. When I got in there and read the poast ran showmount -e ..
it worked then I ran the other showmount commands per the man pages. And her are the results.

(NET-lupus) /# showmount -e
export list for lupus:
/nfs_test (everyone)
(NET-lupus) /# showmount -a
lvadm02.admin.networkip.net:/nfs_test
(NET-lupus) /# showmount
lvadm02.admin.networkip.net
(NET-lupus) /# showmount -d
/nfs_test

That is the right output.Why did it not work last night after I restarted everything but works now in the morning? Does it take it a few minutes to "mount" the system?

Richard
Sanjay_6
Honored Contributor

Re: NFS questions ..

Hi Richard,

Here is the solution to the problem of rpc program not registered. Have a look at the threads below,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=ece7c83a06c4ebe60d/screen=ckiDisplayDocument?docId=200000006430150

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=ece7c83a06c4ebe60d/screen=ckiDisplayDocument?docId=200000045025681

Seems like your problem has been solved, so this is just for your info.

Hope this helps.

Regds