On 12/26/20 6:38 AM, Istvan Gabor wrote:
anywhere, the value if "root" variable does not change.
Thank you Andrei. I understand this.
I still could not make grub2 raid1 chainloading.
Istvan, I think you are confusing yourself. The only requirement for booting from raid1 is that the mdadm module have been included in the mkinitrd process so that it is available to assemble the arrays as boot time. If I recall correctly, openSUSE includes mdadm in the initrd by default. So the only thing you would need to do is use the UUID for the array holding the boot partition. I run all of my servers on raid1, and I have separate /boot, /, /home (and in some cases /var and /srv) arrays. On openSUSE there wasn't any additional configuration needed. On Arch I have to add the mdadm module to the list of modules compiled into the initrd -- that's it. Once you are to the point of installing the boot loader (mbr type) you can install the boot loader to BOTH physical disks in your array (you only need to install to one, but I would recommend installing to BOTH so in the even of a failed disk containing the mbr, you can install a new disk, boot in degraded mode from the other physical disk in the array and rebuild the array without ever needing the install .iso. So the question you need to answer is whether mdadm is already included in the initrd, and if so, then just install the bootloader into the mbr of one (or both) the physical disk(s) that a part of the array and use the UUID's of the array with grub. If there are other changes needed for UEFI boot, then someone else will need to chime in as I have happily avoided UEFI so far... -- David C. Rankin, J.D.,P.E.