From owner-freebsd-questions@FreeBSD.ORG Sat Sep 18 05:04:35 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 2BF30106564A for ; Sat, 18 Sep 2010 05:04:35 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id A09A08FC0A for ; Sat, 18 Sep 2010 05:04:34 +0000 (UTC) Received: by bwz15 with SMTP id 15so4197154bwz.13 for ; Fri, 17 Sep 2010 22:04:33 -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=5HpT9JRlcIJk/FaUlyiQcuQSLIqHC4EG+EpsoPvX9Ks=; b=RsH1OnQLxbpqdZoAftnHr4+h9Y0VIMIlTsvxcrNP0kn1y1YPsIO3Z67j9Sf7FJNX5K AVRmZcPGzyFQI5RcRgv93Szu7STnyMbKHHjKRNIN3RMqAIE5BocOrxn2X6ov8e5EEvNd hdA9gcccWj2QVbsEr8FJRtRFltpy5/5RO8yFE= 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=Tu8/5wHChuKXaWPOyvAtO76IJBCAgE3pKl7jlO1BJ77IqGRYM0Wbz29yLeVGYNNB8d AyTsZmR+h1DOLwe11uDQs4lNX0v7zUwxRsX16RDtzwm/zEGswBg2r3VTjag8/a3gM5RJ nhFy/rPbgIAChYuUESW76zPc2aNDx3gZRgTGo= MIME-Version: 1.0 Received: by 10.223.107.15 with SMTP id z15mr1382069fao.62.1284786273292; Fri, 17 Sep 2010 22:04:33 -0700 (PDT) Received: by 10.223.57.20 with HTTP; Fri, 17 Sep 2010 22:04:33 -0700 (PDT) In-Reply-To: <4c943b69.bsyYirMmUuB/1m0g%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> Date: Sat, 18 Sep 2010 00:04:33 -0500 Message-ID: From: Adam Vande More To: perryh@pluto.rain.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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 05:04:35 -0000 On Fri, Sep 17, 2010 at 11:09 PM, wrote: > > Next fdisk/gpart accordingly (don't forget to make it bootable). > > This is where I get stuck. I've partitioned the physical drives > using sysinstall, but how do I go about partitioning gm0? > Your problem is that you are still using sysinstall. You can't for your purposes(this was pointed out earlier). Fixit only! Notice in the example it creates some basic filesystems/diretories and then chroot's and extracts the dist's manually. You must do the same after you do the gmirror/gjournal setup to your liking and have created the appropriate fs's and mounted them. > > > If your setup if GPT compatible, I recommend using it. > > How do I find out whether this setup is GPT compatible? > Hardware(BIOS) dependent. > For starters there seem to be at least 6 kernel options, of > which I guess I may need 3: GEOM_PART_BSD, GEOM_PART_GPT, and > GEOM_PART_MBR; there's apparently no "edit" function; and one > has to puzzle out what is meant by a "protective MBR" as part > of understanding how to make a GPT partition bootable. > Yeah, there is no label editor or resize functionality, yet anyway. You don't need to worry about any of those kernel options yet, just get it working by loading from loader.conf. You can customize your kernel later. I think the "protective MBR" part relates to GPT/MBR hybrid style which is not what I think you should do, but maybe it works haven't tried it. You'll use gpart to create(and label) at least 3 parttitions, the boot, swap, and freebsd-ufs filesystem. You'll have to create more if you want seperate /usr /var /tmp etc. Once the fs's are created and mounted, extract, edit the /boot/loader.conf in the chroot to load gmirror, gjournal, and anything else you need, Note about the bootloader part, use gpart to install the boot code to the boot partition you create, I don't think you'll need to do anything special other than that. This example may also be helpful because it deals with GPT/UFS manual install, but doesn't use any other geom classes. http://wiki.freebsd.org/RootOnZFS/UFSBoot -- Adam Vande More