File system corruption with ATA RAID-1 on 6-STABLE

Seán C. Farley sean-freebsd at
Sat Nov 19 18:04:37 GMT 2005

I installed 6.0 on a system with two SATA drives in RAID-1.  5.4 is
installed on a standard IDE channel.  All appeared to work well until
sometime after updating the system to 6-STABLE, installing the Nvidia
driver and copying a lot of data (mainly ogg files) from my old hard
drive onto it.  I started seeing a multitude of READ_DMA (or maybe
WRITE_DMA) errors in /var/log/messages.  The system was beginning to
slow down a lot, so I rebooted.  Since then I have been unable to keep
it up without a panic after an fsck in single-user mode.

I realize this does not tell much, but just when is being
removed due to being corrupt the follow panic appears:  Panic:
ffs_valloc: dup alloc The panic may just be from a system that is too
corrupted.  I am amazed it still boots.

I am not sure if it is -STABLE or -RELEASE where the problem really
started since I did not copy anything over until everything look good.

I did not lose anything important, so I do not need to save anything.
How should I proceed or does anyone know if this is a known problem?  I
am able to mount the partitions within the 5.4 system without issue.

Possible related PR's:
i386/75531 (
kern/89069 (

Other oddities:
1. /var/log/messages showed some messages from my 5.4 system at first.
    Are those stored in the BIOS?
2. While copying the data over, I noticed the system running slower and
    slower.  This may have been from all the messages being saved into
    messages about READ_DMA.

atapci0: <VIA 6420 SATA150 controller> port
0xe800-0xe8ff irq 20 at device 15.0 on pci0
ad4: 152627MB <Seagate ST3160827AS 3.42> at ata2-master SATA150
ad6: 152627MB <Seagate ST3160827AS 3.42> at ata3-master SATA150
ar0: 152627MB <VIA Tech V-RAID RAID1> status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad6 at ata3-master

sean-freebsd at

More information about the freebsd-stable mailing list