В Tue, 23 Dec 2014 21:38:32 -0600
Moby
On 12/23/2014 12:22 AM, Andrei Borzenkov wrote:
On Tue, Dec 23, 2014 at 7:44 AM, Moby
wrote: Command: grub2-install --recheck /dev/sda Results: Installing for i386-pc platform. grub2-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. grub2-install: error: embedding is not possible, but this is required for RAID and LVM install.
To install grub2 for BIOS booting on GPT disk you need to do what error message tells you - create small BIOS Boot partition where grub2 core.img (analog of grub legacy stage1.5) is stored. This partition should not have any filesystem or be part of Linux MD RAID. It is small; 1MB is more than enough today; 10MB is likely enough for any foreseeable future.
You can create this partition using parted or gdisk.
You would need to have BIOS Boot partition on every disk you want to install bootloader. grub2 will have to be installed separately on each disk then. It makes sense to install bootloader on every disk that is part of RAID where /boot/grub2 is located, as long as BIOS can boot from each disk.
Command: grub2-install --recheck /dev/md0 That is going to work only if your Linux MD RAID is recognized by BIOS, which means it is actually fake RAID, not software RAID. Thanks Andrei. Still trying to do it the newbie way (using yast and installer options instead of using, say, live knoppix to create my partitioning scheme as Felix does), I created a 10 MiB partition on all disks and set it's type to BIOS-Grub. Then I created a second partition on all disks of 2 GiB and made that a RAID 5 for swap, then created a third partition of all remaining space on all disks and made it BtrFS /. Going to the bootloader section of the installer, I see a warning that bootloader cannot be installed due to my paritioning scheme, and the 10 MiB /dev/sda1 (and sdb1, sdc1, sdd1) are not even listed in the installer to install the bootloader on. Other partitions are listed in the choices to install the bootloader on.
You do not install grub2 *on* this partition. You install grub2 on whole device (grub2-install /dev/sda) and it will write it into dedicated partition.
Am I driving the installer wrong, or is the above setup possible but just not possible to achieve through the installer and I need to create the scheme using something like live knoppix?
Thanks for all btw who provided much knowledge for me.
If you want to have bootloader redundancy, installer supports Linux MD RAID1. Even in this case you still need to manually enable it in yast bootloader configuration. Then installer will write bootloader to both disks. Installer likely does not support more complicated configurations; nor am I sure whether this was tested with GPT. Otherwise you should be able to manually set /dev/sda as bootloader device. It may be possible to select multiple disks (/dev/sda, /dev/sdb, ...), I have not tried it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org