[mythtv-users] OT: follies with RAID

John Drescher drescherjm at gmail.com
Mon Feb 9 15:16:24 UTC 2009


On Mon, Feb 9, 2009 at 9:54 AM, Yan Seiner <yan at seiner.com> wrote:
> So my myth backend has a RAID-6 array for some other files.
>
> Yesterday I noticed that I made a bonehead error in setting it up:
>
> md10 : active raid6 sdd[2] sdg1[0] sdk1[5] sde1[4] sdh1[3] sdj1[1]
>     1562834944 blocks level 6, 64k chunk, algorithm 2 [6/6] [UUUUUU]
>
> Note that sdd is the raw drive, not a partition.
>
> selene:/data/home/yan#  /sbin/fdisk -l /dev/sdd
>
> Disk /dev/sdd: 400.0 GB, 400087375360 bytes
> 255 heads, 63 sectors/track, 48641 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x00000000
>
> Disk /dev/sdd doesn't contain a valid partition table
>
> As opposed to
>
> selene:/data/home/yan#  /sbin/fdisk -l /dev/sdg
>
> Disk /dev/sdg: 400.0 GB, 400088457216 bytes
> 255 heads, 63 sectors/track, 48641 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x000315f4
>
>  Device Boot      Start         End      Blocks   Id  System
> /dev/sdg1               1       48641   390708801   fd  Linux raid
> autodetect
>
>
> How do I go about fixing this?
>

1) Use mdadm to fail the drive.
2) sfdisk -d /dev/sdg | sfdisk /dev/sdd
3) Use madam to re add the disk

John


More information about the mythtv-users mailing list