Date: Wed, 7 Sep 2005 10:34:23 +0200 From: Dominique Goncalves <dominique.goncalves@gmail.com> To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: VIA 6420 SATA150 controller on FreeBSD 6.0 Message-ID: <7daacbbe05090701341143a4a@mail.gmail.com> In-Reply-To: <4CE29790-127C-4E07-A92F-B5A72EE63CBE@FreeBSD.org> References: <7daacbbe0509060626686aed19@mail.gmail.com> <4CE29790-127C-4E07-A92F-B5A72EE63CBE@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/6/05, S=F8ren Schmidt <sos@freebsd.org> wrote: >=20 > On 06/09/2005, at 15:26, Dominique Goncalves wrote: >=20 > > Hi, > > > > I created a raid-1 with 2 SATA disks with the controller VIA 6420 > > SATA150 from the bios setup. > > FreeBSD detects the array with ar0 and I can use /dev/ar0s1 to mount > > my data on FreeBSD 6.0-BETA4. > > > > atapci0: <VIA 6420 SATA150 controller> port > > 0x9000-0x9007,0x9400-0x9403,0x9800-0x9807,0x9c00-0x9c03,0xa000-0xa00f, > > 0xa400-0xa4ff > > irq 20 at device 15.0 on pci0 > > ata2: <ATA channel 0> on atapci0 > > ata3: <ATA channel 1> on atapci0 > > [...] > > ad4: 194481MB <Maxtor 6L200M0 BANC1G10> at ata2-master SATA150 > > ad6: 194481MB <Maxtor 6L200M0 BANC1G10> at ata3-master SATA150 > > ar0: 194480MB <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 > > > > %mount | grep ar0s1 > > /dev/ar0s1 on /raid (ufs, local, soft-updates) > > > > %df -h | grep ar0s1 > > /dev/ar0s1 184G 54G 115G 32% /raid > > > > If I remove one of the disks, FreeBSD can't mount /dev/ar0s1 and I see > > these errors: > > > > ad4: 194481MB <Maxtor 6L200M0 BANC1G10> at ata2-master SATA150 > > ar0: 194480MB <VIA Tech V-RAID RAID1> status: BROKEN > > ar0: disk0 DOWN no device found for this subdisk > > ar0: disk1 DOWN no device found for this subdisk > > > > and > > # ls /dev/ar* > > /dev/ar0 > > > > AFAIK, if one disk fails, I can continue to use the raid-1 and mount > > ar0s1 (corret me, if I'm wrong). > > > > How can I solve this problem? > > dmesg is attached. >=20 > I've just committed a fix for this to -current. Grap ata-raid.? from > there and you should be fine.. Thanks to your patch for ata-raid.c and ata-raid.h FreeBSD can use the raid-1 with only 1 disk Thanks you very much! ad4: 194481MB <Maxtor 6L200M0 BANC1G10> at ata2-master SATA150 ar0: WARNING - mirror protection lost. RAID1 array in DEGRADED mode ar0: 194480MB <VIA Tech V-RAID RAID1> status: DEGRADED ar0: disk0 READY (master) using ad4 at ata2-master ar0: disk1 DOWN no device found for this subdisk %mount|grep ar0s1 /dev/ar0s1 on /raid (ufs, local, soft-updates) Your patch could maybe be merged in RELENG_6 before 6.0-RELEASE ? FreeBSD support hotplug SATA for this controller? Regards --=20 There's this old saying: "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7daacbbe05090701341143a4a>