[mythtv-users] Reassemble RAID with mdadm

Brent Bolin brent.bolin at gmail.com
Tue Mar 16 13:02:49 UTC 2010


On Tue, Mar 16, 2010 at 5:02 AM, Phillip Barnett
<phillip.p.barnett at gmail.com> wrote:
> I have three disks, sda, sdb, sdc. The OS is on sda, and sdb and sdc were
> RAIDed as RAID1, with all my media.
>
> Recently my myth installation got totally screwed up, and I decided to do a
> complete upgrade/reinstall. However, this has now broken the array as all
> the config material was on the sda drive (d'oh!), and I need to know how to
> reassemble the disks. Using mdadm --create didn't work, as it warned me that
> the disks were already used for an array. Should I use assemble, create or
> build in this instance? The disks themselves are intact and can be mounted
> and read individually, but I do need to reassemble them into a RAID without
> losing the media already on them.
>
> Thanks in advance.
>
> Phillip
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

This is exactly how my system is setup.

sda contains o/s and recorded TV.  All are 1TB drives.

sdb and sdc are raid one with videos, image library and music

I backup the entire /etc directory and mysql for the purpose of reconstruction.

Here is my /etc/mdadm/mdadm.conf -

DEVICE /dev/sdb1 /dev/sdc1
ARRAY /dev/md0 level=raid1 devices=/dev/sdb1,/dev/sdc1

And here is /etc/fstab -

/dev/md0       /disk1           ext4    defaults        0       2

Don't know much about rebuilding mdadm raid1 because I have never done so.

Hope this helps.


More information about the mythtv-users mailing list