Re: very long boot sshd

2004-04-08 Thread Lewis Thompson
On Thu, Apr 08, 2004 at 09:17:14AM +0200, RazorOnFreeBSD wrote:
> Do you think I need to change my hardrive already ? It is just one year
> . :(

Good news is that it's probably still under warranty :)

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jabber:[EMAIL PROTECTED] | url:www.lewiz.org |-


pgp0.pgp
Description: PGP signature


Re: very long boot sshd

2004-04-08 Thread Matthew Seaman
On Thu, Apr 08, 2004 at 09:17:14AM +0200, RazorOnFreeBSD wrote:
> I don't think sendmail is the problem... I disabled it from rc.conf... I
> might be wrong but here is what I found in the /var/log/messages that could
> be the suspicious :
> 
> kernel: ad2: UDMA ICRC error cmd=read fsbn 145503 of 14550 #Twice
> kernel: ad2: UDMA ICRC error cmd=read fsbn 147135 of 14550 #4 times
> 
> and then :
> 
> 262 falling back to PIO mode
> 
> The weirdest thing is that numbers seem to randomize a little bit.
> If we consider the previous outputs like .. fsbn A of B
> A and B are different each reboot !
> 
> I don't know if it's the reason of very slow booting but I didn't find
> anything about sendmail in /var/log/messages...
> 
> Do you think I need to change my hardrive already ? It is just one year
> . :(

I'm afraid that is a distinct possibility.  If this machine has been
running satifactorily until now, and then lost the plot without any
interventions like your adding new hardware or doing a major OS
upgrade, then it is probably hardware going marginal.

Those UDMA errors are not good.  Make sure you have good backups, and
keep an eye on the log files to see if the condition persists.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: very long boot sshd

2004-04-08 Thread RazorOnFreeBSD
I don't think sendmail is the problem... I disabled it from rc.conf... I
might be wrong but here is what I found in the /var/log/messages that could
be the suspicious :

kernel: ad2: UDMA ICRC error cmd=read fsbn 145503 of 14550 #Twice
kernel: ad2: UDMA ICRC error cmd=read fsbn 147135 of 14550 #4 times

and then :

262 falling back to PIO mode

The weirdest thing is that numbers seem to randomize a little bit.
If we consider the previous outputs like .. fsbn A of B
A and B are different each reboot !

I don't know if it's the reason of very slow booting but I didn't find
anything about sendmail in /var/log/messages...

Do you think I need to change my hardrive already ? It is just one year
. :(


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: very long boot sshd

2004-04-08 Thread Matthew Seaman
On Wed, Apr 07, 2004 at 07:17:53PM +0200, RazorOnFreeBSD wrote:

> I am actually trying to fix my computer for network problems and so I often reboot. 
> But each reboot is a real pain I don't know why the system loading is blocking 
> on "Starting sshd"

Actually the 'Starting sshd' message indicates that sshd started up
perfectly well, and it the next thing that the system is trying to
start which is giving you problems.

On my system the next thing happens to be sendmail(8), and that has
been known to cause this sort of hang-up.  sendmail(8) will spend a
lot of effort trying to get the IP number and fully qualified domain
names for all interfaces present on the system when it starts up.
Which means that information has to be in the DNS (preferably) or in
/etc/hosts.

If you check the /var/log/messages log file you should see entries
where sendmail complains about not being able to do that -- the long
delay is actually sendmail waiting out the DNS timeout (30s per query
-- doesn't sound like much, but it feels like forever).

Now, given that what I've guessed is correct: you may be using a
system on a private network -- eg. behind a NAT gateway -- and you may
not have any sort of domain name setup, just bare hostnames.  In which
case, just invent a domain part -- say 'localdomain' and make sure
there's an entry for 'hostname.localdomain' in /etc/hosts.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature