[CentOS] RE: lvm errors after replacing drive in raid 10 array

Mike mike at microdel.org
Thu Jul 17 23:05:14 UTC 2008


On Thu, 17 Jul 2008, Ross S. W. Walker wrote:

>
> It would be interesting to see what the mdadm --detail /dev/mdX
> says.
>
> I see the VG is made out of 1 PV md3? What are md0,1,2 doing, I
> can guess md0 is probably /boot, but what about 1 and 2?
>
> It wouldn't hurt to give the sfdisk partition dumps for the
> drives in question too.
>
> -Ross
>

Thanks for the reply.  md2 is /boot, md0 is /root and md1 is swap.


# mdadm --detail /dev/md3
/dev/md3:
         Version : 00.90.03
   Creation Time : Fri Jul  4 17:11:30 2008
      Raid Level : raid10
      Array Size : 947883008 (903.97 GiB 970.63 GB)
   Used Dev Size : 473941504 (451.99 GiB 485.32 GB)
    Raid Devices : 4
   Total Devices : 4
Preferred Minor : 3
     Persistence : Superblock is persistent

     Update Time : Thu Jul 17 15:58:52 2008
           State : clean
  Active Devices : 4
Working Devices : 4
  Failed Devices : 0
   Spare Devices : 0

          Layout : near=1, far=2
      Chunk Size : 256K

            UUID : 7ecb1de6:c6e22a3a:1bd5446a:1dcd5444
          Events : 0.3852

     Number   Major   Minor   RaidDevice State
        0       8        4        0      active sync   /dev/sda4
        1       8       20        1      active sync   /dev/sdb4
        2       8       36        2      active sync   /dev/sdc4
        3       8       52        3      active sync   /dev/sdd4


# sfdisk -l /dev/sda

Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+     12      13-    104391   fd  Linux raid 
autodetect
/dev/sda2         13    1287    1275   10241437+  fd  Linux raid 
autodetect
/dev/sda3       1288    1797     510    4096575   fd  Linux raid 
autodetect
/dev/sda4       1798   60800   59003  473941597+  fd  Linux raid 
autodetect

# sfdisk -l /dev/sdb

Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1   *      0+     12      13-    104391   fd  Linux raid 
autodetect
/dev/sdb2         13    1287    1275   10241437+  fd  Linux raid 
autodetect
/dev/sdb3       1288    1797     510    4096575   fd  Linux raid 
autodetect
/dev/sdb4       1798   60800   59003  473941597+  fd  Linux raid 
autodetect

# sfdisk -l /dev/sdc

Disk /dev/sdc: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1   *      0+     12      13-    104391   fd  Linux raid 
autodetect
/dev/sdc2         13    1287    1275   10241437+  fd  Linux raid 
autodetect
/dev/sdc3       1288    1797     510    4096575   fd  Linux raid 
autodetect
/dev/sdc4       1798   60800   59003  473941597+  fd  Linux raid 
autodetect

# sfdisk -l /dev/sdd

Disk /dev/sdd: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdd1   *      0+     12      13-    104391   fd  Linux raid 
autodetect
/dev/sdd2         13    1287    1275   10241437+  fd  Linux raid 
autodetect
/dev/sdd3       1288    1797     510    4096575   fd  Linux raid 
autodetect
/dev/sdd4       1798   60800   59003  473941597+  fd  Linux raid 
autodetect



More information about the CentOS mailing list