From owner-freebsd-geom@FreeBSD.ORG Wed May 17 17:21:56 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CAAB16AC27 for ; Wed, 17 May 2006 17:21:56 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E69043D69 for ; Wed, 17 May 2006 17:21:53 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id EFDDA52DDD; Wed, 17 May 2006 19:21:51 +0200 (CEST) Received: from localhost (dkc188.neoplus.adsl.tpnet.pl [83.24.6.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0208250E96; Wed, 17 May 2006 19:21:46 +0200 (CEST) Date: Wed, 17 May 2006 19:19:55 +0200 From: Pawel Jakub Dawidek To: Darcy Buskermolen Message-ID: <20060517171955.GB838@garage.freebsd.pl> References: <200605161555.08195.darcy@wavefire.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline In-Reply-To: <200605161555.08195.darcy@wavefire.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: Slices + stripes and mirrors X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 17:21:57 -0000 --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 16, 2006 at 03:55:07PM -0700, Darcy Buskermolen wrote: +>=20 +> I have a 6.1 setup with 4 identical 300GB disks, ad4,6,8,10. I'd like t= o=20 +> create a bootable mirror (gm0s1) of all 4 disks on a 512MB slice, and ha= ve=20 +> the remaining space a big slice (gs0s2). I've tried several different t= hings=20 +> using the docs found @ http://people.freebsd.org/~rse/mirror/ as a guide= ,=20 +> with little luck, what I usually end up with an invalid partition table,= or=20 +> no boot device error when I reboot. I think the key is somehow in how t= he=20 +> slices are created on the original (ad4) disk. +>=20 +> If someone could provide me with some insight on how to accomplish this = that=20 +> would be very much usefull. +>=20 +>=20 +> [------------------ad4-----------------] +> [------ad4s1------][------ad4s2------] +> [--mirror/gm0s1--][--stripe/gs0s2--] +>=20 +> [-----------------ad6------------------] +> [------ad6s1------][------ad6s2------] +> [--mirror/gm0s1--][--stripe/gs0s2--] +>=20 +> [------------------ad8-----------------] +> [------ad8s1------][------ad8s2------] +> [--mirror/gm0s1--][--stripe/gs0s2--] +>=20 +> [-----------------ad10-----------------] +> [------ad10s1-----][-----ad10s2-----] +> [--mirror/gm0s1--][--stripe/gs0s2--] Ok, first initialize your disks and create two slices on them: # apply "fdisk -Bi /dev/ad%1" 4 6 8 10 (If they are identical, you can probably initizlize one of them and copy first 63 sectors to the others.) Once you have your slices, create a mirror: # gmirror label -b round-robin gm0s1 /dev/ad{4,6,8,10}s1 And partition (needed for booting): # bsdlabel -wB /dev/mirror/gm0s1 Now, the root file system: # newfs /dev/mirror/gm0s1a Mount it and copy files there. Creating stripe is also easy: # gstripe label -s 16384 gs0s2 /dev/ad{4,6,8,10}s2 You can create file system directly on it: # newfs -U /dev/stripe/gs0s2 BTW. You may consider creating root file system only on a two-slices mirror and in addition create swap on a mirror built from the rest two slices. Good luck! --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEa1s7ForvXbEpPzQRAjXCAKDrybnn6oHoPNsoYHbhzM7uj5LzDQCgyLTj aHdtmTZZf2Hqb22BFYYAe60= =v01R -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI--