From owner-freebsd-hackers@freebsd.org Fri Dec 11 11:04:17 2015 Return-Path: Delivered-To: freebsd-hackers@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 847FD9D7AEA for ; Fri, 11 Dec 2015 11:04:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2ECB3181F for ; Fri, 11 Dec 2015 11:04:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::6570:9019:4e1c:8d98] (unknown [IPv6:2001:7b8:3a7:0:6570:9019:4e1c:8d98]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id CEE64665F; Fri, 11 Dec 2015 12:04:12 +0100 (CET) Subject: Re: EFI/ZFS Update: successful tests, need more complex vdevs Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_E9525338-209A-48A7-A72A-F8F345DD7720"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 From: Dimitry Andric In-Reply-To: <566AA9C3.8040700@multiplay.co.uk> Date: Fri, 11 Dec 2015 12:04:12 +0100 Cc: freebsd-hackers@freebsd.org Message-Id: References: <5669C3BD.4010402@multiplay.co.uk> <566AA9C3.8040700@multiplay.co.uk> To: Steven Hartland X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2015 11:04:17 -0000 --Apple-Mail=_E9525338-209A-48A7-A72A-F8F345DD7720 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 11 Dec 2015, at 11:47, Steven Hartland = wrote: >=20 > On 11/12/2015 08:10, Dimitry Andric wrote: >> On 10 Dec 2015, at 19:26, Steven Hartland = wrote: >>> We've used Eric's hard work which is currently under review here: >>> https://reviews.freebsd.org/D4104 >>>=20 >>> I'm pleased to report we can now successfully EFI boot root ZFS from = a raidz2 pool on Intel P3700 NVMe drives :) >>>=20 >>> Here's a guide for those interested: >>> = http://blog.multiplay.co.uk/2015/12/freebsd-10-2-release-efi-zfs-root-boot= / >> The patch set linked there, at: >>=20 >> http://blog.multiplay.co.uk/dropzone/freebsd-10-efi-zfs-boot.tgz >>=20 >> results in a 404. Where is it? :-) >>=20 > Ooops, link corrected its at: = http://blog.multiplay.co.uk/dropzone/freebsd/freebsd-10-efi-zfs-boot.tgz Thanks, that one works. Meanwhile, I setup a -CURRENT VM for testing https://reviews.freebsd.org/D4104 directly. I can build the boot1.efi loader just fine, and install it into an EFI partition, but the resulting VM does not boot. The console looks like this: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Initializing modules: ZFS UFS Could not load file Could not load file panic: No bootable partitions found! Any clue? (It would be very nice if it printed *which* file it could not load, btw.) The VM was setup with two mirrored disks, using the Auto ZFS option during installation, like this: $ gpart show =3D> 40 209715120 da0 GPT (100G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 8388608 2 freebsd-swap (4.0G) 8390656 201322496 3 freebsd-zfs (96G) 209713152 2008 - free - (1.0M) =3D> 40 209715120 da1 GPT (100G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 8388608 2 freebsd-swap (4.0G) 8390656 201322496 3 freebsd-zfs (96G) 209713152 2008 - free - (1.0M) After rebuilding and reinstalling world with the D4104 patch, I deleted the freebsd-boot partitions, created EFI partitions in their place, created msdosfs filesystems on them, and copied the boot1.efi loader to those filesystems. -Dimitry --Apple-Mail=_E9525338-209A-48A7-A72A-F8F345DD7720 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.28 iEYEARECAAYFAlZqrawACgkQsF6jCi4glqOidQCgwfpv+xKKjnGRs1iWCv2drWv3 4xoAn3FH0VoiTgq/VcpiXP6E1YptRvC1 =PPUQ -----END PGP SIGNATURE----- --Apple-Mail=_E9525338-209A-48A7-A72A-F8F345DD7720--