From owner-freebsd-current Mon Jan 6 11:54:50 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 5E28D37B401 for ; Mon, 6 Jan 2003 11:54:49 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 7308643E4A for ; Mon, 6 Jan 2003 11:54:48 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 11455 invoked by uid 1000); 6 Jan 2003 19:54:49 -0000 Date: Mon, 6 Jan 2003 11:54:49 -0800 (PST) From: Nate Lawson To: David O'Brien Cc: current@freebsd.org Subject: Re: mirrored root fs? In-Reply-To: <20030106192040.GA70802@dragon.nuxi.com> 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 Mon, 6 Jan 2003, David O'Brien wrote: > On Mon, Jan 06, 2003 at 10:27:21AM -0800, Nate Lawson wrote: > > I'd like to have a mirrored root partition. I tried ccd(4) but the boot > > blocks couldn't find the fs. Any idea how much work it would take to > > enable booting a ccd root? Also, does vinum already support this? > > I've moved ccdconfig and ccd.conf to /boot and made /boot its own FS, > wiht the intention of doing what you want to do. I never got around to > testing this setup. :-( That is suboptimal for me since I'd still have to manually mirror the /boot partition (dd) every time I updated the kernel. Not a huge problem but not quite what I want to do. The way I tested this was take a second drive, disklabeled it accordingly: disklabel ad2s1 to create an 'a' partition ccdconfig ccd0 128 none /dev/ad2s1a disklabel -w ccd0c auto newfs /dev/ccd0c cp / to ccd0c Thus there's a one-drive ccd partition. I added boot blocks and attempted to boot it but got a "not ufs" error. The ccd partition format is different from a normal ufs partition. My question was "how different?" and "how much work to have the boot blocks find the right offset to the fs?" ccdconfig is on /sbin so post kernel load should have worked fine. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message