All of lore.kernel.org
 help / color / mirror / Atom feed
* Kicking the right drive out
@ 2007-10-13 18:00 Alberto Alonso
  2007-10-14  8:49 ` Nagilum
  0 siblings, 1 reply; 2+ messages in thread
From: Alberto Alonso @ 2007-10-13 18:00 UTC (permalink / raw)
  To: linux-raid

I have a need to kick a disk out of a RAID 5 array.

I can do a fdisk on 2 out of the 3 devices that form part
of the array, so I suspect I know which one is bad.

The problem is that mdstat shows the array as follows:

md3 : active raid5 sda6[0] sdc6[2] sdb6[1]
      960863488 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
      [>....................]  resync =  0.7% (3444348/480431744)
finish=582280.4min speed=1K/sec


Doesn't this mean that all three disks are active and in use?

mdadm -D /dev/md3 shows:

    Number   Major   Minor   RaidDevice State
       0       8        6        0      active sync   /dev/sda6
       1       8       22        1      active sync   /dev/sdb6
       2       8       38        2      active sync   /dev/sdc6

So, my question is as follows: can I remove sdc6 and be sure the
array will not stop?

To make things worse, I see no disk failures in any log file. So
I am not sure how sdc is actually failing.

Thanks,

Alberto



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

* Re: Kicking the right drive out
  2007-10-13 18:00 Kicking the right drive out Alberto Alonso
@ 2007-10-14  8:49 ` Nagilum
  0 siblings, 0 replies; 2+ messages in thread
From: Nagilum @ 2007-10-14  8:49 UTC (permalink / raw)
  To: Alberto Alonso; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 2756 bytes --]

Have a look at
  mdadm -Q --detail /dev/md0
But I'd suspect the problematic disk is causing that slow resync.
I would add a new disk and then declare the one you suspect as bad.
If the other two are are ok it should resync to the new one and you're fine.
Otherwise you can re-add the declared failed disk and try again with  
another one.
I would use dd to verify which disk is giving trouble (e.g. "dd  
if=/dev/sda of=/dev/null" , use "iostat -d5 -k" to watch the read  
speed).
I hope this helps..
Alex.

----- Message from alberto@ggsys.net ---------
     Date: Sat, 13 Oct 2007 13:00:16 -0500
     From: Alberto Alonso <alberto@ggsys.net>
Reply-To: Alberto Alonso <alberto@ggsys.net>
  Subject: Kicking the right drive out
       To: linux-raid@vger.kernel.org


> I have a need to kick a disk out of a RAID 5 array.
>
> I can do a fdisk on 2 out of the 3 devices that form part
> of the array, so I suspect I know which one is bad.
>
> The problem is that mdstat shows the array as follows:
>
> md3 : active raid5 sda6[0] sdc6[2] sdb6[1]
>       960863488 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
>       [>....................]  resync =  0.7% (3444348/480431744)
> finish=582280.4min speed=1K/sec
>
>
> Doesn't this mean that all three disks are active and in use?
>
> mdadm -D /dev/md3 shows:
>
>     Number   Major   Minor   RaidDevice State
>        0       8        6        0      active sync   /dev/sda6
>        1       8       22        1      active sync   /dev/sdb6
>        2       8       38        2      active sync   /dev/sdc6
>
> So, my question is as follows: can I remove sdc6 and be sure the
> array will not stop?
>
> To make things worse, I see no disk failures in any log file. So
> I am not sure how sdc is actually failing.
>
> Thanks,
>
> Alberto
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


----- End message from alberto@ggsys.net -----



========================================================================
#    _  __          _ __     http://www.nagilum.org/ \n icq://69646724 #
#   / |/ /__ ____ _(_) /_ ____ _  nagilum@nagilum.org \n +491776461165 #
#  /    / _ `/ _ `/ / / // /  ' \  Amiga (68k/PPC): AOS/NetBSD/Linux   #
# /_/|_/\_,_/\_, /_/_/\_,_/_/_/_/   Mac (PPC): MacOS-X / NetBSD /Linux #
#           /___/     x86: FreeBSD/Linux/Solaris/Win2k  ARM9: EPOC EV6 #
========================================================================


----------------------------------------------------------------
cakebox.homeunix.net - all the machine one needs..


[-- Attachment #2: PGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

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

end of thread, other threads:[~2007-10-14  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-13 18:00 Kicking the right drive out Alberto Alonso
2007-10-14  8:49 ` Nagilum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.