LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
 
Search this Thread
Old 07-13-2005, 12:15 AM   #1
meeble
LQ Newbie
 
Registered: Mar 2004
Distribution: RedHat / slackware
Posts: 13

Rep: Reputation: 0
Question NFS problems - internal IPs cause it to hang?


Hello,

I have a fileserver that has been serving files via NFS for 3 years that suddenly started having problems. I had tried everything I could think of at the time to trouble shoot, but nothing worked so I formatted the drives and installed a fresh copy of CentOS4. After getting basically everything configured again, I copied over my old trusty /etc/exports file from backup, but the problem still persisted.

Any time I run "/usr/sbin/exportfs -a" it just hangs. (and the /etc/init.d/nfs script just runs "/usr/sbin/exportfs", hence the same stalling occurs.)

I have now figured out that if I use only one line like this in my /etc/exports file:
/share/server1 192.168.1.5(rw,sync,no_root_squash)

exportfs -a will hang and the client will not be able to connect.

if I instead have a line like:
/share/server1 144.96.55.155(rw,sync,no_root_squash)

where I specify the client's external IP address, exportfs -a works great, and the client can connect. The weird thing is if I specify a host name like:
/share/server1 server1.domain.com(rw,sync,no_root_squash)

and put an entry in my /etc/hosts file like:
192.168.1.5 server1.domain.com server1

then running exportfs -a works, and the client can connect fine. So for some reason, my /etc/exports file just stopped liking internal addresses - even though a host name mapped to an internal address works.

The most confusing thing about all of this is the fact that it just stopped working one day. My /etc/exports file has been full of lines containing internal IPs for 3 years.

Any ideas?

Thanks,
Devin

Last edited by meeble; 07-13-2005 at 04:01 AM.
 
Old 07-14-2005, 10:12 AM   #2
RichardStern
LQ Newbie
 
Registered: Jul 2005
Location: New York
Posts: 9

Rep: Reputation: 0
What else changed?

I'm guessing something changed in your network. If there are other people changing things, I would get with the firewall admin, or start looking into any network settings on that box / clients that might have changed.
 
Old 07-14-2005, 03:16 PM   #3
meeble
LQ Newbie
 
Registered: Mar 2004
Distribution: RedHat / slackware
Posts: 13

Original Poster
Rep: Reputation: 0
Re: What else changed?

Quote:
Originally posted by RichardStern
I'm guessing something changed in your network.
Agreed - but as I am the one doing all of the sysadmin work, I can't blame anyone else.
I have installed several new servers this week, (connected to both our internal network
and external network) but I can't figure out why the NFS server all of a sudden won't
accept internal IPs in its /etc/exports file. From everything I can gather, the internal
network and switch is operating normally. But then again, I'm not exactly sure how
to test for small glitches in the internal network. I can say that all of the machines on
the internal network can ping and connect to each other.

Regards,
Devin
 
Old 12-11-2007, 12:15 PM   #4
gruell
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
I'm having the same problem

Did you ever figure out what the problem was?

Kirk
 
Old 07-03-2008, 07:14 AM   #5
umitoz
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
A very late reply, but it may help other googlers like me. Solution is to zero out the file:

Code:
echo > /var/lib/nfs/rmtab
Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
exportfs -r "command not found" zoffmann Linux - Networking 7 06-06-2005 06:01 PM
exportfs: /etc/exports:1 unknown keyword "show" ukrainet Linux - Newbie 2 12-15-2004 07:18 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 09:22 AM


All times are GMT -5. The time now is 04:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration