[mythtv-users] Rebuild raid array ?

Kevin Bailey keraba at gmail.com
Wed Nov 24 21:09:54 UTC 2010


On Tue, Nov 23, 2010 at 9:07 AM, John Drescher <drescherjm at gmail.com> wrote:

>
> Are all of your arrays type fd in fdisk?
>

 255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00078e99

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         124      995998+  82  Linux swap / Solaris
/dev/sdb2             125       30401   243200002+  fd  Linux raid
autodetect
% sudo fdisk -l /dev/sdc

Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00089a38

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         124      995998+  82  Linux swap / Solaris
/dev/sdc2             125       30401   243200002+  fd  Linux raid
autodetect
% sudo fdisk -l /dev/sdd

Disk /dev/sdd: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009874c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1         124      995998+  82  Linux swap / Solaris
/dev/sdd2             125       30401   243200002+  fd  Linux raid
autodetect

Can you post the output of mdadm -D /dev/md0
>

 % sudo mdadm -D /dev/md0
/dev/md0:
        Version : 00.90
  Creation Time : Sun Sep 14 11:29:41 2008
     Raid Level : raid5
     Array Size : 729599808 (695.80 GiB 747.11 GB)
  Used Dev Size : 243199936 (231.93 GiB 249.04 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Nov 24 21:01:51 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 0cf77cbe:fad9f965:a9910174:ed2ec730
         Events : 0.190

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2
       2       8       34        2      active sync   /dev/sdc2
       3       8       50        3      active sync   /dev/sdd2


> And mdadm -E /dev/sda2
> mdadm -E /dev/sdb2
> mdadm -E /dev/sdc2
> mdadm -E /dev/sdd2
>

 % sudo mdadm -E /dev/sda2
/dev/sda2:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 0cf77cbe:fad9f965:a9910174:ed2ec730
  Creation Time : Sun Sep 14 11:29:41 2008
     Raid Level : raid5
  Used Dev Size : 243199936 (231.93 GiB 249.04 GB)
     Array Size : 729599808 (695.80 GiB 747.11 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Wed Nov 24 21:06:08 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : ebf6f415 - correct
         Events : 190

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     0       8        2        0      active sync   /dev/sda2

   0     0       8        2        0      active sync   /dev/sda2
   1     1       8       18        1      active sync   /dev/sdb2
   2     2       8       34        2      active sync   /dev/sdc2
   3     3       8       50        3      active sync   /dev/sdd2
% sudo mdadm -E /dev/sdb2
/dev/sdb2:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 0cf77cbe:fad9f965:a9910174:ed2ec730
  Creation Time : Sun Sep 14 11:29:41 2008
     Raid Level : raid5
  Used Dev Size : 243199936 (231.93 GiB 249.04 GB)
     Array Size : 729599808 (695.80 GiB 747.11 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Wed Nov 24 21:06:08 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : ebf6f427 - correct
         Events : 190

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     1       8       18        1      active sync   /dev/sdb2

   0     0       8        2        0      active sync   /dev/sda2
   1     1       8       18        1      active sync   /dev/sdb2
   2     2       8       34        2      active sync   /dev/sdc2
   3     3       8       50        3      active sync   /dev/sdd2
% sudo mdadm -E /dev/sdc2
/dev/sdc2:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 0cf77cbe:fad9f965:a9910174:ed2ec730
  Creation Time : Sun Sep 14 11:29:41 2008
     Raid Level : raid5
  Used Dev Size : 243199936 (231.93 GiB 249.04 GB)
     Array Size : 729599808 (695.80 GiB 747.11 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Wed Nov 24 21:06:08 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : ebf6f439 - correct
         Events : 190

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     2       8       34        2      active sync   /dev/sdc2

   0     0       8        2        0      active sync   /dev/sda2
   1     1       8       18        1      active sync   /dev/sdb2
   2     2       8       34        2      active sync   /dev/sdc2
   3     3       8       50        3      active sync   /dev/sdd2
% sudo mdadm -E /dev/sdd2
/dev/sdd2:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 0cf77cbe:fad9f965:a9910174:ed2ec730
  Creation Time : Sun Sep 14 11:29:41 2008
     Raid Level : raid5
  Used Dev Size : 243199936 (231.93 GiB 249.04 GB)
     Array Size : 729599808 (695.80 GiB 747.11 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Wed Nov 24 21:06:08 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : ebf6f44b - correct
         Events : 190

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     3       8       50        3      active sync   /dev/sdd2

   0     0       8        2        0      active sync   /dev/sda2
   1     1       8       18        1      active sync   /dev/sdb2
   2     2       8       34        2      active sync   /dev/sdc2
   3     3       8       50        3      active sync   /dev/sdd2

And cat /proc/mdstat
>

 % cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdb2[1] sdc2[2] sda2[0] sdd2[3]
      729599808 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

unused devices: <none>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20101124/bb0784a1/attachment.htm>


More information about the mythtv-users mailing list