From owner-freebsd-current Thu Jan 9 10:46:48 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 D75D937B401 for ; Thu, 9 Jan 2003 10:46:47 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 2583743F18 for ; Thu, 9 Jan 2003 10:46:47 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 21398 invoked by uid 1000); 9 Jan 2003 18:46:47 -0000 Date: Thu, 9 Jan 2003 10:46:47 -0800 (PST) From: Nate Lawson To: Soeren Schmidt Cc: current@FreeBSD.ORG Subject: Re: mirrored root fs? In-Reply-To: <200301071139.h07BdFfG003172@spider.deepcore.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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 * 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? * Should this be optional so that it's not rebuilt every time you run atacontrol create? -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message