Skip to contentSkip to conversation

New: kernel 2.6.26 reports massive filesystem errors on RAID5 device; on 2.6.24 it is working but not well

Bug 11328 [email protected] 1 participant 5 messages Aug 14, 2008 libata

lore
Share & tools
lore
#0 lore raw

http://bugzilla.kernel.org/show_bug.cgi?id=11328

Summary: kernel 2.6.26 reports massive filesystem errors on RAID5
device; on 2.6.24 it is working but not well
Product: IO/Storage
Version: 2.5
KernelVersion: 2.6.24 / 2.6.26
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IDE
AssignedTo: [email protected]
ReportedBy: [email protected]

I'm running Ubuntu Hardy on a AMD64 machine with a RAID5 array in it, ext3 formatted. It has been working fine for years, with the exception of Gutsy's kernel that couldn't handle that many IDE devices (bug 157909, fixed in hardy).

To make backups, I bought an external drive and an eSata controller. The controller is not supported in Hardy's kernel (2.6.24), but it is in Intrepid, so I installed linux-image-2.6.26-5-generic from intrepid.

Running this kernel causes several changes:
1) My new controller is recognized
2) All disks are now known as /dev/sd* and not /dev/hd*
3) Copying from /dev/md0 results in many filesystem errors
4) e2fsck reports massive errors on the filesystem on /dev/md0

If I reboot into 2.6.24, all problems are gone and everything is back to normal. This implies that there is a major problem somewhere! I happen to mount the device read-only, but mounting it rw will no doubt result in severe damage to the fs. I accidentally tested this by running e2fsck under 2.6.26, which did introduce real errors that I then had to fix under 2.6.24. Now, under 2.6.24, all is fine and 2.6.26 still reports many errors.

Since then, Tejun Heo pointed out that under 2.6.24 were not that good either, all disks on my HPT controller were working in PIO4 (but at least, without error), and advised opening a bug report.

See attachments for details.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#1 lore raw

[Bug 11328] kernel 2.6.26 reports massive filesystem errors on RAID5 device; on 2.6.24 it is working but not well

http://bugzilla.kernel.org/show_bug.cgi?id=11328

------- Comment #1 from [email protected] 2008-08-14 01:05 ------- Created an attachment (id=17229)
--> (http://bugzilla.kernel.org/attachment.cgi?id=17229&action=view)
Dmesg of 2.6.24

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#2 lore raw

[Bug 11328] kernel 2.6.26 reports massive filesystem errors on RAID5 device; on 2.6.24 it is working but not well

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=11328

------- Comment #2 from [email protected] 2008-08-14 01:06 ------- Created an attachment (id=17230)
--> (http://bugzilla.kernel.org/attachment.cgi?id=17230&action=view)
dmesg of 2.6.26

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#3 lore raw

[Bug 11328] kernel 2.6.26 reports massive filesystem errors on RAID5 device; on 2.6.24 it is working but not well

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=11328

------- Comment #3 from [email protected] 2008-08-14 01:06 ------- Created an attachment (id=17231)
--> (http://bugzilla.kernel.org/attachment.cgi?id=17231&action=view)
list of PCI devices; obtained under 2.6.26

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#4 lore raw

[Bug 11328] kernel 2.6.26 reports massive filesystem errors on RAID5 device; on 2.6.24 it is working but not well

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=11328

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

         AssignedTo|[email protected] |[email protected]
             Status|NEW                         |ASSIGNED

------- Comment #4 from [email protected] 2008-08-14 01:37 ------- According to dmesg-2.6.24 all disks on HPT controller are using UDMA100 and there are no error messages about dropping to PIO.

....

[   43.835503] hde: Maxtor 7L300R0, ATA DISK drive
[   43.835536] hde: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[   43.837037] hde: UDMA/100 mode selected
[   43.838590] ide2 at 0x7000-0x7007,0x6802 on irq 16
[   43.838626] Probing IDE interface ide3...
[   44.127439] hdh: Maxtor 5A300J0, ATA DISK drive
[   44.463041] hdg: Maxtor 5A300J0, ATA DISK drive
[   44.463062] hdg: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[   44.463201] hdg: UDMA/100 mode selected
[   44.463340] hdh: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[   44.463472] hdh: UDMA/100 mode selected
[   44.463638] ide3 at 0x6400-0x6407,0x6002 on irq 16
[   44.463692] Probing IDE interface ide0...
[   44.750830] hdb: Maxtor 5A300J0, ATA DISK drive
[   45.086698] hda: Maxtor 5A300J0, ATA DISK drive
[   45.086721] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[   45.086858] hda: UDMA/100 mode selected
[   45.086997] hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[   45.087126] hdb: UDMA/100 mode selected
[   45.087295] ide0 at 0x8800-0x8807,0x8402 on irq 16
[   45.087351] Probing IDE interface ide1...
[   45.374370] hdd: Maxtor 5A300J0, ATA DISK drive
[   45.710125] hdc: Maxtor 5A300J0, ATA DISK drive
[   45.710147] hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[   45.710293] hdc: UDMA/100 mode selected
[   45.710432] hdd: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[   45.710564] hdd: UDMA/100 mode selected
[   45.710728] ide1 at 0x8000-0x8007,0x7802 on irq 16

...

[ You can verify if DMA is really used by checking DMA enable setting with
'hdparm -d /dev/device' and device speed with 'hdparm -Ttf /dev/device'. ]

HPT support in libata (SCSI emulation) is known to be experimental so I advise to use IDE subsystem. I'll re-assign the bug to the right people anyway.

Signature · 4 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.