[mythtv-users] Reassemble RAID with mdadm

MarcT myrdhn at gmail.com
Tue Mar 16 17:03:24 UTC 2010


Steve,

Here is the current status of my raid -

mdadm -D /dev/md0
/dev/md0:
        Version : 00.90
  Creation Time : Mon Dec 14 19:17:08 2009
     Raid Level : raid1
     Array Size : 976759936 (931.51 GiB 1000.20 GB)
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Tue Mar 16 09:00:38 2010
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : d376cfd0:a438be3c:5f1e94b5:d63edfe3 (local to host myth)
         Events : 0.283797

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1

So if the status ever changes to degraded(not sure what it would
change to if bad sectors etc...) could I simply bring the box down and
replace with another drive?  I don't have any spares defined trying to
keep power usage as low as possible.

Or is there an added set of commands to run when the bad drive is replaced?
_______________________________________________

Mirroring is fine for fault tolerance, but you get no speed boost from it.
I would recommend getting 2 more drives if you can afford it and setup a
RAID5 configuration.
Not only do you get a fault tolerant array, can lose 1 drive and not lose
data, but you get a speed boost because the system writes data across all
the drives.

MarcT




More information about the mythtv-users mailing list