From owner-freebsd-current@FreeBSD.ORG Mon Dec 21 18:47:49 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 041021065670 for ; Mon, 21 Dec 2009 18:47:49 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id BFF0F8FC1D for ; Mon, 21 Dec 2009 18:47:48 +0000 (UTC) Received: by iwn36 with SMTP id 36so3783027iwn.3 for ; Mon, 21 Dec 2009 10:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=RhPJSPxBdvpMdYxQRGUKX3q0cq7TE9mkKZV/yrq9tqg=; b=hNiHjOLHB1akFGKHdnlDbU+PNkDYnWE08S2sCF5yLjuX33uwaz6QheQsWG7GwOnwO5 +Ja8GIfKoW9V68j6aGRx2nStt12gPil1nCzDl64M8jl6YVTfXd92UwhKUbsjmuvCW5Nx +ipo9i1iq6iTY4t0GpjYoot31z3q5nC+T0ubk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OZhuutV3Vm8J8veM1bD438svyKAuuFSp/PNDDgDtphr3m0fCDVad1EeZvqqXhQTqH7 GRqmz66730GKTz9DOF/KuGTjBpJ4yId+IwbDVu8roO2j7t8BDi5YlFPeyqJXRl2MiTlP hteGV7TFB+XNZsVUTGKnOEyBsN0HTZszMZv+g= MIME-Version: 1.0 Received: by 10.231.120.84 with SMTP id c20mr3977208ibr.47.1261421267842; Mon, 21 Dec 2009 10:47:47 -0800 (PST) In-Reply-To: <200912210600.46044.mel.flynn+fbsd.current@mailing.thruhere.net> References: <200912210600.46044.mel.flynn+fbsd.current@mailing.thruhere.net> Date: Mon, 21 Dec 2009 12:47:47 -0600 Message-ID: <790a9fff0912211047w6e0ee46co420869f25a7a016d@mail.gmail.com> From: Scot Hetzel To: Mel Flynn Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org 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: Mon, 21 Dec 2009 18:47:49 -0000 On 12/21/09, Mel Flynn wrote: > Hi, > > yesterday went through the RootOnZFS (gpt mirror version) and here's a few > notes: > 1) You cannot use the install CD. It doesn't have a livefs and so you can > never do the actual install in 2.2. The DVD will work and the USB image. I > ended up using the livefs CD and the USB image, cause I didn't want to loose > the work I already did. I have updated the wiki to mention that you need an install media with the livefs support. > 2) `gpart set -a active -i 1 ad4' gave me 'active: device not configured'. > This error isn't mentioned (debugflags didn't help) in the wiki nor the > missing DIAGNOSTICS section in the gpart man page. In my case the system > booted, but it's nice to know what the error means and whether you can ignore > it. 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. > 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. Scot