Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I installed a new Centos 8 distribution with 2 RAID1 mirrors. I want to be able to boot to either of the disks in case one fails. One boots, but not the other. Is there a way to enable this functionality? In previous distributions, either disk seemed to be able to boot. This is some info on my setup. Thanks.
Should be as simple as "grub-install /dev/sdb" all things being equal. Mind you, I haven't done this on a UEFI/systemd setup; never had the need. The fact that booting with just one disk works shows the initrd is setup to handle degraded (as it should), so hopefully the above should be a simple fix.
Hello, thank you. It's a little confusing to me. I tried grub2-install and got this:
[root@localhost /]# grub2-install /dev/sdb
Installing for i386-pc platform.
grub2-install: warning: ../grub-core/partmap/gpt.c:192: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.
It seems like it needs a BIOS boot partition. When we set RAID up there was 1 BIOS boot partition that Centos Stream (8) demanded. It was only on 1 partition, and it wouldn't let us mirror it. I wonder if it doesn't like the UEFI setup on our somewhat old motherboard. However, it won't boot on a BIOS-only mobo. I think I'm going to try the install again with a newer motherboard, and hopefully it won't put the BIOS boot partition in.
for grub to install to a gpt disk a 1M partition cleared/unformatted flagged bios-boot/bios-grub is required. On a few distros, don't remember which, adding --force will force grub to install to a gpt disk without the biosgrub partition.
Thanks. I think what my main problem was is that I didn't boot the USB flash drive installer into UEFI mode. Doing that allowed me to create RAID1 partitions for /boot/efi. It booted fine with both disks, but then when I tried to run single disk experiments, it didn't boot from either disk. At least BIOS boot booted from one of the disks.
I'll look into suggestions here about trying to get BIOS boot working with RAID1. However, Censos Stream seems a bit dicey to me at this point. I may do a Centos 7 install and wait for Rocky Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.