LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2018, 09:32 AM   #1
astralmaster
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Ubuntu Server 18.04 software RAID 1 definition


I am unable to find the exact specifications of how the RAID 1 logic is executed in Ubuntu Server 18.04. More precisely, I am interested in setting up a RAID 1 software mirroring using two identical SSD drives, and would like to know how does the system behave when one of the drives goes bad and shuts down. Does the system shut down as well? If I unplug the bad drive and leave the second one does the second boot the same way the first one does? (eg. does it have the bootloader as well)
 
Old 10-29-2018, 02:38 PM   #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
With RAID 1, the system should continue after a drive failure with all data intact. The problem, as you figured out, is booting.

The computer BIOS/EFI knows nothing about Linux software RAID (md), however some BIOS and RAID cards have software RAID that is supported by Linux dmraid, if you want to go that route.

Booting from Linux md RAID requires that your BIOS is smart enough to try the 2nd drive if the first one fails - most aren't. Second, you will need to install a RAID-aware bootloader on both drives. Note: Murphy's Law states that it is always the first drive that fails.

A typical way to get around lack of proper support in the BIOS is to have a 1GB or so /boot and bootloader on each drive. The rest of the drives are your mirrored RAID 1 partitions. If the first drive fails and you want to reboot, you can disconnect it and reboot from /boot on the second one. You need to keep the two copies in sync manually, but /boot only changes when you get a new kernel.
 
1 members found this post helpful.
  


Reply

Tags
raid1, ubuntu 18.04



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
how to know server configured with hard raid or software raid in linux server rames_tv Linux - Newbie 8 06-14-2016 04:10 AM
CentOS semi-manual p2V VMWare ESXi- [Software Raid to Non-Software Raid], boots to kernel panic Train Linux - Server 1 06-22-2014 08:46 AM
Ubuntu Server Software Raid 5 - How does the system boot if one drive goes down? xmrkite Linux - Software 9 04-21-2014 06:50 PM
Software RAID on ubuntu rolnik Linux - Server 2 10-01-2009 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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