PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > nfs fails on some clients after power failure.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

nfs fails on some clients after power failure.

Réponse
 
LinkBack Outils de la discussion
Vieux 14/11/2007, 17h00   #1
Hendrik Boom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut nfs fails on some clients after power failure.

Last night power went off for several hours.

In the morning there appeared to be no network communication between
machines on my LAN when I booted them. A bit of experimentation localized
it to one particular ethernet hub (two of the machines did not need that
hub to communicate with each other, and they could do that.)

Turning that hub off and on again fixed that problem. Now all the
machines ping each other properly.

One of the machines on that hub (called april) contains the partition
/farhome, which is served to the other systems by NFS.

The NFS client on lovesong, which was one of machines connectedi directly
to the previously ailing hub, has no trouble mounting /farhome.

The two machines that had been able to communicate with each other,
henk-linux and shadow, are no longer able to mount /farhome -- they
receive a timeout after about 20 or 30 seconds.

All these machines run etch. april, the file-server, runs AMD64 etch.
These machines worked properly last evening. They can still ping the
april, so there is network connectivity. I have not changed any
configurations or made any upgrades since they were all working yesterday.

Here's the /etc/exports file on april:

hendrik@april:~$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/farhome 172.25.1.2(rw,sync,no_root_squash,map_identity) 172.25.1.3(rw,sync,no_root_squash,map_identity) 172.25.1.4(rw,sync,no_root_squash,map_identity) 172.25.1.9(rw,sync,no_root_squash,map_identity) 172.25.1.12(rw,sync,no_root_squash,map_identity) 172.25.1.32(rw,sync,no_root_squash,map_identity) 172.25.1.33(rw,sync,no_root_squash,map_identity) 172.25.1.6(rw,sync,no_root_squash,map_identity) 172.25.1.8(rw,sync,no_root_squash,map_identity) 172.25.1.13(rw,sync,no_root_squash,map_identity)
/usr 172.25.1.4(rw,sync,no_root_squash,map_identity)


hendrik@april:~$

And the IP numbers for the clients:

172.25.1.4 lovesong
172.25.1.9 henk-linux
172.25.1.13 shadow

and for the server:

172.25.1.11 april


Would anyone be able to suggest what's failing, and what to do about it?
Or what information I need to gather to diagnose the situation?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 18h20   #2
Hendrik Boom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: nfs fails on some clients after power failure.

On Wed, 14 Nov 2007 16:49:29 +0000, Hendrik Boom wrote:

> I have not changed any
> configurations or made any upgrades since they were all working yesterday.


I may not have made changes, but something has to be different. I'm
hoping someone can me track down what has happened.

-- hendrik
\


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 19h40   #3
David Brodbeck
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: nfs fails on some clients after power failure.


On Nov 14, 2007, at 8:49 AM, Hendrik Boom wrote:
> Would anyone be able to suggest what's failing, and what to do
> about it?
> Or what information I need to gather to diagnose the situation?


Try transferring a file between april and the problem machines with
FTP. Both directions. Sometimes network problems will allow small
ping packets to pass but will run into trouble with anything larger.
This is especially true of duplex mismatches.

If FTP works OK, make sure you haven't accidentally enabled a
firewall on one of the machines. Several ports need to be open for
NTP to work, including portmap.

Check the logs on april to see if it's logging anything when the
other machines try to connect.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 20h20   #4
Hendrik Boom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: nfs fails on some clients after power failure.

On Wed, 14 Nov 2007 11:38:52 -0800, David Brodbeck wrote:

> On Nov 14, 2007, at 8:49 AM, Hendrik Boom wrote:
>> Would anyone be able to suggest what's failing, and what to do
>> about it?
>> Or what information I need to gather to diagnose the situation?

>
> Try transferring a file between april and the problem machines with
> FTP. Both directions. Sometimes network problems will allow small
> ping packets to pass but will run into trouble with anything larger.
> This is especially true of duplex mismatches.
>
> If FTP works OK, make sure you haven't accidentally enabled a
> firewall on one of the machines. Several ports need to be open for
> NTP to work, including portmap.
>
> Check the logs on april to see if it's logging anything when the
> other machines try to connect.


Thanks. When I found your message I immediately got to work.

I look at the system log on april and nothing stands out. So I
go to shadow and issue another mount /farhome request so as to
identify a time (now) where to look in the syslog, and it
mount instantly, with no delay, no timeout.

Damn. It's intermittent.

The system log entry it generates says

Nov 14 15:04:28 april mountd[2662]: authenticated mount request from 172.25.1.13:898 for /farhome (/farhome)

I look back at the system log (not that I know to search for the word
'/farhome' and find a lot more messages like this from earlier in the day,
when I had been truing to mount /farhome on shadow (172,25,1,13). The
only differences are the time and the port number. I find ports 782, 783,
786, 900, 856. and 871 mentioned in the earlier versions of this message.
I presume this is OK, though I wonder why the variation. Could all those
old requests be outstanding, therefore blocking the use of those ports?

Mount requests from lovesong (which worked) contained its domain name
lovesong.topoi.pooq.com instead of its IP number 172.25.1.4.

I also found several occurrences of the following message, with different
IP numbers (including those of lovesong and shadow):

Nov 14 11:04:00 april exportfs[2642]: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "172.25.1.4:/farhome". Assuming default behaviour ('subtree_check'). NOTE: this default will change with nfs-utils version 1.1.0

I presume this isn't relevant, either, but mention it for completeness.
They show up at reboot time.


Anyway, it looks as if it's working now, so I'll have to resume this
conversation next time it fails. Unless there's something diagnostic I
can do while everything seems to be working, of course.

-- hendrik


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h09.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14301 seconds with 12 queries