LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2020, 04:05 AM   #1
MatCat
LQ Newbie
 
Registered: Feb 2020
Posts: 9

Rep: Reputation: Disabled
Trouble getting MD raid booting Mint 19.3


I have 2 SSD drives setup with MD RAID0, this computer has no UEFI so I am having to use GRUB2, now at first I tried having a separate partition outside of raid for /boot, if I do it this way and set the root and all that to /dev/sda1 (/boot partition with grub) it will load and drop into emergency shell, from which I could manually mount /dev/md0p3 (raid partition which is real root), and chroot to it, then I thought well what if I try to just keep /boot in the same root partition, and let mbr be in the /dev/sda1, but when I try to do that grub-install fails saying it can't find a device for /boot/grub. Someone please help me figure this out .
 
Old 02-17-2020, 08:40 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Why do RAID0 and not just have two drives? You can use LVM to combine them.
 
Old 02-17-2020, 12:11 PM   #3
MatCat
LQ Newbie
 
Registered: Feb 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
Why do RAID0 and not just have two drives? You can use LVM to combine them.
That is exactly what I am doing with mdadm, creating a SW RAID0.
 
Old 02-17-2020, 02:54 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
You seem to be wanting to do the same thing using different names.

Using LVM is a common way to add disks/partitions together seamlessly.

This should work on install I'd think. https://help.ubuntu.com/lts/servergu...tallation.html
 
Old 02-17-2020, 04:49 PM   #5
MatCat
LQ Newbie
 
Registered: Feb 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
I have the raid partition working fine, its getting GRUB to load it! As I said at first when it goes to boots, it drops into emergency shell, from which I can mount the /dev/md0p3 raid partition, and chroot to it, but its getting to to do that properly on its own without dropping to e shell that I am trying to figure out.
 
Old 02-17-2020, 08:41 PM   #6
MatCat
LQ Newbie
 
Registered: Feb 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
So some sort of a process, I figured out that the UUID's in grub config for the /boot partition need to point to that partition, and set ROOT= should be the UUID that is the actual root of the OS, I got as far now as it shows a Mint logo for about, 5 seconds, then exists to emergency shell with no real indication of exactly what is going on or why its failing. I can manually run ./init in inetramfs and get it to show the logo again for a few seconds, but it just exits out complains about mounting sysfs proc and udev being resource busy (I iamgine cause it mounted them the first time around). Also complains about /dev/pts already existing when it tries to mkdir, but that is before the logo comes up so I don't think that is what is causing it to fail.
 
Old 02-17-2020, 09:48 PM   #7
MatCat
LQ Newbie
 
Registered: Feb 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
Well I feel like I gave up doing it this way, but I just made a 16GB standard partition on each SSD drive, OSA and OSB, so they can be 2 diferent OS backup images, and the rest of the SSD's are software raid 0, and that works fine, swap is on that, as well as scratch space and it works right out the box that way.
 
Old 02-17-2020, 09:48 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Might try this.

"
sudo grub-install /dev/md0

Replace /dev/md0 with the appropriate array device name. "https://help.ubuntu.com/lts/serverguide/advanced-installation.html
 
Old 02-17-2020, 10:02 PM   #9
MatCat
LQ Newbie
 
Registered: Feb 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Might try this.

"
sudo grub-install /dev/md0

Replace /dev/md0 with the appropriate array device name. "https://help.ubuntu.com/lts/serverguide/advanced-installation.html
That only works if using UEFI boot, which I am not.
 
Old 02-18-2020, 02:57 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Ok, if you are sure.
 
Old 02-18-2020, 03:22 PM   #11
MatCat
LQ Newbie
 
Registered: Feb 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Ok, if you are sure.
I am, only UEFI can boot from a software raid as it required gpt support, BIOS boot only supports MBR, which means grub must be installed on a drive with msdos partition table. Anyway I gave up doing it how I really wanted to and put the entire OS on a single non-SW raid partitition, then afterwards I just moved the critical stuff like /usr and /var to a different partitition bind mounted to a folder. Working well. I will work on getting it running off RAMDISK once I get all the RAM I ordered in, only have 32GB installed right now, I have 128GB coming.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
S.W RAID vs RAID accelerator (FastTrakR TX4310 ) @ RAID 1 David Zfira Linux - Newbie 6 07-29-2009 11:13 PM
LXer: Tutorial: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 08-14-2008 11:20 PM
LXer: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 02-26-2008 09:40 PM
which raid level (RAID 5 or RAID 10) inspiredbymetal Linux - Server 4 11-25-2007 07:59 PM
HW RAID, fake-HW RAID or SW RAID? stromdal Linux - Hardware 5 08-10-2007 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration