From owner-freebsd-hackers@freebsd.org Wed Jan 27 22:53:37 2016 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 DB309A7031C for ; Wed, 27 Jan 2016 22:53:37 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [199.48.133.146]) by mx1.freebsd.org (Postfix) with ESMTP id C44B9AF2 for ; Wed, 27 Jan 2016 22:53:37 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from sweettea.beer.town (unknown [76.164.8.130]) by smtp.vangyzen.net (Postfix) with ESMTPSA id B8D875648E; Wed, 27 Jan 2016 16:53:30 -0600 (CST) Subject: Re: EFI/ZFS Update: successful tests, need more complex vdevs To: Steven Hartland , freebsd-hackers@freebsd.org References: <9418E44F-114E-4ABA-A32D-416297BCDA9F@metricspace.net> <56985C6A.6040209@multiplay.co.uk> <5698E483.4000808@multiplay.co.uk> From: Eric van Gyzen X-Enigmail-Draft-Status: N1110 Cc: Eric McCorkle Message-ID: <56A94A68.6000309@FreeBSD.org> Date: Wed, 27 Jan 2016 16:53:28 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <5698E483.4000808@multiplay.co.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Wed, 27 Jan 2016 22:53:37 -0000 On 01/15/2016 06:22, Steven Hartland wrote: > On 15/01/2016 11:51, Renato Botelho wrote: >>> On Jan 15, 2016, at 00:41, Steven Hartland >>> wrote: >>> >>> Just wanted to let everyone know that I just finished committing >>> these changes to the tree. >>> >>> Huge thanks to Eric's for his work on this, as well as everyone else >>> who contributed. >>> >>> I've set the target for MFC of 2 weeks, so I hope to be able to get >>> this into stable/10 before the 10.3 slush, so if you're interested >>> in this change please test a head build > r294068 ASAP. >> Great work, thanks! >> >> Is there a way to move a installed ZFS system to EFI? > > All EFI needs is an valid EFI partition on a GPT disk and the updated > loader.efi so if your devices is GPT based and you have space for an > extra 800k partition then yes. > > The following should be the basic steps you need (untested so backup > your data) > 1. gpart add -t efi -s 800k > 2. gpart bootcode -p /boot/boot1.efifat -i > 3. Ensure your root filesystem has EFI ZFS boot compatible world e.g. > cd /usr/src && make buildworld -jXX && make installworld > > If you have an active MBR then you will likely need to disable this as > EFI seems to ignore disks with active MBR even if they have a valid > EFI partition. > > If you don't have space then you'll need to migrate to a difference > device to change the disk partition layout. I just used the above procedure to convert a Dell PowerEdge R320 to ZFS+EFI. It works. Thanks for your hard work, Eric and Steven. I'm looking forward to this hitting 10.3 (hint hint). smbios.bios.reldate="05/11/2012" smbios.bios.version="1.2.4" smbios.system.maker="Dell Inc." smbios.system.product="PowerEdge R320" machdep.bootmethod: UEFI FreeBSD 11.0-CURRENT #6 r294934M: Wed Jan 27 15:43:59 CST 2016 ... sys/GENERIC => 40 976773088 mfisyspd0 GPT (466G) 40 1024 1 freebsd-boot (512K) 1064 1600 2 efi (800K) 2664 33552832 4 freebsd-swap (16G) 33555496 943217632 3 freebsd-zfs (450G) NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mfisyspd0p3 ONLINE 0 0 0 mfi0 Adapter: Product Name: PERC H310 Mini Firmware: 20.10.1-0084 mfi0 Physical Drives: 0 ( 466G) JBOD SATA E1:S0 (The root pool is just a single SATA disk.)