/srv/irclogs.ubuntu.com/2024/07/05/#ubuntu-server.txt

TheProfHello.  I am having some difficulty getting Ubuntu Server 24.04 to install on my machine with the drives in Linux RAID configuration, and I am looking for help please.  I followed several guides online to set up the RAID during installation, and the installation ends with a 'successfully installed' message, but upon reboot the BIOS reports No Bootable Media Found.  I've reinstalled three times and 03:45
TheProfget the same error.  How can I determine the issue and solve this please?03:45
blahdeblahTheProf: What disk layout did you use?  Can you link to the guide which most closely matches what you did?03:58
TheProf@blahdeblah, hello.  I can describe my layout and link the guide sure.  Server has 8x1TB drives.  So I set / as RAID1 on two drives, and /home on RAID5 on 4 drives, with 2 hot spares.  Let me try to find the guide I used04:04
TheProfHere is the link: https://tonyfernandeztech.wordpress.com/2021/04/27/installing-ubuntu-20-04-with-software-raid-1/  One change I made was not to include /boot within the RAID1 as I had seen it doesn't work as /boot is needed before the RAID is mounted so I kept /boot outside04:06
patdk-laphmm, bios wont understand raid, though these days you should be using uefi04:07
patdk-lapthat guide is not using uefi, not pretty04:08
TheProfI'm using an older server and I'm not familiar with UEFI at all.04:09
patdk-lapI had to change to uefi with 22.04, but forget if it was cause of 22.04, or something else I was doing04:10
patdk-lapoh, I think it was my motherboard wouldn't boot from my m.2 unless I used uefi04:10
patdk-lapunless your server is >10years old, it likely does uefi04:10
patdk-lapbut that is kindof a different thing, but becoming more and more required though04:11
TheProf@patdk-lap, it is around 11 or so years old and was donated to the school04:12
TheProfThe machine has a hardware RAID controller, but when I try to use hardware raid to create the drives, the Ubuntu server installer doesn't see any drives whatsoever.  And using software raid doesn't seem to work so I am stuck.04:18
TheProfIf it is better to just wipe and reinstall I can do that, but what is the correct way to install for software RAID during installation?  Do I need to have /boot outside the RAID?04:26
patdk-lapI always put /boot on raid104:27
TheProf@patdk-lap, OK so during installation when I go to custom / manual storage configuration, what do you do next?  Do you specify /boot on the raid in a certain way?04:29
patdk-laponly if the system is so old it can only boot on drives smaller than 4gig or 8gig or something04:30
patdk-lapotherwise, I dont bother making /boot it's own raid104:30
TheProfOK - can I just tell the installer to set up RAID1 and put / on it and it will also include /boot by itself?04:31
patdk-lapyes04:32
TheProfOK so I can ignore what that guide is saying then?  I don't need to specify a separate partition for /boot and SWAP?04:33
patdk-lapwell, swap depends04:34
patdk-lapI dont like using swap files, so I use a seperate partition for swap04:34
TheProfThe server has 40 GB of RAM so I feel it isn't needed?04:34
patdk-lapbut do whatever you want, dont matter04:34
patdk-lapdunno, if 40gig is enough for you04:35
TheProfOh yes.  The previous server which ran for years had 16 GB and never went to swap04:35
patdk-lapI'm eating 40gigs of swap with 160gigs ram :(04:35
patdk-lapno idea why it is even using swap, it doesn't run anything04:35
TheProfI'll give this a try now as I've been ripping out my hair for three days trying to get anything to install on it.04:37
patdk-lapthe only HARD part to set that all up, is grub04:37
TheProfIs grub able to be in the RAID as well?04:38
patdk-lapno04:38
patdk-lapyou need to set it up on each drive04:38
patdk-lapand everytime grub updates, make sure it updates each drive04:38
TheProfOK so that's probably what is happening here.04:38
TheProfDo I need to set up grub on the drives which are part of the /home RAID5, or only the / RAID1 which I'm going to mark as boot devices? 04:43
patdk-lapgrub needs to be setup on any drive you want to boot from in the bios04:50
TheProfOK04:51
TheProfOK so this is weird.  I think I figured out what was happening with the raid controller.  I checked just to make sure and the controller in the server is an PERC H310, which is specifically listed as supported by Ubuntu server OS.  But every time I tried it, the installer would hang during boot with all these weird errors.  So I finally figured it out.  The issue is the global hot spares.  Ubuntu 05:24
TheProfserver installer will crash if global spares are set in the controller.  I didn't set them this time and everything worked perfectly.  05:24
TheProfNot sure why setting the extra drives as global spares causes the installer to crash but when I didn't, it worked great.  Maybe I can set them as spares after the installation is complete.05:27
TheProfI don't understand the error but during the installer boot-up it would repeat something along the lines of 'dmar rma read no_pasid request device PTR read access is not set', for what it is worth.05:30

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!