From owner-freebsd-current@FreeBSD.ORG Tue Dec 22 00:27:32 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F01E11065692 for ; Tue, 22 Dec 2009 00:27:32 +0000 (UTC) (envelope-from mel.flynn+fbsd.current@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id B8E1B8FC15 for ; Tue, 22 Dec 2009 00:27:32 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 9E0637E818; Mon, 21 Dec 2009 15:27:31 -0900 (AKST) From: Mel Flynn To: freebsd-current@freebsd.org Date: Mon, 21 Dec 2009 15:27:26 -0900 User-Agent: KMail/1.12.1 (FreeBSD/8.0-STABLE; KDE/4.3.1; i386; ; ) References: <200912210600.46044.mel.flynn+fbsd.current@mailing.thruhere.net> <790a9fff0912211047w6e0ee46co420869f25a7a016d@mail.gmail.com> In-Reply-To: <790a9fff0912211047w6e0ee46co420869f25a7a016d@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200912211527.26116.mel.flynn+fbsd.current@mailing.thruhere.net> Cc: Scot Hetzel Subject: Re: Some notes on RootOnZFS article in wiki X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 00:27:33 -0000 On Monday 21 December 2009 09:47:47 Scot Hetzel wrote: > I have updated the wiki to mention that you need an install media with > the livefs support. > I had marked that step as optional, and as was stated in this thread > it is not needed for GPT disks. This optional step has been removed > from the wiki. Great work, thanks! > > 3) By adding the swap partitions on the two mirrored disks to /etc/fstab > > top actually shows the sum of these as available swap. My expectation > > is/was that the swap would be mirrored and thus I'd have only the size of > > one swap partition. If this isn't the case, can I get by with 1 of the > > two since they're double the intended size or should one use 2 and thus > > create them half the intended size? > > To mirror the swap partitions, your will need to use gmirror. > > 1. comment out/remove the /dev/gpt/swap{0,1} entries > 2. add geom_mirror_load="YES" to /boot/loader.conf > 2. reboot to make sure the system is not using the swap partitions > 3. create the mirrored swap partitions using the gpt/swap0 and > gpt/swap1 partitions: > > gmirror label -b prefer swap gpt/swap0 gpt/swap1 > > NOTE: round-robin can also be used, but see the gmirror(8) man page > about kernel dumps. > > 4. change /etc/fstab to use the mirrored swap partition: > > /dev/mirror/swap none swap sw > 0 0 > > If you try this, let me know how it turns out. Works as advertised: % swapinfo -h Device 1K-blocks Used Avail Capacity /dev/mirror/swap 4194300 0B 4.0G 0% % gmirror status Name Status Components mirror/swap COMPLETE ad4p2 ad6p2 Thanks for your work and advice! -- Mel