Date: Mon, 1 Jan 2007 21:50:16 +0000 From: Thomas Hurst <tom.hurst@clara.net> To: freebsd-geom@freebsd.org Cc: michael.knoll@gmail.com Subject: Re: Recommended gmirror solution with swap? Message-ID: <20070101215016.GA71635@voi.aagh.net> In-Reply-To: <975053160612310913t3dadcc02yfac58f6fbf0a49df@mail.gmail.com> References: <975053160612310913t3dadcc02yfac58f6fbf0a49df@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070101215016.GA71635>