From owner-freebsd-current Thu Jan 9 11:35:34 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 84AA937B401 for ; Thu, 9 Jan 2003 11:35:33 -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 E339043F13 for ; Thu, 9 Jan 2003 11:35:21 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id h09JZF2e046935; Thu, 9 Jan 2003 20:35:15 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200301091935.h09JZF2e046935@spider.deepcore.dk> Subject: Re: mirrored root fs? In-Reply-To: To: Nate Lawson Date: Thu, 9 Jan 2003 20:35:15 +0100 (CET) Cc: 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 Nate Lawson wrote: > On Tue, 7 Jan 2003, Soeren Schmidt wrote: > > For those that are brave enough to play with this I just created the > > following small change to ata-raid.c. Now it will always rebuild the > > array on creation, using the first disk as the master image. This > > allows you to turn any set of ATA disks into a mirror on the fly.. > > Remember to rename you filesystems in fstab before booting :) > > Thanks, couple comments: > * You should be able to use M_WAITOK in your mallocs for all funcs called > by ioctl since you have a process context Good point.. > * Shouldn't you only do the rebuild automatically if the raid type is > AR_F_FREEBSD_RAID? It's not necessary if it's hw raid, right? If you create the RAID from within FreeBSD on a running system it is needed for all controllers. I also need to defer access through *strategy while doing the setup, and let it loose when the build is running. > * Should this be optional so that it's not rebuilt every time you run > atacontrol create? Yes, this was a quick fix, I need an extra argument from atacontrol to flag rebuilding. I'm in the process of refining the RAID ioctl interface so that I can use it for the SuperTrak (ie intelligent) controllers as well, we dont need more XXXcontrol programs... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message