From owner-freebsd-stable@FreeBSD.ORG Mon Dec 14 15:46:15 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6956106566B for ; Mon, 14 Dec 2009 15:46:15 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 9CE508FC13 for ; Mon, 14 Dec 2009 15:46:15 +0000 (UTC) Received: from [192.168.1.4] (adsl-156-16-112.bna.bellsouth.net [70.156.16.112]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id nBEFk9Ci081670 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 14 Dec 2009 10:46:10 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Rolf G Nielsen In-Reply-To: <4B256907.4060805@lazlarlyricon.com> References: <2A3A50FE-13F4-4AA7-976E-37354E5736B5@adam.gs> <4B256907.4060805@lazlarlyricon.com> Content-Type: text/plain Organization: FreeBSD Date: Mon, 14 Dec 2009 09:46:04 -0600 Message-Id: <1260805564.2281.86.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-stable@freebsd.org, Adam Jacob Muller Subject: Re: freebsd / gpt boot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2009 15:46:16 -0000 On Sun, 2009-12-13 at 23:21 +0100, Rolf G Nielsen wrote: > Adam Jacob Muller wrote: > > Hi, > > I'm trying to setup a system with a very large RAID array (total ~10TB), I would ideally like to have the system boot directly off that 10TB array, so i'm trying to get the system setup with GPT but running into an issue. > > > > > > The initial pre-loader (boot0 I think? -- i'm not sure what this is called) is unable to find loader at /boot/loader nor can it load /boot/kernel/kernel > > > > Is the partitioning done correctly (have you created a small boot > partition, 15 sectors is enough for booting from ufs, but the tutorials > I've found deal mainly with booting from zfs and they recommend 128 > sectors to make future bootcode changes easier)? You will need to be doing all of this from a current 8-STABLE. One bug in dealing with larger zfs raidz volumes was fixed and made it into 8.0. Another, which deals with GPT/ZFS and large volumes did not make it and only exists in 8-STABLE, iirc. Also, with the gptzfsboot code from -STABLE, it will request to load /boot/zfsloader by default (and LOADER_ZFS_SUPPORT is no longer required). > gpart add -b 34 -s 128 -t freebsd-boot -i 1 da0 > > Have you embedded the correct boot code? > > gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0 > (for booting from ufs). > > or > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 > (for booting from zfs). > > You may also need to set it active by > > gpart set -a active -i 1 da0 The above step is no longer needed on -STABLE, the pmbr will be marked active when you install bootcode. robert. > And of course, substitute your arrays device node for da0 in my examples. > > > Copying /boot/loader to /loader allows me to enter /loader at the "boot:" prompt and the loader will load, however, its unable to load the kernel. > > > > If I do an "ls" at the loader prompt I can see boot listed as a directory (with a "d" before it) > > Trying to do "ls boot" inexplicably it says "boot: not a directory" > > > > re-applying my /boot/loader.conf settings (for some reason vfs.root.mountfrom=ufs:/dev/label/root is required, or else I get a mountroot>) and then: > > load /kernel > > boot > > > > does work, and lets the system boot normally and everything is as expected (/boot is a directory etc). > > > > Anyone have any ideas about either of these things (the vfs.root.mountfrom is minor i guess but i'm curious if they are related?) > > > > Thanks in advance, > > > > -Adam > > > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > > > > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Robert Noland FreeBSD