Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th October 2004, 07:04 PM
JonR's Avatar
JonR Offline
Registered User
 
Join Date: Apr 2004
Location: Wiltshire - UK
Posts: 199
Can't Mount NFS Share on FC2 Client

This, I told myself, should be easy, after all I've got Samba running ok on the same server and all my XP boxes are able to use the samba shares...

I'm trying to export a directory on my FC2 server via NFS so that my FC2 client can mount it.

I can ping the server from the client either by name or IP address.

On the server I have one directory set to export to Hosts = * and Permissions = RW. The /etc/exports reads thus:
Code:
/home/me/NFSExport *(rw,sync)
On the client as root I type
Code:
# mount -v servername:/home/me/NFSExport /home/me/servername
All I get is:
Code:
mount: no type was given - I'll assume nfs because of the colon
mount to NFS server 'servername' failed: server is down
RPC Error: 12 ( Remote system error )
System Error: 113 (No route to host)
Any help much appreciated...
__________________
One man's geek is another man's guru...
Registered Linux User #363869.
i686 F8, Quad Core F10 64-bit, Core2Duo F16 64-bit.
Reply With Quote
  #2  
Old 14th October 2004, 07:38 PM
Sicily1918's Avatar
Sicily1918 Offline
Registered User
 
Join Date: Oct 2004
Location: Los Angeles
Posts: 73
After modfiying the exports file, on the server, didja:

# exportfs -e

then

# service nfs start

and finally

chkconfig --level 345 nfs on

After that you should be OK. If you did all of that and it still doesn't work, change the exports file, remove the '*' and add the client's name, then restart NFS -- see if it likes that.
Reply With Quote
  #3  
Old 14th October 2004, 08:45 PM
JonR's Avatar
JonR Offline
Registered User
 
Join Date: Apr 2004
Location: Wiltshire - UK
Posts: 199
Quote:
Originally Posted by Sicily1918
# exportfs -e

then

# service nfs start

and finally

chkconfig --level 345 nfs on
Tried that (guess you mean exportfs -a not -e) but no difference. The client gets an IP address via DHCP from a netgear router so I can't hard code the address into the server config files. But I shouldn't need to should I?
__________________
One man's geek is another man's guru...
Registered Linux User #363869.
i686 F8, Quad Core F10 64-bit, Core2Duo F16 64-bit.
Reply With Quote
  #4  
Old 14th October 2004, 09:16 PM
Sicily1918's Avatar
Sicily1918 Offline
Registered User
 
Join Date: Oct 2004
Location: Los Angeles
Posts: 73
Quote:
Originally Posted by JonR
Tried that (guess you mean exportfs -a not -e) but no difference.
Ummm... yeah, I meant 'a'... I was testing you... yeah, that's it!
Quote:
The client gets an IP address via DHCP from a netgear router so I can't hard code the address into the server config files. But I shouldn't need to should I?
I've got a Linksys router and I hard-coded my addresses. Granted, I configured it so that DHCP got assigned from 101 up, so everything below that is not dynamic.

What if you try:

/home/me/NFSExport 192.168.1.0/24(rw,sync)

for your /etc/exports? Substitute 192.168.1.0 for whatever your subnet's set to.

Oh, oh!!! I ran into this before... didja turn off iptables? Last time I tried that (public network) I couldn't get the damn thing to work for like 2 hours, then my co-worker mentions the firewall and I was like "D'oh!".
Reply With Quote
  #5  
Old 15th October 2004, 10:21 AM
JonR's Avatar
JonR Offline
Registered User
 
Join Date: Apr 2004
Location: Wiltshire - UK
Posts: 199
Quote:
Originally Posted by Sicily1918
Oh, oh!!! I ran into this before... didja turn off iptables? Last time I tried that (public network) I couldn't get the damn thing to work for like 2 hours, then my co-worker mentions the firewall and I was like "D'oh!".
Could be, what do I need to turn off?
__________________
One man's geek is another man's guru...
Registered Linux User #363869.
i686 F8, Quad Core F10 64-bit, Core2Duo F16 64-bit.
Reply With Quote
  #6  
Old 1st November 2004, 07:23 PM
JonR's Avatar
JonR Offline
Registered User
 
Join Date: Apr 2004
Location: Wiltshire - UK
Posts: 199
OK, long time no speak (been busy) but at last found time to get back to this. If I turn of my firewall it all works fine. But, I don't really want to turn off my firewall... What ports do I need to open to allow NFS to run without disabling the whole firewall?
__________________
One man's geek is another man's guru...
Registered Linux User #363869.
i686 F8, Quad Core F10 64-bit, Core2Duo F16 64-bit.
Reply With Quote
  #7  
Old 1st November 2004, 08:17 PM
kosmosik's Avatar
kosmosik Offline
Registered User
 
Join Date: Apr 2004
Location: Warsaw, Poland
Age: 32
Posts: 1,085
NFS with firewall is a bit tricky you need to open six ports - udp/111 tcp/111 for RPC, udp/2049 tcp/2049 for NFS and (this is tricky part) unkown ports (not static) for mountd so this is hard... easier way is to force mountd to use static port but mind that this technique will require modifications on server side and on client side. basicaly you need to force server to use static port and then to force clients to connect to that port... check out this HOWTO on details:

http://www.ba.infn.it/calcolo/docume....html#Firewall
Reply With Quote
  #8  
Old 1st November 2004, 10:14 PM
JonR's Avatar
JonR Offline
Registered User
 
Join Date: Apr 2004
Location: Wiltshire - UK
Posts: 199
Thanks Kosmosik, v clear howto but I'm thinking this is looking like loads of hassle.
__________________
One man's geek is another man's guru...
Registered Linux User #363869.
i686 F8, Quad Core F10 64-bit, Core2Duo F16 64-bit.
Reply With Quote
  #9  
Old 1st November 2004, 11:17 PM
kosmosik's Avatar
kosmosik Offline
Registered User
 
Join Date: Apr 2004
Location: Warsaw, Poland
Age: 32
Posts: 1,085
in fact it is like 5 minutes on server... and writing one line on client...
Reply With Quote
  #10  
Old 3rd November 2004, 12:28 AM
ghight Offline
Registered User
 
Join Date: Oct 2004
Location: Indiana
Posts: 30
I think this is an excellent example of an all too common occurance with intranet client firewalls. I'm all for security, but if you truely need a firewall on this computer, then I would recommend not using NFS. However if this computer is on a secure intranet, then a firewall is not needed. At the most, I would run SNORT on it and turn off your firewall on a secured intranet.
__________________
My wife loves Linux! Its paid for her new car, a nice house, expensive shoes, ....
Reply With Quote
  #11  
Old 3rd May 2005, 08:01 AM
pavan_sydney Offline
Registered User
 
Join Date: May 2005
Posts: 5
Hi, I did all wat's described above, but it didn't work. I got the same problem <servr addr> failed:server is down. Am stuck with this since 3hr's, tried including turning off the firewall, tried with nfs version etc...not of much use.........

Any quick help on this appreciated............
Reply With Quote
  #12  
Old 3rd May 2005, 09:54 AM
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
"no route to host" seems to be the key here. Run

tcpdump

in one terminal window while you try the connect in another, see what can be seen.
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
  #13  
Old 3rd May 2005, 10:07 AM
pavan_sydney Offline
Registered User
 
Join Date: May 2005
Posts: 5
hi andy,

i should say you are the legend, it did work. can you give me breifing about what 'tcpdump' do. iboserved it shows the communication between the terminals. is there any thing more.......??

thankx again ..........
Reply With Quote
  #14  
Old 3rd May 2005, 10:10 AM
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
lol... what did work? Tcpdump is just passive, it shouldn't help anything work.... if stuff has started working it is because of some other change.

Tcpdump records all the traffic at your network interface. I suggested it to see which packet exactly is not getting a response and to which IP it is sent, and if there is any ICMP coming back and if so from where.
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
  #15  
Old 3rd May 2005, 10:15 AM
pavan_sydney Offline
Registered User
 
Join Date: May 2005
Posts: 5
hi,

the packet error message was that the admin on the client host (that's the root on client), was prohibited access to the server for the IP packet. so i turned off the fire wall on the server and its mounted the next moment.

nyways u did help me.........cheers
Reply With Quote
Reply

Tags
client, fc2, mount, nfs, share

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mount windows share to share it Dors Using Fedora 3 21st August 2008 02:04 AM
trying to mount NFS share but... nothing Servers & Networking 2 10th October 2007 12:29 AM
Best way to share files between FC6 server and FC6 client? kdekooter Servers & Networking 2 15th April 2007 02:56 AM
trying to mount Windows share with mount -t cifs worldttle Servers & Networking 1 11th March 2007 05:22 PM
Windows 2003 DFS Share and Linux client pparks1 Servers & Networking 2 21st September 2005 01:55 PM


Current GMT-time: 21:24 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat