From: John Robinson <john.robinson@anonymous.org.uk>
To: Anshuman Aggarwal <anshuman@brillgene.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Convert RAID 5 to RAID 6 while reducing array size
Date: Wed, 11 May 2011 16:49:45 +0100 [thread overview]
Message-ID: <4DCAB019.3070508@anonymous.org.uk> (raw)
In-Reply-To: <5D271CD8-AE79-441F-A6FA-AF0E5D481E4D@brillgene.com>
On 07/05/2011 20:50, Anshuman Aggarwal wrote:
> Hi,
> I'm trying to convert a 6 device raid5 into a raid6. The 6th device was added into the Raid 5 by mistake instead of a grow operation to convert it into a RAID 6. As such the md device is not being used beyond the size that it had when it was a 5 device raid5.
>
> Can this be done in a single grow step by specifying the reduced size (--array-size=xx) and new layout (l=6)?
Yes it can, with mdadm 3.1.x and a suitably recent kernel. You will need
a backup file on another drive, the same as you did to reshape your
RAID5 from 5 to 6 devices. If you have grown your filesystem, you will
need to shrink it again BEFORE attempting the reshape.
Cheers,
John.
prev parent reply other threads:[~2011-05-11 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-07 19:25 Convert RAID 5 to RAID 6 while reducing array size Anshuman Aggarwal
2011-05-07 19:50 ` Anshuman Aggarwal
2011-05-11 15:49 ` John Robinson [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=4DCAB019.3070508@anonymous.org.uk \
--to=john.robinson@anonymous.org.uk \
--cc=anshuman@brillgene.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).