EFI/ZFS Update: successful tests, need more complex vdevs
Eric van Gyzen
vangyzen at FreeBSD.org
Wed Jan 27 22:53:37 UTC 2016
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 <killing at multiplay.co.uk>
>>> 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 <dev>
> 2. gpart bootcode -p /boot/boot1.efifat -i <idx> <dev>
> 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 <WDC WD5003ABYX-1 1S02 serial=WD-WMAYP3350415> SATA E1:S0
(The root pool is just a single SATA disk.)
More information about the freebsd-hackers
mailing list