From owner-freebsd-current Mon Jan 6 23:51:45 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 9765037B401 for ; Mon, 6 Jan 2003 23:51:43 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B3C243E4A for ; Mon, 6 Jan 2003 23:51:42 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id h077pdhq057490; Tue, 7 Jan 2003 08:51:39 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200301070751.h077pdhq057490@spider.deepcore.dk> Subject: Re: mirrored root fs? In-Reply-To: To: "Andrew P. Lentvorski, Jr." Date: Tue, 7 Jan 2003 08:51:39 +0100 (CET) Cc: Nate Lawson , current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 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 It seems Andrew P. Lentvorski, Jr. wrote: > On Tue, 7 Jan 2003, Soeren Schmidt wrote: > > > Not true, you can boot off a broken mirror on a non-RAID ATA controller, > > and then rebuild on the fly with atacontrol once the system is up > > Is this new (ie. since August 22, 2002)? I attempted to do this back then > and I couldn't actually get a rebuild to work for stock ATA controllers. > At that point, I kept getting: > atacontrol: ioctl(ATARAIDREBUILD): Operation not supported by device > > See: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=698625+0+archive/2002/freebsd-stable/20020825.freebsd-stable > for details on my abortive attempts to get this to work. > > Will I get different results if I try this procedure again, now? > Alternatively, what did I do wrong in the original procedure? It should work on 4.7 forward, but its been a while since I played with it. Another thing is that its a pain to make a mirror on an already running system (which is often wanted), so I plan to add an option to atacontrol to tell where to get the master from, and then do an automatic rebuild during the create phase ie: atacontrol create RAID1 ad0 ad2 source ad0 This will create a mirror using ad0 and ad2, and start a rebuild to build the master with data from ad0. This way you can do a normal install, add a second (identical or bigger) disk, and make a mirror out of those. You just have to change your fstab before rebooting (ad0 -> ar0) in order to boot... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message