LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-04-2018, 07:32 PM   #1
road hazard
Member
 
Registered: Nov 2015
Posts: 184

Rep: Reputation: Disabled
Question Question about using Raider to convert single drive to RAID 1


My current setup is Mint 19 on a single 250 gig boot SSD (XFS) and a 12 drive MDADM RAID 6 (md0, XFS) and a 4 drive MDADM RAID 5 (md127, ext 4).

I want to add a 2nd SSD so my boot drive will have a RAID 1 mirror in case of hardware failure. I was looking around the found an awesome program called 'raider'. It looks like it will do the job perfectly but, it hasn't been updated since 2013. Is that still safe to use with newer versions of GRUB/MDADM?

In case it matters, my boot SSD is formatted with MBR and legacy boot (not using UEFI).

PS Once I'm done with Raider, does it need to stay installed or can it be removed? (Guess it won't hurt just to leave it?!)
 
Old 10-04-2018, 08:20 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,157

Rep: Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340
Never heard of it. Have you read (all) the doco ?.
The homepage says it's a bash script - download it and have a look for yourself. The actions to convert a disk to RAID1 are pretty straightforward - the only issue I'd be concerned about would be re-generating the initrd, and it seems they cover all the "known" ways.

Looking at the script might give you the confidence to do it yourself.
 
Old 10-05-2018, 07:39 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,222

Rep: Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196
Be sure to look at the files in that. One is something like bootrec but many exist that do different tasks.

If you do want to use it you can either leave it or remove it. Author notes you will need to remove on update of the program.
 
Old 10-05-2018, 08:21 PM   #4
road hazard
Member
 
Registered: Nov 2015
Posts: 184

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Be sure to look at the files in that. One is something like bootrec but many exist that do different tasks.

If you do want to use it you can either leave it or remove it. Author notes you will need to remove on update of the program.
Being a Linux newbie, I'm not confident in my abilities to look through those files and spot anything weird. I rounded up 2 SSD's and carried out the test on a scratch system and it worked perfectly!

I don't think I'll ever need to remove it if an update comes out since it hasn't been updated in years. Shame, as it appears to work wonderfully. EXCEPT, when I ran it, I do remember seeing these weird errors (maybe they were normal) about "missing modules". In the end, the script said it completed and MDADM was syncing the drives and I tested the fault tolerance (removed a drive, rebooted into a degraded RAID 1..... added a drive back to the array and all was well).

Any idea why it might need to remain installed after it's done? The line about 'uninstalling it before updating' confuses me. To me, that implies that after you use it, leave it installed and update it later on if a newer version comes out. It just looks like a script that automates a bunch of MDADM magic in the background and after it's finished, it's no longer needed. Like a moron, I didn't test out removing it after the RAID 1 was setup. If I get some time next weekend, I'll give it another go and test THAT theory out. Shouldn't matter though.

EDIT: Here is a copy/paste from part of the log file where I reference 'missing modules' above:

Create initram filesystem and install GRUB in /dev/sdb [#554:step2]
update-initramfs -u [#555:step2]
Enter in chroot system... [#561:step2]
update-initramfs: Generating /boot/initrd.img-4.15.0-34-generic
/usr/sbin/grub-install --no-floppy --recheck /dev/sdb
Installing for i386-pc platform.
/usr/sbin/grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Installation finished. No error reported.
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Found Linux Mint 19 Tara (19) on /dev/sda1
done
Copying logfiles to chroot [#586:step2]

Last edited by road hazard; 10-05-2018 at 10:26 PM. Reason: Adding log data
 
  


Reply

Tags
mdadm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Centos 7.2 Convert single LVM to RAID Mirror Reinstall BootLoader Clovis_Sangrail Linux - Server 2 04-26-2016 08:18 PM
[SOLVED] How do I convert a single hard drive to GPT without losing data groze Linux - Newbie 5 04-22-2015 11:42 AM
Convert single hard drive to 3+ disk RAID 5? orangesky Linux - Server 5 09-19-2012 10:46 AM
convert single drive Ubuntu server to RAID 0 Ipolit Linux - Server 4 05-29-2010 04:40 PM
OS on single drive, RAID 5 on 3 others - user lost OS drive drphat Linux - Server 4 01-01-2009 07:10 AM

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

All times are GMT -5. The time now is 04:04 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