LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-14-2017, 07:35 PM   #1
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Rep: Reputation: 1
Raid 1 breaks every time I reboot. Having trouble rebuilding it.


I'm kind of tired of having to wipe this machine and reload it every single time I need to reboot it.

I'm running Mint 18.1 64bit with a RAID 1 of two 1.5TB hard drives. They are set up in a mirror with an Intel RAID controller that is built onto the motherboard.

Every time I reboot it goes into a "Rebuild" state saying it has to be rebuilt in the OS.

dmraid -s says.

Code:
ERROR: isw: Could not find disk /dev/sdb in the metadata
no raid disks
Code:
sudo dmsetup status
isw_cdhhfchcei_Volume0p2: 0 2 linear 
isw_cdhhfchcei_Volume0p1: 0 997376 linear 
mint--vg-swap_1: 0 33464320 linear 
isw_cdhhfchcei_Volume0: 0 2930272520 mirror 2 8:0 8:16 2039/22357 1 AA 1 core
isw_cdhhfchcei_Volume0p5: 0 2929270784 linear 
mint--vg-root: 0 2895798272 linear


I've tried looking up online how to rebuild this RAID but keep running into a dead end with that metadata issue.

Just trying to avoid another reload that will take an entire day to do.
 
Old 06-14-2017, 09:31 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
I think I need a bit more information.

Can I assume you have a hardware based raid controller and that you created the array within the raid bios? Then you created some sort of lvm or mdadm on that?

I hope you are not using dmsetup to create the raid.
https://wiki.gentoo.org/wiki/Device-mapper#Mirror

Last edited by jefro; 06-14-2017 at 09:33 PM.
 
Old 06-15-2017, 10:50 AM   #3
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
It is set up in the bios with lvm.
 
Old 06-23-2017, 02:22 PM   #4
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
I'm running Mint 18.1 64bit with a RAID 1 of two 1.5TB hard drives. They are set up in a mirror with an Intel RAID controller that is built onto the motherboard.
The first thing you need to understand is that you don't have real hardware raid. You never did. What you have is called "fakeRAID" or hostRAID. Real hardware RAID has its own processor and is transparent to OSs. You wouldn't need dmsetup at all with real hardware RAID which typically comes with $200+ PCI-E cards.

Unless you are dual booting with Windows you should simply use mdadm software RAID as it is far easier to set up and manage. I setup a RAID1 with two drives and put lvm on top two years ago and it wasn't that difficult.

There is no metadata issue with mdadm. The problem you are having is apparently normal. Unless you build such a setup with metadata it needs to be rebuilt at every reboot.

The following pages from the Arch and Gentoo Wikis explain the issues. Mdadm is much simpler and suffers no performance hit.

https://wiki.archlinux.org/index.php...with_Fake_RAID

https://wiki.gentoo.org/wiki/Device-mapper#RAID1
 
  


Reply


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
[SOLVED] md *does not* continue rebuilding after reboot on Slackware 14.1 gaitos Slackware 6 10-06-2015 01:29 AM
[SOLVED] Trouble rebuilding RAID-5 array after power outage WindowBreaker Slackware 10 02-02-2010 03:19 AM
Question about RAID rebuilding beadyallen Linux - Server 1 10-21-2008 06:34 PM
Problem rebuilding a RAID 1 DarkSun4241 Linux - Hardware 2 09-18-2008 08:24 AM
raid rebuilding error wedgeworth Linux - Hardware 0 09-05-2003 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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