Ubuntu: Am I supposed to RAID0 the ESP partition? (mdad software RAID)


I'm well-versed in manually-partitioning for RAID0 or RAID1, but only with BIOS, and I would just give /sda an extra 1MB partition for GRUB.

With UEFI installed, however, I am not sure what to do with the ESP partition: just set aside 500MB on /sda or should I RAID0 250MB each on /sda and /sdb?

EDIT: I am using a 2012 Mac mini, which does not have a hardware RAID card. Your results may vary.


No, you do not RAID the ESP across multiple drives. Doing so will result in a failed installation (un-bootable). Just treat the EFI System Partition (ESP) as you would the Reserved BIOS Boot Area partition- create it first on either/any drive in the would-be RAID array, just don't create it on any of the other drives. When the time comes to create the swap and ext4 (or whatever floats your boat), each drive will lose however much space the ESP occupies on that first drive, so in my case I lost 500MB per drive- since RAID partitions must be the same size, if I take 500MB away from / to use for the ESP, I reduce the size of that partition by 500MB, which means that partition's counterparts on other drives also lose 500MB, only difference being the 500MB on the other drives isn't used for anything since the ESP is only on that first drive. I only have one other drive, so that's not bad.

EDIT: This applies to RAID0 and RAID1.


You should definitely not use striping (RAID 0) or any more advanced RAID level (like RAID 5) with the ESP. At first glance, you might think that RAID 1 (mirroring) should be OK; however, if something outside of Linux (like an EFI boot loader) were to write to the partition, that would result in inconsistencies that would cause problems. It'd be hard to rule out the possibility of something like that happening. Thus, I'd be reluctant to use RAID 1 on an ESP. If you want some redundancy, you could create a second ESP on your second disk and manually sync them every now and then -- perhaps even automatically via a cron job or a startup script.

All of this assumes Linux software RAID, of course. If you've got a hardware RAID card, the EFI will see the RAIDed drives as a single device, so there's no issue. With a motherboard-based software RAID, you'd need to check to see if the firmware understands the RAID setup.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »