From owner-freebsd-geom@FreeBSD.ORG Thu Oct 6 20:41:00 2005 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 7857F16A41F for ; Thu, 6 Oct 2005 20:41:00 +0000 (GMT) (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 9288343D45 for ; Thu, 6 Oct 2005 20:40:59 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 8194B50B99; Thu, 6 Oct 2005 22:40:57 +0200 (CEST) Received: from localhost (dlc37.neoplus.adsl.tpnet.pl [83.24.32.37]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 155F050B1C; Thu, 6 Oct 2005 22:40:38 +0200 (CEST) Date: Thu, 6 Oct 2005 22:40:36 +0200 From: Pawel Jakub Dawidek To: Danny Howard Message-ID: <20051006204036.GF26614@garage.freebsd.pl> References: <20051006125233.754dd00e.josh@oplink.net> <86r7aywju7.fsf@xps.des.no> <20051006200802.GL564@ratchet.nebcorp.com> <20051006201616.GE26614@garage.freebsd.pl> <20051006202700.GM564@ratchet.nebcorp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Wb5NtZlyOqqy58h0" Content-Disposition: inline In-Reply-To: <20051006202700.GM564@ratchet.nebcorp.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (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: Dag-Erling Sm?rgrav , freebsd-geom@freebsd.org, Joshua Bell Subject: Re: GEOM's RAID level support 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: Thu, 06 Oct 2005 20:41:00 -0000 --Wb5NtZlyOqqy58h0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 06, 2005 at 01:27:00PM -0700, Danny Howard wrote: +> On Thu, Oct 06, 2005 at 10:16:16PM +0200, Pawel Jakub Dawidek wrote: +> > On Thu, Oct 06, 2005 at 01:08:02PM -0700, Danny Howard wrote: +>=20 +> > +> Has anyone a recipe for a RAID1,0 bootstrap? :) +> >=20 +> > Forget it. Everything which splits the data across disks will not work. +> > With software RAID you can operate on disks, slices, partitions, etc. +> > no limits here. I'd suggest creating small RAID1 on top of small +> > partitions for the root file system (or at least for /boot/ directory, +> > which is minimum). +>=20 +> Well, I have RAID1 systems ... +>=20 +> It seems reasonable to conclude that one could set up / as a RAID1 on +> the first pair of disks, and bootstrap far enough to include swap, /var, +> and /usr from a RAID10 stretched across a full-disk set. It just sounds +> somewhat tricky to set it all up, is all, so if someone has grokked out +> a recipe ... :) This is one of mine setups (5 SATA disks): beast:root:~# df -h -t ufs Filesystem Size Used Avail Capacity Mounted on /dev/mirror/root 1.9G 228M 1.6G 13% / /dev/raid3/usr 3.9G 1.9G 1.7G 53% /usr /dev/raid3/data 570G 99G 425G 19% /usr/home beast:root:~# graid3 status Name Status Components raid3/data COMPLETE ad0s1d ad1s1d ad2s1d ad3s1d ad4s1d raid3/usr COMPLETE ad1s1a ad3s1a ad4s1a beast:root:~# gmirror status Name Status Components mirror/root COMPLETE ad0s1a ad2s1a Next one (RAID1 on three components for root): puppet:root:~# df -h -t ufs Filesystem Size Used Avail Capacity Mounted on /dev/mirror/root 989M 77M 833M 9% / /dev/raid3/usr 3.9G 1.5G 2.0G 43% /usr /dev/raid3/home 56G 1.6G 50G 3% /usr/home puppet:root:~# gmirror status Name Status Components mirror/root COMPLETE da0s1a da1s1a da2s1a puppet:root:~# graid3 status Name Status Components raid3/usr COMPLETE da0s1d da1s1d da2s1d raid3/home COMPLETE da0s1e da1s1e da2s1e But on most of my systems, I've simple RAID1 (this time on whole disks): whiplash:root:~# df -h -t ufs Filesystem Size Used Avail Capacity Mounted on /dev/mirror/COREs1a 989M 53M 857M 6% / /dev/mirror/COREs1d 15G 1.8G 12G 12% /usr whiplash:root:~# gmirror status Name Status Components mirror/CORE COMPLETE da0 da1 My home machine is most interesting (RAID3 is configured on top of two slices and one disk): slayer:root:~# egrep '^ad[0-9]+' /var/run/dmesg.boot ad0: 152627MB at ata0-master UDMA100 ad1: 76319MB at ata1-master UDMA100 ad2: 114473MB at ata2-master UDMA100 ad3: 152627MB at ata3-master UDMA100 slayer:root:~# df -h -t ufs Filesystem Size Used Avail Capacity Mounted on /dev/mirror/COREa 1.9G 687M 1.1G 38% / /dev/mirror/COREd 33G 23G 7.7G 75% /usr /dev/raid3/STUFF 217G 214G 626M 100% /var/ftp slayer:root:~# gmirror status Name Status Components mirror/CORE COMPLETE ad0s1 ad3s1 slayer:root:~# graid3 status Name Status Components raid3/STUFF COMPLETE ad0s2 ad2 ad3s2 Just use your imagination:) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Wb5NtZlyOqqy58h0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDRYvDForvXbEpPzQRAo2gAJ9IONlLUjiKXZUCrFdsjFRf0L06SgCg0Pnh Ir/9wrqLvjSpDGhablRAWXk= =FPB2 -----END PGP SIGNATURE----- --Wb5NtZlyOqqy58h0--