Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have software raid6 array, which failed today. I've removed failed disk. Here is status:

/dev/md0:
        Version : 1.2
  Creation Time : Sun Nov  4 04:26:03 2012
     Raid Level : raid6
     Array Size : 14650675200 (13971.97 GiB 15002.29 GB)
  Used Dev Size : 2930135040 (2794.39 GiB 3000.46 GB)
   Raid Devices : 7
  Total Devices : 6
    Persistence : Superblock is persistent

    Update Time : Fri Oct 25 17:26:52 2013
          State : clean, degraded 
 Active Devices : 6
Working Devices : 6
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 512K

           Name : dcserver:0  (local to host dcserver)
           UUID : b46c648a:92eb66a1:4c19a477:1ccf0756
         Events : 245423

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       80        1      active sync   /dev/sdf
       2       8       48        2      active sync   /dev/sdd
       3       0        0        3      removed
       4       8       16        4      active sync   /dev/sdb
       7       8       96        5      active sync   /dev/sdg
       6       8       32        6      active sync   /dev/sdc

I've inserted new disk with same size and I'm trying to add it:

mdadm /dev/md0 --add /dev/sdi

It's adding as new spare drive, but it does not starting any recovery!

/dev/md0:
        Version : 1.2
  Creation Time : Sun Nov  4 04:26:03 2012
     Raid Level : raid6
     Array Size : 14650675200 (13971.97 GiB 15002.29 GB)
  Used Dev Size : 2930135040 (2794.39 GiB 3000.46 GB)
   Raid Devices : 7
  Total Devices : 7
    Persistence : Superblock is persistent

    Update Time : Fri Oct 25 17:28:45 2013
          State : clean, degraded 
 Active Devices : 6
Working Devices : 7
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 512K

           Name : dcserver:0  (local to host dcserver)
           UUID : b46c648a:92eb66a1:4c19a477:1ccf0756
         Events : 245454

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       80        1      active sync   /dev/sdf
       2       8       48        2      active sync   /dev/sdd
       3       0        0        3      removed
       4       8       16        4      active sync   /dev/sdb
       7       8       96        5      active sync   /dev/sdg
       6       8       32        6      active sync   /dev/sdc

       8       8      128        -      spare   /dev/sdi

Why? It's unusual behaviour. I've made this procedure many times and usually new disk replaces removed one.

share|improve this question
    
Well, problem WAS fixed with server restart. But question is still active: what was this? What was happened with mdadm, if it can mark device as "spare" while he definetely needs a new device to rebuild? –  Arenim Oct 25 '13 at 13:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.