From: NeilBrown <neilb@suse.de>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Failed Array Rebuild advice Please
Date: Thu, 12 Apr 2012 12:25:55 +1000 [thread overview]
Message-ID: <20120412122555.598c0e12@notabene.brown> (raw)
In-Reply-To: <1334196647.20850.YahooMailNeo@web125501.mail.ne1.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 3315 bytes --]
On Wed, 11 Apr 2012 19:10:47 -0700 (PDT) jahammonds prost
<gmitch64@yahoo.com> wrote:
> > I think it is best to recover, and then reshape later.
>
> Which is what I did. The destructive badblocks ran fine overnight, with no errors on the drives that were failed out of the array. Interestingly one of the additional drives that I want to add took an additional 6 hours to run badblocks, so I need to look into that a bit.
>
> I am having a bit of an issue with the reshape tho... When I try and add one of the 2 additional devices I want to add (I'm going to add them one at a time), I get an error about the bitmap needing to be removed.
>
> mdadm --grow /dev/md0 --raid-devices=16
> mdadm: Need to backup 93184K of critical section..
> mdadm: Cannot set device shape for /dev/md0: Device or resource busy
> Bitmap must be removed before shape can be changed
>
> Now, the docs (and indeed several websites when I googled) suggest that you can have a bitmap present on a grow, and the help suggests that you can even change it during a grow..
>
>
> If the word internal is given, then the bitmap is stored with the metadata on the array, and so is replicated on all devices. If the word none is given with --grow mode, then any bitmap that is present is removed.
>
>
> Is there an issue with the array, or just in my understanding and google foo?
You cannot reshape an array while it has a bitmap attached.
This restriction will probably be removed in Linux 3.5
NeilBrown
>
> I am running on Centos 6 (2.6.32-220.7.1.el6.x86_64) with madam (mdadm - v3.2.2 - 17th June 2011)
>
>
> Thanks again.
>
>
>
>
> ----- Original Message -----
> From: NeilBrown <neilb@suse.de>
> To: jahammonds prost <gmitch64@yahoo.com>
> Cc: Linux RAID <linux-raid@vger.kernel.org>
> Sent: Wednesday, 11 April 2012, 0:43
> Subject: Re: Failed Array Rebuild advice Please
>
> On Tue, 10 Apr 2012 21:14:07 -0700 (PDT) jahammonds prost
> <gmitch64@yahoo.com> wrote:
>
> > One other question as the badblocks progresses.
> >
> > > It will then recovery both devices in parallel.
> >
> > How many additional devices can be done at the same time? I presume that I am going to have to replace the 2 failed devices before I try and grow the array by adding 3 additional drives? I so, how many additional drives can be rebuilt concurrently with a grow? Could I add 5 devices and not see too much of a performance hit? Or would it be more sensible to add them one at a time?
> >
>
> I think it is best to recover, and then reshape later. I cannot promise that
> doing them both at once will work .... it might but I have a feeling that
> there might be problems.
>
> Adding three additional drives at once should work well enough in terms of
> performance.
> However I would only do it if I were very very confident of the drives.
> If you hit bad blocks you start losing drives, and if you have 3 drives that
> you haven't used before, the chance of losing them all during the reshape -
> while still small - becomes a little too high for comfort.
>
> But if you have run heavy bad-blocks tests on them all and they appear to
> work, then adding 3 drives at once should be fine.
>
> NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2012-04-12 2:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 22:32 Failed Array Rebuild advice Please jahammonds prost
2012-04-10 23:02 ` NeilBrown
2012-04-10 23:46 ` jahammonds prost
2012-04-11 4:14 ` jahammonds prost
2012-04-11 4:43 ` NeilBrown
2012-04-12 2:10 ` jahammonds prost
2012-04-12 2:25 ` NeilBrown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120412122555.598c0e12@notabene.brown \
--to=neilb@suse.de \
--cc=gmitch64@yahoo.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).