From owner-freebsd-current Mon Jan 6 11:49:58 2003 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 01DE437B401 for ; Mon, 6 Jan 2003 11:49:57 -0800 (PST) Received: from newtrinity.zeist.de (newtrinity.zeist.de [193.111.112.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AE1643ED4 for ; Mon, 6 Jan 2003 11:49:56 -0800 (PST) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.6/8.12.6/ZEIST.DE) with ESMTP id h06JnthN001031; Mon, 6 Jan 2003 20:49:55 +0100 (CET) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.6/8.12.6/Submit) id h06JnoJv001030; Mon, 6 Jan 2003 20:49:50 +0100 (CET) (envelope-from marius) Date: Mon, 6 Jan 2003 20:49:50 +0100 From: marius@alchemy.franken.de To: Soeren Schmidt Cc: Nate Lawson , current@FreeBSD.ORG Subject: Re: mirrored root fs? Message-ID: <20030106204950.S35928@newtrinity.zeist.de> References: <20030106201430.R35928@newtrinity.zeist.de> <200301061936.h06JaKma029730@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200301061936.h06JaKma029730@spider.deepcore.dk>; from sos@spider.deepcore.dk on Mon, Jan 06, 2003 at 08:36:20PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 06, 2003 at 08:36:20PM +0100, Soeren Schmidt wrote: > It seems marius@alchemy.franken.de wrote: > > > > if `atacontrol rebuild` would work... Is there simple way, i.e. without > > > > copying the content of the array to a temporary location, to recover from > > > > disk-failures when doing raid1 on non-raid controllers ? > > > > > > The problem is that if its the drive that on you primary channel that > > > dies, not all BIOS's can be taught to boot from the other drive on > > > the secondary channel. The solution is to swap the drives... > > > > Well, and how would one rebuild the array after swaping the drive from the > > secondary channel to the primary and hooking up a replacement drive to the > > secondary channel or if one doesn't want to boot from the array at all ? > > You can boot off the half-mirror and the rebuild with atacontrol once > the system is up (its done in the background so you can continue to > run but access speed will be degraded). And how is this to be done ? :) `atacontrol rebuild ar0` didn't work here ("not configured" IIRC) with a raid1-array on a non-raid controller and atacontrol(8) also states: rebuild Rebuild a RAID1 array on a RAID capable ATA controller. > If you want to not use the array you just delete it with atatcontrol > and the disk will be seen as a normal ATA drive again. > I recovered by copying the content of the half-mirror to another location, unmounting ar0, `atacontrol create ar0 ...` after replacing the broken drive, ..., and finally copying the data back to the array. A simpler way would be fine. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message