linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Issue removing failed drive and re adding on raid 6
@ 2015-07-03 15:44 Justin Stephenson
  2015-07-03 20:47 ` Mikael Abrahamsson
  0 siblings, 1 reply; 15+ messages in thread
From: Justin Stephenson @ 2015-07-03 15:44 UTC (permalink / raw)
  To: linux-raid

Hello,

I am running a 7 disk raid 6 array. A disk failed last night during a 
regularly scheduled resync. I tried using mdadm --fail and --remove but 
mdadm froze.

When I rebooted mdadm reports the device as removed.

I replaced the drive, reformatted and repartitioned.

When I try to add the drive back in, mdadm reports that it is an invalid 
argument to re add.

Below is the mdadm --detail and my attempt to remove and add the drive 
/dev/sdf1

It would appear that I did not manage to properly fail and remove the 
drive. Is there a way of doing this after the fact so that I can add the 
new drive?

I would appreciate any input you would have.

Thanks,

- Justin


[root@BigBlue ~]# mdadm --detail /dev/md0
/dev/md0:
         Version : 1.2
   Creation Time : Wed Jan 15 22:46:32 2014
      Raid Level : raid6
   Used Dev Size : -1
    Raid Devices : 7
   Total Devices : 6
     Persistence : Superblock is persistent

     Update Time : Fri Jul  3 09:22:41 2015
           State : active, degraded, Not Started
  Active Devices : 6
Working Devices : 6
  Failed Devices : 0
   Spare Devices : 0

          Layout : left-symmetric
      Chunk Size : 128K

            Name : BigBlue:0  (local to host BigBlue)
            UUID : 0849c677:64e4772e:8892d80b:47e0097a
          Events : 15135

     Number   Major   Minor   RaidDevice State
        0       8       33        0      active sync   /dev/sdc1
        1       8       49        1      active sync   /dev/sdd1
        2       8       65        2      active sync   /dev/sde1
        3       0        0        3      removed
        4       8       97        4      active sync   /dev/sdg1
        7       8      113        5      active sync   /dev/sdh1
        6       8       17        6      active sync   /dev/sdb1
[root@BigBlue ~]# mdadm --manage /dev/md0 --remove /dev/sdf1
mdadm: hot remove failed for /dev/sdf1: No such device or address
[root@BigBlue ~]# mdadm --manage /dev/md0 --add /dev/sdf1
mdadm: add new device failed for /dev/sdf1 as 8: Invalid argument


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-07-06  0:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-03 15:44 Issue removing failed drive and re adding on raid 6 Justin Stephenson
2015-07-03 20:47 ` Mikael Abrahamsson
2015-07-03 22:20   ` Re[2]: " Justin Stephenson
2015-07-04  5:11     ` Mikael Abrahamsson
2015-07-04  6:10       ` Re[3]: " Justin Stephenson
2015-07-04  6:58         ` Mikael Abrahamsson
2015-07-04  7:12           ` Re[4]: " Justin Stephenson
2015-07-04  7:25             ` Mikael Abrahamsson
2015-07-04  7:58         ` Wols Lists
2015-07-04  8:10           ` Mikael Abrahamsson
2015-07-04  9:23             ` Wols Lists
2015-07-05 10:27             ` Roman Mamedov
2015-07-06  0:15             ` Re[2]: " Justin Stephenson
2015-07-04 16:38           ` Justin Stephenson
2015-07-05 22:58             ` Thomas Fjellstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).