PDA

View Full Version : [server] Unable to install grub in a server with software RAID1



mateovilar2
November 5th, 2019, 02:16 PM
I am trying to install an Ubuntu server 18.04 with a software RAID1. Everything seems to go fine until the step in which it tries to install grub. At this moment, it is not able to continue and the only way is to finish without boot manager. After the first reboot, you may see "gnu grub version 2.02" and grub>
I have tried to do the installation several times but I get always the same result.
Thank you in advance for your help.

oldfred
November 5th, 2019, 03:20 PM
Do not know server.

But is install UEFI or BIOS.
Is drive gpt or old MBR(msdos)?

If UEFI, you must have ESP - efi system partition for grub to correctly install. Best to use gpt.
If drive is gpt, you must have either ESP for UEFI boot or a bios_grub partition for BIOS boot.

SeijiSensei
November 5th, 2019, 06:39 PM
Creating a separate /boot partition with some 512 M is an effective solution to this. Let the machine boot from the primary drive then start the RAID array. I have a couple of machines with large RAID1 mdadm arrays for which this method works flawlessly. (I generally don't put the OS on the RAID either. I use RAID for other filesystems like /home or a custom /data or similar mount point like, in my case, /media/raid.)

rsteinmetz70112
November 5th, 2019, 06:54 PM
It is possible to put the OS on a RAID 1 device, although a separate /boot partition is a good idea.

SeijiSensei
November 6th, 2019, 05:24 PM
I know. On machines where I'm running a RAID array, I also have another drive which I make the primary device.