From owner-freebsd-geom@FreeBSD.ORG Thu Jan 26 08:48:50 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 4249316A420 for ; Thu, 26 Jan 2006 08:48:50 +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 9668B43D46 for ; Thu, 26 Jan 2006 08:48:49 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 09EC550BAC; Thu, 26 Jan 2006 09:48:47 +0100 (CET) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id BF76050A16; Thu, 26 Jan 2006 09:48:39 +0100 (CET) Date: Thu, 26 Jan 2006 09:48:15 +0100 From: Pawel Jakub Dawidek To: Steven Schoch Message-ID: <20060126084815.GA5926@garage.freebsd.pl> References: <6650332b0601251444v47e6320dr44a4976a5adf5e14@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <6650332b0601251444v47e6320dr44a4976a5adf5e14@mail.gmail.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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: gmirror on disks of different size 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, 26 Jan 2006 08:48:50 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 25, 2006 at 02:44:26PM -0800, Steven Schoch wrote: +> I have been using gvinum, but it seems that's not supported in FreeBSD +> 6.0, so I'd like to switch to something more reliable like gmirror. AFAIK gvinum is supported. +> da0s1d and da1s1g are the same size. This leaves unused space on da1, +> on which I have da1s1e (/tmp) and da1s1f (/scratch). +>=20 +> da0s1a and da1s1a are both the same size and have / on both. +> da0s1b and da1s1b are both swap partitions. +>=20 +> In the event of a failure of da1, I can simply boot from da0s1a, and +> continue where I left off (with the loss of /scratch and /tmp - no big +> deal). A failure of da0 will only be noticed by gvinum (although the +> loss of the swap partition da0s1b may require a reboot.) +>=20 +> So how do I run this setup using gmirror? All the documentation I +> have read shows giving full disks of identical size. With gmirror you can mirror any GEOM providers (disks, slices, partitions, stripes, encrypted providers - anything). You can simply: # gmirror label root da0s1a da1s1a # gmirror label usr da0s1d da1s1g Which will create /dev/mirror/root and /dev/mirror/usr for you. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2IzPForvXbEpPzQRAv0wAKDPsNKsi3q4gU1q+JtD/zs1kHWplQCg3Y1Q JFWvBAvmA1bihcknns7Xj/0= =xnQi -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--