LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 01-23-2005, 10:09 AM   #1
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Rep: Reputation: 30
How to debug ?NFS


I would appreciate any pointers to how to debug this:

"Suddenly" NFS doesn't seem to be working on one of my machines. I have a fairly extensive home network with 8 networked computers. Several of them have shares which are automounted via NFS.

The machine in question is my "cutting-edge" box running Debian-unstable, and is always kept updated. Recently, I have not been able to access my NFS mounts from this box.

The network is up, pinging works well, both from and to the box. The mounts are appropriately mounted as per the "mount" command. However, I cannot cd to the mounted FS.

I have:

>> done apt-get dist-upgrade which went without any hassle

>> removed and reinstalled nfs-kernel-server and nfs-common

>> powered down the box several times

>> changed all the connections on the router and switch around, and power- cycled those several times.

>> checked ifconfig (in desperation)


I just don't know where to look further - does any one have any suggestions?

Thanks for any replies
Steve
 
Old 01-23-2005, 11:45 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
What do your logs tell you on both the client and NFS server your mounting from? That's always usually the first step in finding out what exactly is wrong. And don't always trust the mount command in such situations, it can be deceiving.

Also, have you tried not using autofs to mount these shares and manually mounted the shares?
 
Old 01-23-2005, 12:23 PM   #3
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by trickykid
What do your logs tell you on both the client and NFS server your mounting from? That's always usually the first step in finding out what exactly is wrong. And don't always trust the mount command in such situations, it can be deceiving.
Ah .... the LOGS, who would have thought of that?

/var/log/messages shows this

( I have not shown all the entries, there are more of them, the ***s are edited in )

Jan 23 12:08:48 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jan 23 12:09:11 *** kernel: eth0: link down
Jan 23 12:09:13 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jan 23 12:09:14 *** kernel: eth0: link down
Jan 23 12:09:16 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jan 23 12:09:33 *** kernel: eth0: link down
Jan 23 12:09:34 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jan 23 12:09:37 *** kernel: eth0: link down
Jan 23 12:09:38 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jan 23 12:09:39 *** kernel: eth0: link down
Jan 23 12:09:40 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jan 23 12:10:05 *** kernel: eth0: link down
Jan 23 12:10:07 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jan 23 12:10:11 *** kernel: eth0: link down
Jan 23 12:10:13 *** kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

dmesg, of course, shows the same.
So this means that I have an unhappy network card, right?
Strange thing is, my internet connection is working just fine, but I guess I do not need a "persistent" connection for the "stateless" internet, right?

/var/log/daemon.log
/var/log/user.log
/var/log/news/news.crit
/var/log/news/news.err
/var/log/news/news.notice
/var/log/debug

did not show much that seemed helpful.

So, I suppose the next step would be to swap out the network card, right? Do you know of any software that could help diagnose the NIC? The rest of the network seems to be doing OK, so I would think that any hardware issue would be on this machine and not on the router / switch.

Quote:

Also, have you tried not using autofs to mount these shares and manually mounted the shares?
Yes, I forgot to mention that. Manual mounting simply freezes the console.

Thanks for the help, trickykid
Steve
 
Old 01-23-2005, 12:29 PM   #4
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 30
Hmmmm ... I'm also seeing similar entries in var/log/messages on the server, so the problem must be the router, then.

I'm going to simplify the network to only 2 computers, and see what happens.

Steve
 
Old 01-23-2005, 12:57 PM   #5
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 30
OK, that did not fix things either.

This is the message that I am seeing in /var/log/messages on the client (192.168.0.10):

Jan 23 12:49:35 *** kernel: Inbound IN=eth0 OUT= MAC=00:40:ca:54:bf:7c:00:50:ba:50:95:eb:08:00 SRC=192.168.0.12 DST=LEN=44 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=TCP SPT=111 DPT=901 WINDOW=5840 RES=0x00 ACK SYN URGP=0

This is repeated many times

/var/log/messages on the host (192.168.0.12) is happier now.

00:40:ca:54:bf:7c: is the MAC for 192.168.0.10
00:50:ba:50:95:eb: is the MAC for 192.168.0.12

I am not sure what the 08:00 represents.

[edit]
When I add the rest of the network back, I see similar strings with the MAC for the other machines substituted in the above string
[/edit]


I tried 3 different switches ( 1 router, and 2 switches, all with only the 2 machines in question connected. I can still ping the host from the client and vice versa, and mounting from the client still hangs, although it does not hang the console. ( I rebooted both host and client again)

Any thoughts?

Steve

Last edited by Steve Cronje; 01-23-2005 at 01:03 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
fast encrypted NFS but slow regular NFS cazzazullu Linux - Networking 0 10-19-2004 10:08 AM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM
[debug]what does the following debug information mean icoming Programming 21 06-08-2004 02:13 AM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration