0

I am currently in the process of setting up an Ubuntu server but I ran into a few problems... after setting up RAID 0 (two 160GB drives) I tried to install Ubuntu server 18.04.3 LTS but it failed while Installing GRUB

I tried "use entire disk and setup LVM" (because I wasn't sure how to set up the partitions)

I tried "use entire disk" too

The error message:

"Unable to install GRUB in /dev/mapper/Server--Name--vg--root Executing '/dev/mapper/Server--Name--vg-root' failed. This is a fatal error."

I am not sure what that means

I use BIOS ...

My motherboard is: Intel Server Board S3420GPLX

I configured RAID in BIOS...

here are some screenshots from the installation: link

they include:

  • the installer asking me to enable mdadm RAID containers

  • the installer asking me to enable ATA RAID devices

  • which disks I can select

  • error message

    (I am a newbie when it comes to Ubuntu and RAID...)

Edit:

I tried installing the Ubuntu desktop version of with LVM... and it worked ... I have absolutely no idea why it won't install the server

jmb05
  • 11
  • 5
  • 1
    All virtual devices are under `/dev/mapper`, so you need to find the error message. Question: RAID0 on a single hard drive? – Piotr P. Karwasz Dec 05 '19 at 23:09
  • No I used two drives... – jmb05 Dec 06 '19 at 04:57
  • You'll need to install grub on both of them. Add some details on how you want to split the disk. – Piotr P. Karwasz Dec 06 '19 at 08:26
  • My disk are shown as one when I set up RAID... – jmb05 Dec 06 '19 at 20:45
  • So add all those informations to your question (you can edit it): you have BIOS or UEFI on your server, you setup your RAID in BIOS/UEFI or in the Ubuntu installer. If your RAID is configured in BIOS, what's your motherboard model (some motherboards offer software RAID, which GRUB may not understand, other hardware RAID). Did you leave some space before the first partition (BIOS) or do you have a UEFI partition. All those informations are important if you want a good answer. – Piotr P. Karwasz Dec 06 '19 at 21:45

2 Answers2

1

I kind of fixed it because I thought I had to use the embedded RAID utility tool but I could just turn it off... maybe I will have a look at the software RAID

jmb05
  • 11
  • 5
0

It seem you are setting the RAID in the configuration utility of the RAID controller integrated into the motherboard. If so you just need to make sure that GRUB is installed in the root of the RAID device.

For example if you see the RAID0 device as /dev/sda you should choose it as the GRUB install destination. Currently looks like you are trying to install GRUB inside the LVM which won't work.

Krasi
  • 96
  • 3
  • Now the error message says: unable to install GRUB in /dev/md126p5 ... – jmb05 Dec 09 '19 at 18:25
  • You have a so called **BIOS RAID** as explained in [this answer](https://superuser.com/a/461539/1066525). Many things can get wrong, look in the logs (`CTRL + ALT + 1` to reach a console, then `cat /var/log/syslog`). – Piotr P. Karwasz Dec 09 '19 at 20:48
  • /dev/md126p5 sounds like device md126 partition 5. In case this is so need to use the /dev/md126 device for GRUB installation. Can you please post more information about the current config of the RAID device. Maybe a screen capture of the configuration utility could help. Another screenshot of the installation wizard at the stage of choosing the installation device could also help. – Krasi Dec 10 '19 at 08:12
  • I am still wondering why installing Ubuntu desktop worked... – jmb05 Dec 10 '19 at 15:56
  • @PiotrP.Karwasz That gives me a never-ending log ... it just goes on and on – jmb05 Dec 10 '19 at 17:38
  • Does the log say something about Grub? On your desktop you didn't use BIOS RAID. You can also disable RAID in BIOS, create a software RAID, when installing Ubuntu and it should work without problems. – Piotr P. Karwasz Dec 10 '19 at 17:47
  • I used BIOS RAID on desktop... – jmb05 Dec 10 '19 at 18:08
  • You might try to disable `secure boot` and similar in BIOS on the server. – Piotr P. Karwasz Dec 10 '19 at 20:53