From owner-freebsd-geom@FreeBSD.ORG Mon Jan 1 22:08:26 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 EC07416A58E for ; Mon, 1 Jan 2007 22:08:26 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id B08BA13C428 for ; Mon, 1 Jan 2007 22:08:26 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.144.87] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1H1V2v-000B9G-7h; Mon, 01 Jan 2007 21:50:17 +0000 Received: from freaky by voi.aagh.net with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1H1V2u-000J3i-Rr; Mon, 01 Jan 2007 21:50:16 +0000 Date: Mon, 1 Jan 2007 21:50:16 +0000 From: Thomas Hurst To: freebsd-geom@freebsd.org Message-ID: <20070101215016.GA71635@voi.aagh.net> Mail-Followup-To: freebsd-geom@freebsd.org, michael.knoll@gmail.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> Organization: Not much. User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Thomas Hurst Cc: michael.knoll@gmail.com Subject: Re: Recommended gmirror solution with swap? 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: Mon, 01 Jan 2007 22:08:27 -0000 * Michael Knoll (michael.knoll@gmail.com) 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? On every gmirrorred system I've set up I've always included swap in the mirror; you don't have to, but it's a good idea if you want the system to stay up after a disk failure, which is surely part of if not the entire point. You can't put kernel crash dumps on gmirrored devices, but you can put them on one of the underlying providers fairly easily if that's important. Are you sure you're not confusing the swapoff="YES" line many guides suggest adding to rc.conf with disabling swap completely? This just makes the system issue swapoff -a at shutdown to make sure any mirrored swap devices are closed, which used to result in the mirror being rebuilt at startup because it was "dirty". -- Thomas 'Freaky' Hurst http://hur.st/