From owner-freebsd-geom@FreeBSD.ORG Wed Jan 25 22:44:29 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 1C63E16A420 for ; Wed, 25 Jan 2006 22:44:29 +0000 (GMT) (envelope-from schoch6@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 792AB43D46 for ; Wed, 25 Jan 2006 22:44:28 +0000 (GMT) (envelope-from schoch6@gmail.com) Received: by uproxy.gmail.com with SMTP id o2so60922uge for ; Wed, 25 Jan 2006 14:44:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JaXdH3/I90cXex3bBIdBUXmACTIvUCUoavsL9QmEkBuKLEizUQiBURGRUcQUvCXUX9YGXEuxjO2/hz7BMqEj0mq5oKrFitThMNCb6QEOGgJqYAPoq8SyYdIFszGwteDmFJHB3wgBtXsDG2dAofD86Vwekkd1ub89ZyyzrLR3BhA= Received: by 10.48.224.14 with SMTP id w14mr113304nfg; Wed, 25 Jan 2006 14:44:26 -0800 (PST) Received: by 10.48.203.17 with HTTP; Wed, 25 Jan 2006 14:44:26 -0800 (PST) Message-ID: <6650332b0601251444v47e6320dr44a4976a5adf5e14@mail.gmail.com> Date: Wed, 25 Jan 2006 14:44:26 -0800 From: Steven Schoch Sender: schoch6@gmail.com To: freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: 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: Wed, 25 Jan 2006 22:44:29 -0000 I have two disks: da0 is 18GB, da1 is 35MB. I want to mirror /var and /usr, with /tmp and swap not mirrored, and / either mirrored or simply keep a duplicate on the second disk since it rarely changes. 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. My current gvinum setup is as follows: drive a device /dev/da0s1d drive b device /dev/da1s1g volume var plex org concat sd length 3g drive a plex org concat sd length 3g drive b volume usr plex org concat sd length 12g drive a plex org concat sd length 12g drive b da0s1d and da1s1g are the same size. This leaves unused space on da1, on which I have da1s1e (/tmp) and da1s1f (/scratch). da0s1a and da1s1a are both the same size and have / on both. da0s1b and da1s1b are both swap partitions. 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.) So how do I run this setup using gmirror? All the documentation I have read shows giving full disks of identical size. -- Steve