From owner-freebsd-questions@freebsd.org Thu Nov 17 21:18:45 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86A5AC46369 for ; Thu, 17 Nov 2016 21:18:45 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cdptpa-oedge", Issuer "cdptpa-oedge" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E8701C20 for ; Thu, 17 Nov 2016 21:18:44 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from [76.181.114.47] ([76.181.114.47:55730] helo=raspberrypi.bildanet.com) by cdptpa-omsmta03 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 94/6A-04822-3BE1E285; Thu, 17 Nov 2016 21:18:43 +0000 Received: from [192.168.1.40] (helo=baho-utot.bildanet.com) by raspberrypi.bildanet.com with esmtp (Exim 4.84) (envelope-from ) id 1c7U4w-0001Cw-N1 for freebsd-questions@freebsd.org; Thu, 17 Nov 2016 16:18:42 -0500 Subject: Re: Ok How do I boot this monster? To: freebsd-questions@freebsd.org References: <07218d20-34a5-171b-f6a8-de3c271733cc@columbus.rr.com> <575baf45-b23d-163f-79b0-213a6ba51c91@columbus.rr.com> <86eg29x1on.fsf@WorkBox.homestead.org> From: Baho Utot Message-ID: <33eee98a-dbf4-4376-3cee-d4349b11c985@columbus.rr.com> Date: Thu, 17 Nov 2016 16:18:42 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <86eg29x1on.fsf@WorkBox.homestead.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.88:25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2016 21:18:45 -0000 On 11/17/16 15:59, Brandon J. Wandersee wrote: > Baho Utot writes: > >> On 11/17/16 14:19, Warren Block wrote: >>> On Thu, 17 Nov 2016, Baho Utot wrote: >>> >>>> Can this also boot the raidz? >>> No, boot0 is MBR-only. The easiest way I see to do this is to install >>> gptzfsboot bootcode to the ZFS drives and choose one of them from the >>> BIOS boot menu. Grub can multi-boot GPT also, although it needs a >>> small partition of its own. >> I think the bsdinstall puts that code onto the zfs drives already or am >> I miss informed? > I believe it should in its unadulterated state. But then you hacked the > installer, introducing a new variable. > >> Would creating the raidz on MBR partitions be an answer? > It would be *an* answer, but I'm not sure I would consider it *the* > answer. It would basically place an expiration date on your new install, > since it would depend on older hardware to keep functioning. A more > recent motherboard would not be able to read the drives without legacy > BIOS support, so you might not be able to just transplant the disks into > a new machine when the time came. > > I would recommend just using gpart(8) to install the correct bootcode > (/boot/gptzfsboot) as Warren suggested. The trouble, though, is > that---unless I'm mistaken---that bootcode requires a dedicated > partition. Configuring the system to boot would require 128k partitions > to be created at the start of each disk to hold the bootcode, and that > would mean either manually partitioning the drives (which is the typical > way of installing to a custom ZFS setup) or writing more code into your > custom bsdinstall. > Don't read too much into the "hacked bsdinstall version", I ain't that good. All I did was this..... from: f_eval_catch $funcname gpart "$GPART_ADD_LABEL" \ zfs$index freebsd-zfs $disk || return $FAILURE to: f_eval_catch $funcname gpart "$GPART_ADD_LABEL_WITH_SIZE" \ zfs$index freebsd-zfs 800Gb $disk || return $FAILURE The raidz will boot if I pull the other drives and let it boot with just the 4 zfs raidz drives so I know it will boot. Just have to get it to play nice with the other systems (win7 and 10.0) and boot. I just need to configure out how to make it boot with the other drives. Hand holding required.