From: Luca Berra <bluca@comedia.it>
To: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Growing after replacing with larger discs
Date: Fri, 12 Mar 2010 19:09:10 +0100 [thread overview]
Message-ID: <20100312180910.GA12002@maude.comedia.it> (raw)
In-Reply-To: <4B9A7C63.6090202@anonymous.org.uk>
On Fri, Mar 12, 2010 at 05:39:47PM +0000, John Robinson wrote:
> Before I have to go to a customer's premises and try it, I wanted to ask if
> anyone had already done anything like this: I have a CentOS 5 system with
> 0.90 metadata and type fd partitions with RAID-5 over 3 discs. I want to
> grow it by replacing the drives. If I dd the small partitions onto larger
> ones on the new discs, then reboot, will the system recognise the RAID-5 -
> which now has its metadata somewhere in the middle of the paritions not at
> the end - so that I can then --grow?
I believe it won't work
mdadm has no way to know where the metadata is in the above case.
you have to follow the painful procedure
fail one drive (mdadm /dev/mdX --fail /dev/sdY)
remove it (mdadm /dev/mdX --remove /dev/sdY)
replace drive with larger one
create larger partition
add drive again (mdadm /dev/mdX --add /dev/sdY)
wait for it to resync...
...and repeat until all drives have been replaced
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
next prev parent reply other threads:[~2010-03-12 18:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 17:39 Growing after replacing with larger discs John Robinson
2010-03-12 18:00 ` Majed B.
2010-03-12 18:04 ` John Robinson
2010-03-12 18:13 ` Majed B.
2010-03-12 18:09 ` Luca Berra [this message]
2010-03-13 15:18 ` John Robinson
2010-03-13 15:21 ` Majed B.
2010-03-13 18:13 ` John Robinson
2010-03-13 18:22 ` Majed B.
2010-03-15 15:17 ` Stefan /*St0fF*/ Hübner
[not found] ` <aebf5d971003131242q234a6c5ct441dd995a9c6a541@mail.gmail.com>
2010-03-13 20:45 ` Beolach
2010-03-13 21:00 ` Majed B.
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=20100312180910.GA12002@maude.comedia.it \
--to=bluca@comedia.it \
--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 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.