From owner-freebsd-geom@FreeBSD.ORG Tue Jan 2 19:33:24 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ECF3D16A47B for ; Tue, 2 Jan 2007 19:33:24 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 7896513C442 for ; Tue, 2 Jan 2007 19:33:24 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 84060 invoked by uid 2001); 2 Jan 2007 19:38:59 -0000 Date: Tue, 2 Jan 2007 13:38:59 -0600 From: "Rick C. Petty" To: Michael Knoll Message-ID: <20070102193859.GA83431@keira.kiwi-computer.com> References: <975053160612310913t3dadcc02yfac58f6fbf0a49df@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <975053160612310913t3dadcc02yfac58f6fbf0a49df@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-geom@freebsd.org Subject: Re: Recommended gmirror solution with swap? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jan 2007 19:33:25 -0000 On Sun, Dec 31, 2006 at 12:13:28PM -0500, Michael Knoll wrote: > I am planning on converting my FreeBSD machine to use gmirror on two > 40gig drives. Reading the handbook and other sites with instructions > on configuring gmirror, I notice they all disable swap. Is this > acceptable? Is it expected swap be on another drive? If so, is there > a solution which I can keep the swap on the mirror. as I don't have > another drive? I've not had much luck using any of those instructions. Instead, I opted to mirror the entire drive, the equivalent of: gmirror label -vb round-robin gm0 ad0 gmirror insert -v gm0 ad1 followed by an "fdisk", a "bsdlabel", and a number of "newfs"es. This was relatively easy to do without using the boot CD, even if you don't have a third drive to install from: (assuming you've booted from ad0) gmirror label -vb round-robin gm0 ad1 fdisk -B mirror/gm0 bsdlabel -Bw mirror/gm0s1 bsdlabel -e mirror/gm0s1 * modify label accordingly, then: * newfs /dev/mirror/gm0s1a newfs -U /dev/mirror/gm0s1d ... followed by mounting the filesystems from the mirror (and creating the necessary mountpoints, of course), then I'd do an installworld as per the instructions in /usr/src/UPDATING onto the separate (mirrored) partition. I wouldn't disable all swap (for various reasons). Having the swap partition mirrored with the rest of the disk isn't a bad thing-- it ensures the integrity of crashdumps. -- Rick C. Petty