1827696 Members
3158 Online
109967 Solutions
New Discussion

NFS mount

 
Praveen Bezawada
Respected Contributor

NFS mount

Hi
When i try to do a NFS mount a directory i get the error
RPC: program not registered

I am using
mount -F nfs -o ro host:/DIRECTORY /DIRECTORY
I made an entry in /etc/exports file in host and run exportfs -a.
I checked the /etc/rc.config.d/Rpcd file on my machine
START_RPCD=1 entry is present.
what could be the problem
thanks and Regards
Praveen
14 REPLIES 14
Berlene Herren
Honored Contributor

Re: NFS mount

Make sure nfsd is running.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Rick Garland
Honored Contributor

Re: NFS mount

The nfs server (nfsd) does not appear to be running. Can start with /sbin/init.d/nfs.server

Set to start at boot with the file /etc/rc.config.d/nfsconf
rajsri
Frequent Advisor

Re: NFS mount

praveen
check the remote directory you are trying to mounted is exported by doing showmount -e "remote server name " it should give you all exported dir on remote server , then only you can mount it on your ocal server.

Raju
Ian_4
Honored Contributor

Re: NFS mount

From the nfs Server run the following
showmount ?e systemA
rpcinfo -u systemA
rpc.mountd systemA
If all the above give you the same error message then run rpc.mountd on systemA
Praveen Bezawada
Respected Contributor

Re: NFS mount

I have started rpc daemon and nfs.server and am not getting the earlier error .
When i do showmount -e NFSSERVER I get the correct output but when I do NFS mount from my machine I get
'permission denied' even though the IP of my machine is there in /etc/exports file on NFS server

thanks and Regards
Praveen
Ken Scharpell
Valued Contributor

Re: NFS mount


On the nfs server machine if you do the command; exportfs
what does it show ? it should display back the entry for your nfs client and the filesystem exported - ie. the one you are allowed to nfs mount on the client. If not then run; exportfs -a and recheck using the exportfs command, or else you may need to edit the /etc/exports file.
The whole world is a simple perl script
Praveen Bezawada
Respected Contributor

Re: NFS mount

hi

exportfs displays the entry in /etc/exports

Ken Scharpell
Valued Contributor

Re: NFS mount


exportfs displays your entry, thats good. The other things which can give you a permission denied error are;
1. On your nfs server are you logged in as root when attempting to mount it ?
2. Are you mounting the nfs filesystem to an empty directory with correct permissions ?
3. Are you mounting the nfs filesystem with the correct options - is it exported as read-only or read-write, if read-write the permissions on the filesystem on the nfs server need to be 777 before you can mount on the client.
The whole world is a simple perl script
Praveen Bezawada
Respected Contributor

Re: NFS mount

Hi

I am logged in as root , the directory on which I am trying to mount is empty, the permissions are OK and I am trying to RO mount only.
One more thing, in my inetd.conf file lines having RPCD are commented. does it matter.

Thanks and Regards
Praveen
Ken Scharpell
Valued Contributor

Re: NFS mount


Can you send a copy of the exportfs file from the nfs server and the command your using to mount it on the client ?

having the rpc stuff commented out from inetd.conf is normal.
The whole world is a simple perl script
Praveen Bezawada
Respected Contributor

Re: NFS mount

/dist -access=ipaddress1

This is the only line in here
the command i use is

mount -F nfs -o ro ipaddress2:/dist /dist

ipaddress1 = my machine
ipaddress2 = nfs_server
Ken Scharpell
Valued Contributor

Re: NFS mount

Your commands look good. I tried them myself except using the DNS names instead of IP and it worked fine. However, when I replaced the DNS names with the IPs instead I got;
Permission Denied!

Some sort of DNS type problem. Replace your IP's with your servers DNS names and that should fix it.
The whole world is a simple perl script
Praveen Bezawada
Respected Contributor

Re: NFS mount

HI tried using the DNS name instead of the IP.. but it gives the same error : (
T.Watanabe
Advisor

Re: NFS mount

Once I was in same situation.
I changed exports file as following.
--------exports-----
/DIR -access=HOST,ro,root=HOST
--------------------
and command exportfs -a some times.
Then suddenly I could mount. But I don't know the reason, frankly.

With regards,
Watanabe