EFI system does not boot when EFI system partition has raid flag
Issue
-
I am trying to clone a disk with an EFI System Partition and the operating system, using Linux software RAID.
-
With this existing system disk:
# parted /dev/mapper/mpatha unit s print
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpathb: 419430400s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 2048s 411647s 409600s fat16 boot
2 411648s 1435647s 1024000s ext4
3 1435648s 419428351s 417992704s lvm
- Create the same partition layout on the disk to be mirrored:
# parted /dev/mapper/mpathb mkpart primary 2048s 411647s
# parted /dev/mapper/mpathb mkpart primary 411648s 1435647s
# parted /dev/mapper/mpathb mkpart primary 1435648s 419428351s
- And add the RAID flag on all partitions that will be mirrored.
parted /dev/mapper/mpatha set 1 raid on
parted /dev/mapper/mpatha set 2 raid on
parted /dev/mapper/mpatha set 3 raid on
parted /dev/mapper/mpathb set 1 raid on
parted /dev/mapper/mpathb set 2 raid on
parted /dev/mapper/mpathb set 3 raid on
- After this step, the system will not boot.
Environment
- Red Hat Enterprise Linux 6
- EFI firmware
- Software RAID on boot disk
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.