原因不明のHDDエラー it821xの設定で解決。

気づいたらHDDのエラー(IFC-AT133RAID-Sの拡張カードに2つ積んでいるのだけれど、両方とも)が出て上手くシャットダウンしてくれなくなっていた我がDebian。このHDDは使用頻度が少なかったものを持ってきていたので、故障ということは無いはずなんだが・・・ 実用上はあまり問題ないものの、気持ち悪い。

気持ち悪いログ
IT8212: IDE controller (0x1283:0x8212 rev 0x13) at PCI slot 0000:00:12.0
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 17 (level, low) -> IRQ 17
it821x: controller in smart mode.
IT8212: 100% native mode on irq 17
ide2: BM-DMA at 0xe000-0xe007
ide3: BM-DMA at 0xe008-0xe00f
Probing IDE interface ide2...
hde: ST3160023A, ATA DISK drive
hde: Performing identify fixups.
hde: MWDMA2 mode selected
Probing IDE interface ide3...
hdg: Maxtor 4R120L0, ATA DISK drive
hdg: Performing identify fixups.
hdg: MWDMA2 mode selected
ide2 at 0xd000-0xd007,0xd402 on irq 17
ide3 at 0xd800-0xd807,0xdc02 on irq 17
hde: max request size: 128KiB
hde: 312581808 sectors (160041 MB) w/8192KiB Cache, CHS=19457/255/63
hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hde: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
hdg: max request size: 128KiB
hdg: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63
hdg:hdg: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hdg: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown

調べてみた。ITE社のIT8212Fというチップが載っているこの拡張カードカーネルにはデフォルトでドライバが入っている。そして動作モードが2つあるとのこと。
年越しそばと初詣は絶対に欠かせない: ディスクIO性能(7) - ITE8212 のRAID機能を探る
http://rayearth.homelinux.net/pukiwiki/?Debian%2FIT8212
http://d.hatena.ne.jp/gmaxlab/20080421/1208780863
Coming Soon
/etc/grub/menu.listのカーネル行に以下の太字を追加。

kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hde1 ro it821x noraid=1

直った。ログ抜粋

Kernel command line: root=/dev/hde1 ro it821x noraid=1
it8212: forcing bypass mode.
it821x: controller in pass through mode.
hde: ST3160023A, ATA DISK drive
hde: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hde: UDMA/100 mode selected
hde: max request size: 512KiB
hde: 312581808 sectors (160041 MB) w/8192KiB Cache, CHS=19457/255/63
hdg: Maxtor 4R120L0, ATA DISK drive
hdg: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdg: UDMA/133 mode selected
hdg: max request size: 128KiB
hdg: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63