From owner-freebsd-hackers@freebsd.org Fri Jan 15 12:43:17 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 3DFF6A84D62 for ; Fri, 15 Jan 2016 12:43:17 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EA0F019DC for ; Fri, 15 Jan 2016 12:43:16 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: by mail-qg0-x235.google.com with SMTP id o11so506191190qge.2 for ; Fri, 15 Jan 2016 04:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=p+nBDp0uXOqL59wMMPgrApFUjX28wpWibODgYmuvRLo=; b=muy2h1htCTInstV7CoYXMJsN5AEjJW18KFn3tay60T5kXHURph/Uu7ISY/Vv/242Pe qg+1QEpTuWGk8xIFEqIqoyaDiaR3y2zwBexk/OR5kr2A80kJFzlc2SFxVKW1Yw5gBaMU edfIrP2aLpDAhLz5odA/TWWrlGIovooSst9Ixo93iD3qZhpOzOuxL+FQVCjaPheFjKZa FkVyxnIk5hflPCN/KB5FMbBJv1GRzAqfLZD4Kt42Umf/1J4Ie2KTgqbN8wA+loDU3yPc m5SsyTHevvppfdmtAJFAiBO87k7il2AZdjeEGLViOxesdHMVvMFgE/0+l1knn2HX8k3/ qFlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=p+nBDp0uXOqL59wMMPgrApFUjX28wpWibODgYmuvRLo=; b=muVz/qgx5H4P8CggFzz1LnhjHS2BHoMr1c0szgB9KdiPNRzt1pO6br5155BXob3bDf 87LoaRVQJUy8OQpCqSAWBfIi6CDDRs6pxbGzyYLbeYnAU1h6cOZj6qkeEX1i7qiNPtR3 z21lqyCHvO86kh67Irq8rJuwNpiIKVTK7aPKg5xX+ATEuWsjmSSMmqfQNr3wcKQwH9PT xseGESoKA9k/6TyqwDRny1mrCkqi3evavRHYSjxt1pz8b+IBuhVzUV/p/GYeJiu3xC5f BncbCrXETL7xlu1McwcGiIQc0rHRgT1K6t16QdG+dr1x9ept6k5WK25RuKTGjPpVUWik QI4g== X-Gm-Message-State: ALoCoQkIuSCddOluA1d6dwtxr4S5vJNhbKecMMHQWUYQFDJem1gvRq8qV6cnDgF4j5yRpBKJ+RNW3zYF2idIaBRY6Dc4BqRuxg== X-Received: by 10.140.28.66 with SMTP id 60mr12673135qgy.74.1452861796106; Fri, 15 Jan 2016 04:43:16 -0800 (PST) Received: from mbp.home ([186.249.147.62]) by smtp.gmail.com with ESMTPSA id e187sm4463547qka.1.2016.01.15.04.43.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jan 2016 04:43:15 -0800 (PST) Sender: Renato Botelho Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: EFI/ZFS Update: successful tests, need more complex vdevs From: Renato Botelho In-Reply-To: <5698E483.4000808@multiplay.co.uk> Date: Fri, 15 Jan 2016 10:41:47 -0200 Cc: Eric McCorkle , Gabor Radnai , freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <181DDF14-32C0-47D3-BE50-C9FBF4CA39CB@FreeBSD.org> References: <9418E44F-114E-4ABA-A32D-416297BCDA9F@metricspace.net> <56985C6A.6040209@multiplay.co.uk> <5698E483.4000808@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, 15 Jan 2016 12:43:17 -0000 > On Jan 15, 2016, at 10:22, Steven Hartland = wrote: >=20 > On 15/01/2016 11:51, Renato Botelho wrote: >>> On Jan 15, 2016, at 00:41, Steven Hartland = wrote: >>>=20 >>> Just wanted to let everyone know that I just finished committing = these changes to the tree. >>>=20 >>> Huge thanks to Eric's for his work on this, as well as everyone else = who contributed. >>>=20 >>> 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! >>=20 >> Is there a way to move a installed ZFS system to EFI? >=20 > 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. >=20 > 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 >=20 > 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. >=20 > If you don't have space then you'll need to migrate to a difference = device to change the disk partition layout. Thanks. Worked fine! -- Renato Botelho