Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a raid5 that consists of 8 disks. After a power outage mdadm tells me that the raid is degraded. Here is the output:

/dev/md0:
        Version : 0.90
  Creation Time : Sat Jul 10 09:08:28 2010
     Raid Level : raid5
     Array Size : 13674601472 (13041.12 GiB 14002.79 GB)
  Used Dev Size : 1953514496 (1863.02 GiB 2000.40 GB)
   Raid Devices : 8
  Total Devices : 7
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Aug  2 18:42:05 2012
          State : clean, degraded
 Active Devices : 7
Working Devices : 7
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 09dd4536:a6153f6b:f1f4aaa9:53aab85a
         Events : 0.9189750

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

So /dev/sdf is missing. So I tried to get some infos about this drive. smartctl does not report any issues and fdisk -l lists it as expected. Lastly I tried mdadm -E /dev/sdf and I get this output:

/dev/sdf:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 09dd4536:a6153f6b:f1f4aaa9:53aab85a
  Creation Time : Sat Jul 10 09:08:28 2010
     Raid Level : raid5
  Used Dev Size : 1953514496 (1863.02 GiB 2000.40 GB)
     Array Size : 13674601472 (13041.12 GiB 14002.79 GB)
   Raid Devices : 8
  Total Devices : 8
Preferred Minor : 0

    Update Time : Wed Mar 28 17:19:58 2012
          State : clean
 Active Devices : 8
Working Devices : 8
 Failed Devices : 0
  Spare Devices : 0
       Checksum : afeeecc7 - correct
         Events : 9081618

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     7       8      112        7      active sync   /dev/sdh

   0     0       8        0        0      active sync   /dev/sda
   1     1       8       16        1      active sync   /dev/sdb
   2     2       8       32        2      active sync   /dev/sdc
   3     3       8       48        3      active sync   /dev/sdd
   4     4       8       64        4      active sync   /dev/sde
   5     5       8       80        5      active sync   /dev/sdf
   6     6       8       96        6      active sync   /dev/sdg
   7     7       8      112        7      active sync   /dev/sdh

What is the issue here? Should I replace sdf or is this repairable?

Update

I also had look at dmesg and I get this:

[    9.289086] md: kicking non-fresh sdf from array!
[    9.289090] md: unbind<sdf>
[    9.296541] md: export_rdev(sdf)
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Well, I was to quick to post this question. It turns out this can happen when a power outage occurs.

I simply re-added the drive (mdadm /dev/md0 --add /dev/sdf) and mdadm started to rebuild the array.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.