LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Raid 1 breaks every time I reboot. Having trouble rebuilding it. (https://www.linuxquestions.org/questions/linux-hardware-18/raid-1-breaks-every-time-i-reboot-having-trouble-rebuilding-it-4175607931/)

orsty9001 06-14-2017 07:35 PM

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.

jefro 06-14-2017 09:31 PM

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

orsty9001 06-15-2017 10:50 AM

It is set up in the bios with lvm.

tofino_surfer 06-23-2017 02:22 PM

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


All times are GMT -5. The time now is 05:41 AM.