2008-12-18 08:17:35

by David Newall

[permalink] [raw]
Subject: Halted system won't halt

I've got a remote machine running ubuntu 2.6.24-19-generic which I ssh
into. When I said "poweroff -f -p" it strangely came back after a few
seconds. Perhaps my banging on the keyboard made a difference. The
same thing happened when I said "halt -f -p". Sounds like user error to
me, except the log file shows kernel halt messages. These are the last
n lines logged:

Dec 19 01:48:32 ubuntu -- MARK --
Dec 19 02:08:32 ubuntu -- MARK --
Dec 19 02:18:20 ubuntu kernel: [40201.658595] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Dec 19 02:22:02 ubuntu kernel: [40423.339196] sd 1:0:1:0: [sda] Stopping disk
Dec 19 02:22:03 ubuntu kernel: [40424.243004] System halted.
Dec 19 02:23:33 ubuntu kernel: [40514.506694] sd 1:0:1:0: [sda] Stopping disk
Dec 19 02:23:33 ubuntu kernel: [40514.506748] ata2.01: DISK MIGHT NOT BE SPUN DOWN PROPERLY. UPDATE SHUTDOWN UTILITY
Dec 19 02:23:33 ubuntu kernel: [40514.506756] ata2.01: For more info, visit http://linux-ata.org/shutdown.html
Dec 19 02:23:38 ubuntu kernel: [40519.703866] psmouse.c: Failed to deactivate mouse on isa0060/serio1
Dec 19 02:23:40 ubuntu kernel: [40521.903111] System halted.


I can't explain that.


2008-12-19 12:05:47

by Pavel Machek

[permalink] [raw]
Subject: Re: Halted system won't halt

On Thu 2008-12-18 18:47:21, David Newall wrote:
> I've got a remote machine running ubuntu 2.6.24-19-generic which I ssh
> into. When I said "poweroff -f -p" it strangely came back after a few
> seconds. Perhaps my banging on the keyboard made a difference. The
> same thing happened when I said "halt -f -p". Sounds like user error to
> me, except the log file shows kernel halt messages. These are the last
> n lines logged:
>
> Dec 19 01:48:32 ubuntu -- MARK --
> Dec 19 02:08:32 ubuntu -- MARK --
> Dec 19 02:18:20 ubuntu kernel: [40201.658595] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> Dec 19 02:22:02 ubuntu kernel: [40423.339196] sd 1:0:1:0: [sda] Stopping disk
> Dec 19 02:22:03 ubuntu kernel: [40424.243004] System halted.
> Dec 19 02:23:33 ubuntu kernel: [40514.506694] sd 1:0:1:0: [sda] Stopping disk
> Dec 19 02:23:33 ubuntu kernel: [40514.506748] ata2.01: DISK MIGHT NOT BE SPUN DOWN PROPERLY. UPDATE SHUTDOWN UTILITY
> Dec 19 02:23:33 ubuntu kernel: [40514.506756] ata2.01: For more info, visit http://linux-ata.org/shutdown.html
> Dec 19 02:23:38 ubuntu kernel: [40519.703866] psmouse.c: Failed to deactivate mouse on isa0060/serio1
> Dec 19 02:23:40 ubuntu kernel: [40521.903111] System halted.
>

SMP? Care to try Mark Lord's recent patch on lkml?

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2008-12-20 12:42:40

by David Newall

[permalink] [raw]
Subject: Re: Halted system won't halt

Pavel Machek wrote:
> On Thu 2008-12-18 18:47:21, David Newall wrote:
>
>> "poweroff -f -p" ... strangely came back after a few seconds.
>>
>
> SMP? Care to try Mark Lord's recent patch on lkml?
A surprise to me; yes, the kernel is configured for SMP. (The
hardware isn't.) I can't find the patch. Got another hint for me?

Thanks.

2008-12-20 14:42:33

by Sergio Luis

[permalink] [raw]
Subject: Re: Halted system won't halt

On Sat, Dec 20, 2008 at 9:42 AM, David Newall <[email protected]> wrote:
> Pavel Machek wrote:
>> On Thu 2008-12-18 18:47:21, David Newall wrote:
>>
>>> "poweroff -f -p" ... strangely came back after a few seconds.
>>>
>>
>> SMP? Care to try Mark Lord's recent patch on lkml?
> A surprise to me; yes, the kernel is configured for SMP. (The
> hardware isn't.) I can't find the patch. Got another hint for me?
>
> Thanks.
> --

This is the thread he was talking about, I guess:
http://lkml.org/lkml/2008/12/17/225

Sergio.

2008-12-20 18:11:17

by Pavel Machek

[permalink] [raw]
Subject: Re: Halted system won't halt

On Sat 2008-12-20 23:12:22, David Newall wrote:
> Pavel Machek wrote:
> > On Thu 2008-12-18 18:47:21, David Newall wrote:
> >
> >> "poweroff -f -p" ... strangely came back after a few seconds.
> >>
> >
> > SMP? Care to try Mark Lord's recent patch on lkml?
> A surprise to me; yes, the kernel is configured for SMP. (The
> hardware isn't.) I can't find the patch. Got another hint for me?

If hardware is UP, patch is nop :-(.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html