Author Topic: RAID filed - mdadm: no devices found for /dev/md0  (Read 9840 times)

anupindi007

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
RAID filed - mdadm: no devices found for /dev/md0
« on: August 24, 2009, 05:04:49 pm »
Hi,
mdadm raid contains 6 hard disks, in that now mdadm shows 2 is activ sync and other 4 shows removed.  Any one can help on this same and thanks in advance.
Srinivas

Details as follows:

# mdadm --detail /dev/md0
mdadm: md device /dev/md0 does not appear to be active.


#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sdb1[4](S) sda1[5](S) sdd1[3](S) sdg1[2](S) sdf1[1](S) sde1[0](S)
      5860559616 blocks

#mdadm -QE --scan
ARRAY /dev/md0 level=raid5 num-devices=6 UUID=7395e18d:4088dc27:bd9f1658:0a1d2015

#mdadm -As /dev/md0
mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.



#cat /etc/mdadm/mdadm.conf
DEVICE partitions
ARRAY /dev/md0 level=raid5 num-devices=6 metadata=0.90 spares=1 UUID=7395e18d:4088dc27:bd9f1658:0a1d2015

Note:  I am not able to see "devices= /dev/sdg1,/dev/sdf1,/dev/sde1,/dev/sdd1,/dev/sdb1,/dev/sda1" and "auto=yes" in the "/etc/mdadm/mdadm.conf" file



-- initial RAID devices as follows:
0   /dev/sde1
1   /dev/sdf1
2   /dev/sdg1
3   /dev/sdd1
4   /dev/sdb1
5   /dev/sda1


#mdadm --detail /dev/md0
/dev/md0:                                             
        Version : 00.90                               

Creation Time : Sun Jun 7 11:29:40 2009
Raid Level : raid5
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)

   Raid Devices : 6
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

Update Time : Mon Aug 17 08:16:35 2009
          State : active, degraded, Not Started

Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0


Layout : left-symmetric
Chunk Size : 64K

UUID : 7395e18d:4088dc27:bd9f1658:0a1d2015
         Events : 0.650340


Number Major Minor RaidDevice State
0 0 0 0 removed
       1       0        0        1      removed
       2       0        0        2      removed
       3       0        0        3      removed

4 8 17 4 active sync /dev/sdb1
       5       8        1        5      active sync   /dev/sda1



#mdadm -R /dev/md0
mdadm: failed to run array /dev/md0: Input/output error


# mdadm -E /dev/sda1
/dev/sda1:                             
          Magic : a92b4efc             
        Version : 00.90.00             
           UUID : 7395e18d:4088dc27:bd9f1658:0a1d2015
  Creation Time : Sun Jun  7 11:29:40 2009           
     Raid Level : raid5                             
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
     Array Size : 4883799680 (4657.55 GiB 5001.01 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0

    Update Time : Mon Aug 17 08:16:35 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 3
  Spare Devices : 0
       Checksum : f4088e0f - correct
         Events : 650340

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     5       8        1        5      active sync   /dev/sda1

   0     0       0        0        0      removed
   1     1       0        0        1      faulty removed
   2     2       0        0        2      faulty removed
   3     3       0        0        3      faulty removed
   4     4       8       17        4      active sync   /dev/sdb1
   5     5       8        1        5      active sync   /dev/sda1




# mdadm -E /dev/sdb1
/dev/sdb1:                             
          Magic : a92b4efc             
        Version : 00.90.00             
           UUID : 7395e18d:4088dc27:bd9f1658:0a1d2015
  Creation Time : Sun Jun  7 11:29:40 2009           
     Raid Level : raid5                             
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
     Array Size : 4883799680 (4657.55 GiB 5001.01 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0

    Update Time : Mon Aug 17 08:16:35 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 3
  Spare Devices : 0
       Checksum : f4088e1d - correct
         Events : 650340

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     4       8       17        4      active sync   /dev/sdb1

   0     0       0        0        0      removed
   1     1       0        0        1      faulty removed
   2     2       0        0        2      faulty removed
   3     3       0        0        3      faulty removed
   4     4       8       17        4      active sync   /dev/sdb1
   5     5       8        1        5      active sync   /dev/sda1


# mdadm -E /dev/sdd1     
/dev/sdd1:                                   
          Magic : a92b4efc                   
        Version : 00.90.00                   
           UUID : 7395e18d:4088dc27:bd9f1658:0a1d2015
  Creation Time : Sun Jun  7 11:29:40 2009           
     Raid Level : raid5                             
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
     Array Size : 4883799680 (4657.55 GiB 5001.01 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0

    Update Time : Mon Aug 17 08:15:41 2009
          State : clean
 Active Devices : 6
Working Devices : 6
 Failed Devices : 0
  Spare Devices : 0
       Checksum : f4088db3 - correct
         Events : 650334

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     3       8       49        3      active sync   /dev/sdd1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8       49        3      active sync   /dev/sdd1
   4     4       8       17        4      active sync   /dev/sdb1
   5     5       8        1        5      active sync   /dev/sda1


#dm -E /dev/sde1
/dev/sde1:                             
          Magic : a92b4efc             
        Version : 00.90.00             
           UUID : 7395e18d:4088dc27:bd9f1658:0a1d2015
  Creation Time : Sun Jun  7 11:29:40 2009           
     Raid Level : raid5                             
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
     Array Size : 4883799680 (4657.55 GiB 5001.01 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0

    Update Time : Mon Aug 17 08:15:41 2009
          State : clean
 Active Devices : 6
Working Devices : 6
 Failed Devices : 0
  Spare Devices : 0
       Checksum : f4088dbd - correct
         Events : 650334

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     0       8       65        0      active sync   /dev/sde1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8       49        3      active sync   /dev/sdd1
   4     4       8       17        4      active sync   /dev/sdb1
   5     5       8        1        5      active sync   /dev/sda1


# mdadm -E /dev/sdf1
/dev/sdf1:                             
          Magic : a92b4efc             
        Version : 00.90.00             
           UUID : 7395e18d:4088dc27:bd9f1658:0a1d2015
  Creation Time : Sun Jun  7 11:29:40 2009           
     Raid Level : raid5                             
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
     Array Size : 4883799680 (4657.55 GiB 5001.01 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0

    Update Time : Mon Aug 17 08:15:41 2009
          State : clean
 Active Devices : 6
Working Devices : 6
 Failed Devices : 0
  Spare Devices : 0
       Checksum : f4088dcf - correct
         Events : 650334

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     1       8       81        1      active sync   /dev/sdf1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8       49        3      active sync   /dev/sdd1
   4     4       8       17        4      active sync   /dev/sdb1
   5     5       8        1        5      active sync   /dev/sda1

# mdadm -E /dev/sdg1                                       
/dev/sdg1:                                                                     
          Magic : a92b4efc                                                     
        Version : 00.90.00                                                     
           UUID : 7395e18d:4088dc27:bd9f1658:0a1d2015                         
  Creation Time : Sun Jun  7 11:29:40 2009                                     
     Raid Level : raid5                                                       
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
     Array Size : 4883799680 (4657.55 GiB 5001.01 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0

    Update Time : Mon Aug 17 08:15:41 2009
          State : clean
 Active Devices : 6
Working Devices : 6
 Failed Devices : 0
  Spare Devices : 0
       Checksum : f4088de1 - correct
         Events : 650334

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     2       8       97        2      active sync   /dev/sdg1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8       49        3      active sync   /dev/sdd1
   4     4       8       17        4      active sync   /dev/sdb1
   5     5       8        1        5      active sync   /dev/sda1
« Last Edit: August 25, 2009, 06:58:27 pm by anupindi007 »