From owner-freebsd-current@FreeBSD.ORG Wed Sep 7 08:34:26 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3524516A41F for ; Wed, 7 Sep 2005 08:34:26 +0000 (GMT) (envelope-from dominique.goncalves@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4016543D49 for ; Wed, 7 Sep 2005 08:34:24 +0000 (GMT) (envelope-from dominique.goncalves@gmail.com) Received: by nproxy.gmail.com with SMTP id x4so470924nfb for ; Wed, 07 Sep 2005 01:34:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uPz3GnYGiCbwNd8+MsCtI4ZooZ+EgDfL/k4xFVrofBSfgwb7sMea9Okc3MkaNShgDhnS4b310b79Q/0bKlqXxpnO+tnTn7PYUgLGVmjudcRbI3qXkdqWGIoansh5WXuNMKApX3c4kwbzhnqSuwpIjYvUvKCdZZtwcJLvFjowwGc= Received: by 10.48.30.19 with SMTP id d19mr350958nfd; Wed, 07 Sep 2005 01:34:23 -0700 (PDT) Received: by 10.49.1.1 with HTTP; Wed, 7 Sep 2005 01:34:23 -0700 (PDT) Message-ID: <7daacbbe05090701341143a4a@mail.gmail.com> Date: Wed, 7 Sep 2005 10:34:23 +0200 From: Dominique Goncalves To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= In-Reply-To: <4CE29790-127C-4E07-A92F-B5A72EE63CBE@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7daacbbe0509060626686aed19@mail.gmail.com> <4CE29790-127C-4E07-A92F-B5A72EE63CBE@FreeBSD.org> Cc: freebsd-current@freebsd.org Subject: Re: VIA 6420 SATA150 controller on FreeBSD 6.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 08:34:26 -0000 On 9/6/05, S=F8ren Schmidt 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: port > > 0x9000-0x9007,0x9400-0x9403,0x9800-0x9807,0x9c00-0x9c03,0xa000-0xa00f, > > 0xa400-0xa4ff > > irq 20 at device 15.0 on pci0 > > ata2: on atapci0 > > ata3: on atapci0 > > [...] > > ad4: 194481MB at ata2-master SATA150 > > ad6: 194481MB at ata3-master SATA150 > > ar0: 194480MB 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 at ata2-master SATA150 > > ar0: 194480MB 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 at ata2-master SATA150 ar0: WARNING - mirror protection lost. RAID1 array in DEGRADED mode ar0: 194480MB 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."