Re: mdadm won't remove drive from array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 24 Feb 2014 11:51:00 +0100 Caspar Smit <c.smit@xxxxxxxxxx> wrote:

> Hi all,
> 
> I'm having trouble removing a failed drive from an array.
> 
> #cat /proc/mdstat
> 
> md5 : active raid6 sdn[14](S) sdm[13](S) sdad[12] sdl[11] sdba[10]
> sde[0](F) sdd[9] sdc[8] sdk[7] sdj[6] sdi[5] sdh[3] sdg[2]
>       15628103680 blocks super 1.2 level 6, 512k chunk, algorithm 2
> [10/10] [UUUUUUUUUU]
> 
> The drive in question is sde
> 
> #mdadm --remove /dev/md5 /dev/sde
> mdadm: cannot find /dev/sde: No such file or directory
> 
> The drive crashed so hard it is not visible to the kernel anymore.
> 
> # cat /proc/partitions |grep sde
> <no output>
> 
> Normally in such case i do:
> 
> #mdadm --remove /dev/md5 detached
> <no output>
>
> The drive remains in the array.

Odd.  This suggests that /dev/sde has been removed (presumably by udev) but
that if you create a device with the appropriate major/minor numbers, the
device can be opened.  Maybe udev got confused....

> 
> Is there any other way to remove this detached drive from the array
> without having to stop/start the array or is this a (known) bug?

Try
   mdadm /dev/md5 --remove faulty

that will remove all devices marked as 'faulty'.
You could all use

   mdadm -If sde

NeilBrown


> 
> # mdadm -V
> mdadm - v3.1.4 - 31st August 2010
> 
> # uname -a
> Linux supernas01 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.39-2~bpo60+1
> x86_64 GNU/Linux
> 
> Kind regards,
> Caspar Smit
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux