Need to upgrade to latest stable mdadm version?
Hi,
I am running serveral Debian Sarge servers with crucial data and need to update (gulp) to the latest stable Linux kernel 2.6.15.1. :( I am terrified.
I would like to match the latest kernel to the latest stable mdadm. What can I do to make that match? I thought that perhaps I should use mdadm 2.2:
however I have been lurking reading the emails on this list and I see scary messages like
1) mdadm-2.2 SEGFAULT: mdadm --assemble --scan from 12-22 (see patches that are sent in)
2) mdadm-2.2 typo dated 1-12-06
How can I get the most current patched version?
Why am I doing this? I am running a few Debian Sarge servers. I would prefer to run everything from Sarge (including the kernel...). However I will be using SATA controllers in my latest installs, and having tried out a few, I discovered that the standard 2.6.8-2 debian Sarge kernel (nor even the 2.6.12 testing) will not work with the SATA controllers I have (2.6.15 in sid does).
I have a promise SATAII 150 TX4 sata controller card as well as a on board via VT8237 sata controller on my Asus A8v motherboard. I found that with the debian Sarge kernel 2.6.8-2: the sata_promise promise module is not working,
and with the ETCH testing 2.6.12: the sata_via module fails with
mdadm -Cv /dev/md0 -n2 -l1 /dev/sda1 /dev/sdb1
mkfs.ext3 /dev/md0
causing reproducible kernel error messages
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x84 { DriveStatusError BadCRC }
ata1: command 0x35 timeout, stat 0xd0 host_stat 0x0
ata1: status=0xd0 { Busy }
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key: Aborted Command
Additional sense: Scsi parity errorend_request: I/O error, dev sda, sector 94109775
raid1: Disk failure on sda1, disabling device.
Operation continuing on 1 devices
ATA: abnormal status 0xD0 on port 0xC007
ATA: abnormal status 0xD0 on port 0xC007
ATA: abnormal status 0xD0 on port 0xC007
ata1: command 0x35 timeout, stat 0xd0 host_stat 0x1
ata1: status=0xd0 { Busy }
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key: Aborted Command
Additional sense: Scsi parity errorend_request: I/O error, dev sda, sector 94109783
Note these messages are not caused by the hard drive (reproduced on multiple hard drives which fine work with the Promise controller), nor is it the controller hardware (occurs with multiple asus A8v motherboards) - because it only happens when both the sata_via and sata_promise controller are loaded by the ETCH debian 2.6.12 kernel. If only sata_via is loaded, system works fine. Moreover it does not happen with the debian SID 2.6.15 kernel :).
So I have to compile my own 2.6.15 kernel. So what version of mdadm do I use? How shall I install it?
Does it make sense to simply compile mdadm 2.2 and replace /sbin/mdadm with the new version?????? How can I get the best recent mdadm? I am using raid1.
Thank you all for all your help in the past!
Mitchell Laks
Quoted 39 lines · Mitchell Laks
<snip>
I have a promise SATAII 150 TX4 sata controller card as well as a on board via VT8237 sata controller on my Asus A8v motherboard. I found that with the debian Sarge kernel 2.6.8-2: thesata_promisepromise module is not working,
and with the ETCH testing 2.6.12: thesata_viamodule fails withmdadm -Cv
/dev/md0-n2 -l1/dev/sda1/dev/sdb1
mkfs.ext3/dev/md0causing reproducible kernel error messages
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x84 { DriveStatusError BadCRC }
ata1: command0x35timeout, stat0xd0host_stat0x0
ata1: status=0xd0 { Busy }
SCSI error : <0 0 0 0> return code =0x8000002
sda: Current: sense key: Aborted Command
Additional sense: Scsi parity errorend_request: I/O error, dev sda, sector 94109775
raid1: Disk failure on sda1, disabling device.
Operation continuing on 1 devices
ATA: abnormal status0xD0on port0xC007
ATA: abnormal status0xD0on port0xC007
ATA: abnormal status0xD0on port0xC007
ata1: command0x35timeout, stat0xd0host_stat0x1
ata1: status=0xd0 { Busy }
SCSI error : <0 0 0 0> return code =0x8000002
sda: Current: sense key: Aborted Command
Additional sense: Scsi parity errorend_request: I/O error, dev sda, sector 94109783Note these messages are not caused by the hard drive (reproduced on multiple hard drives which fine work with the Promise controller), nor is it the controller hardware (occurs with multiple asus A8v motherboards) - because it only happens when both the
sata_viaandsata_promisecontroller are loaded by the ETCH debian 2.6.12 kernel. If onlysata_viais loaded, system works fine. Moreover it does not happen with the debian SID 2.6.15 kernel :).
Quoted 10 lines
So I have to compile my own 2.6.15 kernel. So what version of mdadm do I use? How shall I install it?
Does it make sense to simply compile mdadm 2.2 and replace
/sbin/mdadmwith the new version?????? How can I get the best recent mdadm? I am using raid1.Thank you all for all your help in the past!
Mitchell Laks
Just FYI
I am running the *stock* 2.6.15 and get the same problems (ata timeouts etc)
I recently wrote to the lkml and ide lists following up an old post. No replies yet.
I run sata_via and sata_sil
(I've seen just a few people with these problems - various kernels - all, to my recollection, seem to have two sets of sata controller chips.... I wonder....)
I note you say the *sid* kernel doesn't have these problems so I'll try that. I just wanted to mention that the problem may exist on stock kernels 'cos you talk about rolling your own...
David
Quoted 2 lines · Mitchell Laks
So I have to compile my own 2.6.15 kernel. So what version of mdadm do I use? How shall I install it?
I'm using a stock (www.kernel.org) 2.6.15 kernel on several Debian Sarge servers and just using the debian packaged mdadm. Seems to work OK.
Quoted 2 lines
Does it make sense to simply compile mdadm 2.2 and replace
/sbin/mdadmwith the new version?????? How can I get the best recent mdadm? I am using raid1.
Personally, I'd say don't upgrade unless you actually need the features of the latest & gratest....
Debian sarge ships with 1.9.0:
eagle:~# uname -a Linux eagle 2.6.15 #1 PREEMPT Sat Jan 21 15:59:40 GMT 2006 i686 GNU/Linux eagle:~# mdadm --version mdadm - v1.9.0 - 04 February 2005 eagle:~# dpkg -l | fgrep mdadm ii mdadm 1.9.0-4sarge1 Manage MD devices aka Linux Software Raid
Gordon
Quoted 1 line
Quoted 1 line
and with the ETCH testing 2.6.12: the
sata_viamodule fails with
I'm sure you know that no kernel developer really cares about distro-hacked kernels. why not test a real (kernel.org) kernel?
Quoted 2 lines
Quoted 2 lines
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x84 { DriveStatusError BadCRC }
badcrc's are a sign that the link is failing - bad cable, bad power, overclocking, possibly an error in the driver's timing config. it cannot possibly be an mdadm problem, and cannot be related to other software (kernel memory management, say.)
Quoted 7 lines
Quoted 7 lines
ata1: command
0x35timeout, stat0xd0host_stat0x0
ata1: status=0xd0 { Busy }
SCSI error : <0 0 0 0> return code =0x8000002
sda: Current: sense key: Aborted Command
Additional sense: Scsi parity errorend_request: I/O error, dev sda, sector 94109775
raid1: Disk failure on sda1, disabling device.
I don't know the code well enough to tell whether that CRC error is triggering that cascade of scsi->raid errors.
Quoted 3 lines
Quoted 3 lines
Note these messages are not caused by the hard drive (reproduced on multiple hard drives which fine work with the Promise controller), nor is it the controller hardware (occurs with multiple asus A8v motherboards) - because it
being triggered by a CRC error means that it's definitely a problem in the cable, though it may simply that something has mis-programmed the timing of the port. working with a different controller also doesn't rule out power problems.
Quoted 2 lines
Quoted 2 lines
only happens when both the
sata_viaandsata_promisecontroller are loaded by the ETCH debian 2.6.12 kernel.
I don't see how driver interaction could cause the BadCRC, unless one driver is screwing with the timing registers of the other's hardware.
Quoted 2 lines
Quoted 2 lines
So I have to compile my own 2.6.15 kernel. So what version of mdadm do I use? How shall I install it?
why do you think mdadm has anything to do with it? it's a user-level tool for manipilating md. it only knows blockdevs, not drivers, CRC's, etc.
Quoted 2 lines
Quoted 2 lines
Does it make sense to simply compile mdadm 2.2 and replace
/sbin/mdadmwith the new version?????? How can I get the best recent mdadm? I am using raid1.
mdadm cannot possibly have anything to do with causing BadCRC's. upgrade if you feel like it, but not because of this problem.
Quoted 1 line
I am running the *stock* 2.6.15 and get the same problems (ata timeouts etc)
is there a reason you call this a timeout, rather than a BadCRC?
Possible libata/sata/Asus problem (was Re: Need to upgrade to latest stable mdadm version?)
Quoted 7 lines · Mark Hahn
Quoted 3 lines
Quoted 3 lines
and with the ETCH testing 2.6.12: the
sata_viamodule fails withI'm sure you know that no kernel developer really cares about distro-hacked kernels. why not test a real (kernel.org) kernel?
Only because if the problem exists on the stock kernel and not on the distro kernel then there could be assistance in determining which patch solves (or hides!) the problem. This may or may not actually be helpful.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x84 { DriveStatusError BadCRC }badcrc's are a sign that the link is failing - bad cable, bad power, overclocking,
OK
Quoted 3 lines
possibly an error in the driver's timing config.
A-ha!
Quoted 4 lines
it cannot possibly be an mdadm problem, and cannot be related to other software (kernel memory management, say.)
Agreed.
Quoted 6 lines
I don't see how driver interaction could cause the BadCRC, unless one driver
is screwing with the timing registers of the other's hardware.
And maybe, on a lightly loaded system, RAID causes concurrent access (and potentially triggers problems) more often than a non-RAID solution?
Quoted 6 lines
mdadm cannot possibly have anything to do with causing BadCRC's. upgrade if
you feel like it, but not because of this problem.
Completely agree.
Quoted 6 lines
Quoted 3 lines
I am running the *stock* 2.6.15 and get the same problems (ata timeouts etc)
is there a reason you call this a timeout, rather than a BadCRC?
I had:
ata2: command 0x25 timeout, stat 0x51 host_stat 0x0
It stuck in my head. It's not that representative. My bad.
most errors (for me) were:
Jan 19 15:23:05 haze kernel: ata1: PIO error
Jan 19 15:23:05 haze kernel: ata1: status=0x50 { DriveReady SeekComplete }
Jan 19 15:23:05 haze kernel: ata1: PIO error
Jan 19 15:23:05 haze kernel: ata1: status=0x50 { DriveReady SeekComplete }
Jan 19 15:23:05 haze kernel: ata1: PIO errorBut if you look at:
http://marc.theaimsgroup.com/?l=linux-kernel&m=113769509617034&w=2
you'll see that I had what looked like a 'spurious' bad-block error - and I have an Asus motherboard, am using the via_sata driver, have another sata driver loaded and am using md - all under 2.6.15 .... hence the tentative association of the problems :)
Oh, and libata's error handling is embryonic - maybe it should be retrying. I dunno.
I've seen other potentially related problems in the sata/motherboard/raid area.
Personally I suspect buggy Asus motherboards.
I wonder if the bug is triggered by multiple drivers or some concurrency
- hence raid's involvment...
(Since I suspect md is actually tickling it, not causing it moving to lkml and linux-ide too)
Of course I plan to do some tests - but mentioning it may give others ideas too... And maybe I/we'll get suggestions as to what to try next...
David
Quoted 3 lines · Mitchell Laks
It does not work with the debian sid 2.6.15 kernel. You were far more observant than I. I thought that my 2 raids were working with the debian 2.6.15 but in fact it one of the drives had failed out of the array (thats why it seemed to work, I hadn't slept enough...).
In fact your diagnosis is completely correct. I cannot get both
sata_viaandsata_promiseup at the same time, without timeout problems.
I _hope_ this is just an anomaly as I have a production machine here with 2.6.10, 3 sata_pro6mise cards and using the on-board sata_via interface also.. I was planning on upgrading it to 2.6.15 or 2.6.16 when it's released to gain the benefit of the new raid-5 error recovery patches.
Signature · 3 lines
"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams
Quoted 7 lines · David Greaves
Just FYI
I am running the *stock* 2.6.15 and get the same problems (ata timeouts etc)I recently wrote to the lkml and ide lists following up an old post. No replies yet.
Quoted 8 lines
I run
sata_viaandsata_sil
(I've seen just a few people with these problems - various kernels - all, to my recollection, seem to have two sets of sata controller chips.... I wonder....)I note you say the *sid* kernel doesn't have these problems so I'll try that. I just wanted to mention that the problem may exist on stock kernels 'cos you talk about rolling your own...
David! you are right!
It does not work with the debian sid 2.6.15 kernel. You were far more observant than I. I thought that my 2 raids were working with the debian 2.6.15 but in fact it one of the drives had failed out of the array (thats why it seemed to work, I hadn't slept enough...).
In fact your diagnosis is completely correct. I cannot get both sata_via and sata_promise up at the same time, without timeout problems.
I am hereby switching exclusively to sata_promise as I can install multiple cards on the same machine.
Mitchell
Quoted 8 lines
David
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
(unknown)
In reply to David Greaveshelp