Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2004 11:09:27 +0100
From:      Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To:        Elliot Finley <lists@efinley.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: ASUS P4P800 doesn't reboot
Message-ID:  <1082542166.36802.59.camel@buffy.york.ac.uk>
In-Reply-To: <03b201c42735$413af7b0$32cba1cd@science1>
References:  <03b201c42735$413af7b0$32cba1cd@science1>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-2InATxy4pt9Hj7femBN8
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2004-04-21 at 01:11, Elliot Finley wrote:
> I have several systems using the ASUS P4P800 MB.  When I issue a 'reboot',
> they shut down cleanly.  They then stop after the 'uptime' line and hang.
> 
> If I remember correctly, this started happening between 5.2-R and 5.2.1-R.
> 
> I have a test box that I can take down at any time.  I just need some
> guidance on how to troubleshoot this.

Is this a SCSI based machine? I'm trying to solve this same problem on a
machine I have with an Adaptec 7899 SCSI card and a Mylex 352 raid card
- and have found mine to be hanging while shutting down the SCSI
subsystem. How long have you left it to reboot before giving up waiting?
Can you apply the attached patch and see what messages are given on
shutdown? Also, it is possible that this patch will change things for
you - there are two things that the SCSI shutdown routine can hang on
that will now time out after a few minutes with the patch. Patch is
against top-of-tree -CURRENT. It's worth applying even if you don'y use
SCSI because it adds a few printf's to other places too.

Gavin

--=-2InATxy4pt9Hj7femBN8
Content-Disposition: attachment; filename=shutdownhang.patch
Content-Transfer-Encoding: base64
Content-Type: text/x-patch; name=shutdownhang.patch

LS0tIHN5cy9rZXJuL2tlcm5fc2h1dGRvd24uYy5vbGQJTW9uIEFwciAgNSAyMjowMzozNSAyMDA0
DQorKysgc3lzL2tlcm4va2Vybl9zaHV0ZG93bi5jCVRodSBBcHIgIDggMTg6MzE6MjUgMjAwNA0K
QEAgLTE4Nyw3ICsxODcsNyBAQA0KIHsNCiANCiAJc2h1dGRvd25faG93dG8gPSBob3d0bz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gIik7DQogICAgIC8q
IGZsdXNoIGNhY2hlIG9uIGFsbCBkZXZpY2VzICovDQogICAgIGZvciAoY3RsciA9IDA7IGN0bHIg
PCBkZXZjbGFzc19nZXRfbWF4dW5pdChhdGFfZGV2Y2xhc3MpOyBjdGxyKyspIHsNCiAJaWYgKCEo
Y2ggPSBkZXZjbGFzc19nZXRfc29mdGMoYXRhX2RldmNsYXNzLCBjdGxyKSkpDQpAQCAtMzU0LDYg
KzM1NSw3IEBADQogCSAgICBjaC0+ZGV2aWNlW1NMQVZFXS5wYXJhbS0+c3VwcG9ydC5jb21tYW5k
MiAmIEFUQV9TVVBQT1JUX0ZMVVNIQ0FDSEUpDQogCSAgICBhdGFfY29udHJvbGNtZCgmY2gtPmRl
dmljZVtTTEFWRV0sIEFUQV9GTFVTSENBQ0hFLCAwLCAwLCAwKTsNCiAgICAgfQ0KKyAgICBwcmlu
dGYoImZpbmlzaGVkLlxuIik7DQogfQ0KIA0KIC8qDQo=

--=-2InATxy4pt9Hj7femBN8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1082542166.36802.59.camel>