From owner-freebsd-questions@FreeBSD.ORG Sat Sep 18 07:14:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E5E7106566B for ; Sat, 18 Sep 2010 07:14:50 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C0F5F8FC12 for ; Sat, 18 Sep 2010 07:14:49 +0000 (UTC) Received: by wyb33 with SMTP id 33so4105460wyb.13 for ; Sat, 18 Sep 2010 00:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=VjKE+hnba0MrUsoE3n+JmH9o/T9s2D1UZEF0Wytks98=; b=AQBfVh7+9xRDIUSOMPH5CwYoxWdxCO/N3Xa60FirWDlyvVEKsohUnmJqdC9tMgUSMJ brgGqdsRU25Bs5u6152jYXSPk4kBl37Us7C+0YP86+zvJfrXPZ2cOdSqYHYFSidgVbut lXHNy52NczD+WZarrA1qIUF/WNMM6T2eDZ0sk= 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=fleQkcfNKSLPTzNQ9ub9Fr+sgPu5AAgp1UKcvo3MuHKMyuarI2wJ/c5CslrGbKAh3I vv0+KJHQGQcCU3ZHarmQerEDoJs9rF5lqB8UwX6h7Lx7HyiCvPlD+d/8cJ6a6kxa6NkC R4CfNy0E9o6kFirClKkMWxhvAO1BE/s4+gBvA= MIME-Version: 1.0 Received: by 10.216.72.72 with SMTP id s50mr5106196wed.109.1284794088795; Sat, 18 Sep 2010 00:14:48 -0700 (PDT) Received: by 10.216.133.2 with HTTP; Sat, 18 Sep 2010 00:14:48 -0700 (PDT) In-Reply-To: <4c945a3f.3BNAtV+UuZ+M1RW2%perryh@pluto.rain.com> References: <4c83190a.SG+LIhPWaGtmaaeL%perryh@pluto.rain.com> <4C835474.7060707@infracaninophile.co.uk> <4c8487cc.Rh42YL91jTIv09e0%perryh@pluto.rain.com> <4c84ce46.sHyLaI+H+UzM+J/y%perryh@pluto.rain.com> <4c8c5260.+COCCpHgloxRSY2/%perryh@pluto.rain.com> <4C8CD2A4.3020203@infracaninophile.co.uk> <4c8da53d.pPK/NzHAHPlQPOfh%perryh@pluto.rain.com> <4c943b69.bsyYirMmUuB/1m0g%perryh@pluto.rain.com> <4c945a3f.3BNAtV+UuZ+M1RW2%perryh@pluto.rain.com> Date: Sat, 18 Sep 2010 02:14:48 -0500 Message-ID: From: Brandon Gooch To: perryh@pluto.rain.com Content-Type: text/plain; charset=ISO-8859-1 Cc: amvandemore@gmail.com, freebsd-questions@freebsd.org Subject: Re: sysinstall vs gmirror X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2010 07:14:50 -0000 On Sat, Sep 18, 2010 at 1:20 AM, wrote: > Adam Vande More wrote: [SNIP] > The question is, how do I go about partitioning gm0 from Fixit? > I've seen nothing so far that describes how to go about creating > multiple partitions on a gmirror (or on anything else, for that > matter) without either using sysinstall or having to understand > gpart. I've used something like this from the Fixit console (using /dev/ad0 as an example): Fixit# kldload /dist/boot/kernel/geom_mirror.ko Fixit# gmirror -v -b round-robin gm0 /dev/ad0 Fixit# fdisk -v -B -I /dev/mirror/gm0 Fixit# bsdlabel -w -B /dev/mirror/gm0s1 Partition with: # bsdlabel -e /dev/mirror/gm0s1 Create a UFS file system (with Soft Updates): Fixit# newfs -U /dev/mirror/gm0s1a Mount the newly created file system: Fixit# mount /dev/mirror/gm0s1a /mnt ...then follow one of the procedures for doing a "manual" install from fixit, e.g. Fixit# cd /dist/8.1-* Fixit# export DESTDIR=/mnt Fixit# for dir in base catpages dict doc games info lib32 manpages ports; \ do (cd $dir ; ./install.sh) ; done Fixit# cd src ; ./install.sh all Fixit# cd ../kernels ; ./install.sh generic Fixit# cd /mnt/boot ; cp -Rlp GENERIC/* /mnt/boot/kernel/ [taken from http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror] > OK, given the system's age I will presume that it is not, thus > (I suppose) no reason to deal with gpart. I've used GPT partitioning on all of my machines, ranging from a circa-2000 Toshiba Pentium 3 junker to a new i7 Quad Core beast. No problem so far, and it is a lot more logical (IMHO) than the fdisk/bsdlabel method. Also, the "manual" installation method demonstrated above hasn't failed me yet. Having stated all of this, I will say that I spent time reading the handbook, quite a few man pages, and a a wiki article here and there -- and I still feel only slightly more comfortable than I did after my first successful attempt! It is starting to "come together" for me now, finally :) Well, I hope this helps you get unstuck... Good Luck! -Brandon