Link to home
Start Free TrialLog in
Avatar of Traverse-61
Traverse-61

asked on

NFS problems

i get the following error when i try to mount my share:

root@23# mkdir /export/home/test_nfs
root@23# mount 19:/export/home/test_nfs /export/home/test_nfs
nfs mount:19: : RPC: Rpcbind failure - RPC: Unable to receive
nfs mount: retrying: /export/home/test_nfs
nfs mount:19: : RPC: Rpcbind failure - RPC: Unable to receive

root@23# ps -ef | grep nfs
 daemon   502     1  0   Mar 09 ?        0:00 /usr/lib/nfs/statd
root   501     1  0   Mar 09 ?        0:00 /usr/lib/nfs/lockd
 root  1659  1629  0 09:57:25 pts/1    0:00 grep nfs


NFS Server config:
root@19# ./nfs.server start
root@c19# share
-               /export/home/test_nfs   ro   "" 
root@19# ps -ef | grep nfs
    root  2288  2174  0 09:56:59 pts/1    0:00 grep nfs
    root  2284     1  0 09:56:14 ?        0:00 /usr/lib/nfs/nfsd
root@19# share
-               /export/home/test_nfs   ro   "" 
root@19# more /etc/dfs/dfstab

#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command '/etc/init.d/nfs.server start' to run the NFS
#       daemon processes and the share commands, after adding the very
#       first entry to this file.
#
#       share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
share -F nfs -o ro /export/home/test_nfs

Avatar of neteducation
neteducation

Is your server really only called 19 ?

I could imagine mount is trying to access a machine at 0.0.0.19

try mounting with the ip-address to see if it's about that

mount 192.168.0.10:/export/home/test_nfs /export/home/test_nfs
Avatar of Traverse-61

ASKER

No the actuall hostname is much longer.  I figured out the problem.  NFS needs RPC.

Kill all NFS services.  Start RPC.  Re-enable NFS. Works just fine.

Thanks,

Trav.
ASKER CERTIFIED SOLUTION
Avatar of neteducation
neteducation

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks neteducation, for trying to help out, but I found the solution,  See my comments above regarding NFS and RPC.  You get the points for responding.
I was thinking about the RPC thing too, but the error message was more like the ip-problem.

Funny thing aside: I'm teaching a course this week... and this afternoon I was telling my students about how RPC works, and tomorrow I'll tell them how NFS works. So good timing for your question :-)

Thanks for the point anyway. maybe this "solution" will help somebody else :)