Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having problems with NFS

Status
Not open for further replies.

robman70

Technical User
Aug 6, 2002
90
I am trying to share files between two redhat 7.2 boxes, on the box im trying to connect from (homer.simpson), the the /etc/exports file has

/misc/share marge.simpson(rw)

on marge.simpson, when i type
mount -t nfs homer.simpson:/misc/share /mnt/nfs

i get an error saying
mount: cant get address for homer.simpson

when i type
mount -t nfs 192.168.2.100:/misc/share /mnt/nfs

i get
mount: RPC: Unable to receive; errno = Connection refused

both computers have the same files set up the same way, naturally i get the same error if im trying to connect marge to homer or homer to marge

does anyone have any idea what im missing or what the problem is, i chmod 0777 /misc/share on both computers, dont know if that even makes a difference

any help is greatly appreciated
thanks
 
If homer.simpson has been told to share the resource with marge.simpson, and if homer.simpson was not resolvable, I'd bet that marge.simpson is not resolvable, either.

Edit /etc/exports to share the resource to an IP address.


You could also solve the problem and leave the names in the files by adding the other address and computer name to each machine's /etc/hosts file. ______________________________________________________________________
TANSTAAFL!
 
ok, i changed my /etc/hosts files on both computers, they both read:
192.168.2.100 homer.simpson
192.168.2.102 marge.simpson


both of my /etc/exports are the same:
/misc/share homer.simpson(rw)
/misc/share marge.simpson(rw)
/misc/share 192.168.2.100(rw)
/misc/share 192.168.2.102(rw)


i then did '/sbin/service nfs restart' which told me that i had duplicates, but it still said it was ok, so i tried to mount my other computer again, but it told me
mount: RPC: Unable to receive; errno = Connection refused

so i took the ip addresses out of exports restarted nfs again, this time it didnt complain about duplicates, but when i tried to mount my other computer i still got
mount: RPC: Unable to receive; errno = Connection refused

thanks for the help so far, it seems like there might be something preventing my computers from receiving information from each other, the files i mentioned here are the only ones ive made any changes to, is there anything im forgetting?

Thanks
 
What about tcp wrappers maybe interferring? Try a "
Code:
telnet marge.simpson 2049
" and see what things look like. I've never run nfs, and am not sure if it's even runnable via inetd. Ignore me if not ;-)

No chance of it being an ipchain or iptable rule blocking access is there?
 
how would i check to see if its being blocked by ipchains or iptables?

i tried 'telnet marge.simpson 2049' and i got an error:
Telnet: connect to address 192.168.2.102: Connection refused, any idea why the connection would always be refused? thats the same thing i get when i try to connect via nfs...Connection refused

thanks for the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top