System won't shut down...

From: /news_at_kri.st)
Date: 10/30/04


Date: Sat, 30 Oct 2004 18:27:35 +0200


Hello, I've got a server (kernel 2.6.9) that is in trouble. An external
USB disk has throw an error. In order to get it into a good state I
would like to reboot it, but it won't let me.

What I was doiung was untaring a file on an external USB disk. This tar
at one moment just hung there, not doing anything.

dmesg shows lots of errors like

SCSI error : <1 0 0 0> return code = 0x6000000
end_request: I/O error, dev sda, sector 3150391

En then the following:

scsi: Device offlined - not ready after error recovery: host 1 channel 0
id 0 lun 0
sd 1:0:0:0: Illegal state transition cancel->offline
Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1688
  [<c0346346>] scsi_device_set_state+0x96/0xe0
  [<c0344340>] scsi_eh_offline_sdevs+0x50/0x70
  [<c0344741>] scsi_unjam_host+0xc1/0xd0
  [<c03447ed>] scsi_error_handler+0x9d/0xc0
  [<c0344750>] scsi_error_handler+0x0/0xc0
  [<c0104295>] kernel_thread_helper+0x5/0x10
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 3150439
------------[ cut here ]------------
kernel BUG at drivers/block/as-iosched.c:1852!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: vt1211 i2c_sensor i2c_isa ipt_TOS iptable_mangle
ipt_MASQUERADE iptable_nat ipt_REJECT ipt_ULOG ipt_state ip_conntrack
ipt_LOG iptable_filter ip_tables via_rhine mii usb_storage ehci_hcd usbcore
CPU: 0
EIP: 0060:[<c031318f>] Not tainted VLI
EFLAGS: 00010297 (2.6.9-gentoo-r1)
EIP is at as_exit+0x5f/0x70
eax: c6b02ed4 ebx: c6b02ec0 ecx: 00000000 edx: c8fc1e98
esi: c12af834 edi: 00000282 ebp: cdceceb4 esp: c8fc1ed8
ds: 007b es: 007b ss: 0068
Process scsi_eh_1 (pid: 23983, threadinfo=c8fc0000 task=cd59eaa0)
Stack: c12af7a8 c030a584 c12af7a8 c12af7b4 c030c4d6 c12af7a8 c1d03024
c1d03000
        c0347c66 c12af7a8 c1d031a8 c047d2f0 c047d320 cdceced8 c03066a4
c1d03184
        c02a96c7 c1d031a8 c1d031c0 c02a96d0 c1d03000 00000000 c02a99e5
c1d031a8
Call Trace:
  [<c030a584>] elevator_exit+0x14/0x20
  [<c030c4d6>] blk_cleanup_queue+0x26/0x70
  [<c0347c66>] scsi_device_dev_release+0xf6/0x110
  [<c03066a4>] device_release+0x14/0x50
  [<c02a96c7>] kobject_cleanup+0x67/0x70
  [<c02a96d0>] kobject_release+0x0/0x10
  [<c02a99e5>] kref_put+0x25/0x70
  [<c02a96f6>] kobject_put+0x16/0x20
  [<c02a96d0>] kobject_release+0x0/0x10
  [<c0341a12>] __scsi_iterate_devices+0x72/0x90
  [<c0343e8b>] scsi_eh_stu+0x8b/0xf0
  [<c03445b7>] scsi_eh_ready_devs+0x17/0x60
  [<c0344741>] scsi_unjam_host+0xc1/0xd0
  [<c03447ed>] scsi_error_handler+0x9d/0xc0
  [<c0344750>] scsi_error_handler+0x0/0xc0
  [<c0104295>] kernel_thread_helper+0x5/0x10
Code: 83 d8 00 00 00 50 e8 11 b2 ff ff 8b 43 38 50 e8 d8 ee e2 ff 83 c4
0c 89 5c 24 08 5b e9 cb ee e2 ff 0f 0b 3d 07 b2 bd 3f c0 eb cb <0f> 0b
3c 07 b2 bd 3f c0 eb b9 8d b4 26 00 00 00 00 55 57 56 53

Now the situation is that processes that where using the affected
filesystem are hanging, and resist any atempt to be shut down.
(They ignore a kill -9)

The rest of the system is unaffected. But as I want to get the system in
a good state again I want to reboot.

But it won't.

shutdown -h now, or even a "reboot" only results in a message on the
terminals, and the process adding itself to the list of hanging
processes that refuce to be killed.
I tried init 0 but that was ignored.

I'm about to powercycle this system, but is there anything else one can
do in such a situation?

The weird thing is that the system is otherwise unafected. Ok. the
external USB disk is not there. I've got a hanging tar, a hanging bash,
a hanging ls that all refuse to go away when kill -9 -ed. I have also a
hanging reboot, a hanging shutdown. Init is ignored. But the mail and
www server are OK, and I can still log in using ssh...

What to do now?

Krist



Relevant Pages

  • Re: Three problems with Windows XP Home Edition
    ... Still looking for a solution to the "hanging" problem. ... It is only when I am ready to close Windows or reboot. ... >> 1) Windows hangs everytime I try to reboot or shut ... >> 3) Can't sync Palm with Microsoft Money now and it ...
    (microsoft.public.windowsxp.general)
  • Windows XP Hangs
    ... >Is anyone having problems with Windows XP hanging their ... >PC up and the only way to reboot to turning off the ... >system from the power strip? ...
    (microsoft.public.windowsxp.general)
  • Re: System boots with ACPI enabled now but hangs on reboot
    ... > hanging with ACPI enabled. ... > fine but hangs on reboot. ...
    (freebsd-current)
  • OE hanging up - cant switch identity
    ... After trying to delete old mail in a secondary identity, OE is now hanging up ... The email display area is blank, ... "File" option to switch to my primary identity, ... When I reboot, it goes right to ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • OE hanging up - cant switch identity
    ... After trying to delete old mail in a secondary identity, OE is now hanging up ... The email display area is blank, ... "File" option to switch to my primary identity, ... When I reboot, it goes right to ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)