From owner-freebsd-current@FreeBSD.ORG Tue Dec 22 11:02:08 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 38E131065670 for ; Tue, 22 Dec 2009 11:02:08 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id B8D228FC29 for ; Tue, 22 Dec 2009 11:02:07 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so2488293fgg.13 for ; Tue, 22 Dec 2009 03:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=JX0jatP4GiXzClug2EtvM8/zGPM3Lztk4By+aGX/7A8=; b=Fh93POJi84tPtX5bIW4pCNDNV8ffkS8688JAToLtcVMz9+iaaG/o4r6L+G1qcch6g0 jFYuxpQsklB6YRy9rRE/93zmhcxCW5F0CWN6dj4y8tdZUP5wUltOv8X8tC8xUQ9OH7uI K3shSXgKXkijGg5/TPb0CsKhCX9A9QCP4/c24= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=WH0HWeoXDsYJwVO1slP6fOekXHgaE8UfSbKeKTLV4zQ4vEbNM/fRPQdYGqIAPA6DIr k8RZwMIyBJqbaTG+lCD8OKIoJRQm4nd2YarB+CZyhjgdRqe9K7pNjzbn1JMRSAd8ejOJ CYxFGSIyVDWBMEkS5Deits/+Pmm83VtdxbN+c= MIME-Version: 1.0 Received: by 10.239.182.164 with SMTP id q36mr944706hbg.87.1261479726609; Tue, 22 Dec 2009 03:02:06 -0800 (PST) In-Reply-To: <790a9fff0912211047w6e0ee46co420869f25a7a016d@mail.gmail.com> References: <200912210600.46044.mel.flynn+fbsd.current@mailing.thruhere.net> <790a9fff0912211047w6e0ee46co420869f25a7a016d@mail.gmail.com> Date: Tue, 22 Dec 2009 11:02:06 +0000 Message-ID: From: krad To: Scot Hetzel Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Mel Flynn , 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: Tue, 22 Dec 2009 11:02:08 -0000 2009/12/21 Scot Hetzel > 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > Are there still issues with using zvols for swap? If not you don't need a slice for swap and can get rid of gmirror entirely.