From: whollygoat@letterboxes.org
To: debian-user@lists.debian.org
Cc: linux-raid@vger.kernel.org
Subject: Re: Alex Samad Re: RAID5 (mdadm) array hosed after grow operation
Date: Thu, 08 Jan 2009 18:41:26 -0800 [thread overview]
Message-ID: <1231468886.24549.1293797183@webmail.messagingengine.com> (raw)
In-Reply-To: <20090108101218.GI25654@samad.com.au>
On Thu, 8 Jan 2009 21:12:18 +1100, "Alex Samad" <alex@samad.com.au>
said:
> On Wed, Jan 07, 2009 at 08:19:05PM -0800, whollygoat@letterboxes.org
> wrote:
> >
> > On Tue, 6 Jan 2009 09:17:46 +1100, "Neil Brown" <neilb@suse.de> said:
>
> [snip]
>
> > How should I have done the grow operation if not as above? The only
> > thing I see in man mdadm is the "-S" switch which seems to disassemble
> > the array. Maybe this is because I've only tried it on the degraded
> > array this problem has left with. At any rate, after
> >
> > mdadm -S /dev/md/0
> >
>
> [snip]
>
> >
> > Hope you can help,
>
> Hi
>
> I have grown raid5 arrays either by disk number or disk size, I have
> only ever used --grow and never used the -z option
>
> I would re copy the info over from the small drives to the large drives
> (if you can have all the drives in at one time that might be better.
>
> increase the partition size and then run --grow on the array. I have
> done this going from 250G -> 500G -> 750g -> 1T. although when I have
> done it, I fail one drive and then add the new drive, expand the
> partition size and re add it back into the array, once I have done all
> the drives I then ran the grow.
>
I'm not sure I uderstand what you mean. When you copy the info over and
then increase the partition size, are you doing something like dd
if=smalldrive
of=bigdrive, then using a tool like parted to resize the partition?
I put the large drives in (as hot spares) with a single raid partition
(type fd) that uses the entire disk, so I can't increase their size any.
Then when I failed the drive the data it contained was rebuilt to the
larger
hot spare.
But anyway, I don't think that is going to matter. The issue I am
trying to
solve is how to de-activate the bitmap. It was suggested on the
linux-raid
list that my problem may have been caused by running the grow op on an
active
bitmap and I can't see from "man mdadm" how to de-activate the bit map.
The only thing I see about deactivation is --stop and that disassembles
the
array, in which case I can't run the grow command. I read how to remove
the bitmap, but then I guess I would have to readd it after the grow op.
In
any case, I would like to get the figured out without too much
experimentation
because swapping drives in and out and rebuilding is pretty time
consuming so I
would really like to avoid fudging this up again.
Thanks for you help
goat
--
whollygoat@letterboxes.org
--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are
next prev parent reply other threads:[~2009-01-09 2:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1231144738.2997.1293010001@webmail.messagingengine.com>
2009-01-05 14:13 ` RAID5 (mdadm) array hosed after grow operation Justin Piszcz
2009-01-05 22:17 ` Neil Brown
2009-01-06 8:45 ` whollygoat
2009-01-08 4:19 ` whollygoat
[not found] ` <20090108101218.GI25654@samad.com.au>
2009-01-09 2:41 ` whollygoat [this message]
2009-01-09 10:45 ` Alex Samad " John Robinson
2009-01-13 3:46 ` whollygoat
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=1231468886.24549.1293797183@webmail.messagingengine.com \
--to=whollygoat@letterboxes.org \
--cc=debian-user@lists.debian.org \
--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).