* Convert RAID 5 to RAID 6 while reducing array size
@ 2011-05-07 19:25 Anshuman Aggarwal
2011-05-07 19:50 ` Anshuman Aggarwal
0 siblings, 1 reply; 3+ messages in thread
From: Anshuman Aggarwal @ 2011-05-07 19:25 UTC (permalink / raw)
To: linux-raid
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)?
Thanks,
Anshu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Convert RAID 5 to RAID 6 while reducing array size
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
0 siblings, 1 reply; 3+ messages in thread
From: Anshuman Aggarwal @ 2011-05-07 19:50 UTC (permalink / raw)
To: linux-raid
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)?
Thanks,
Anshu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Convert RAID 5 to RAID 6 while reducing array size
2011-05-07 19:50 ` Anshuman Aggarwal
@ 2011-05-11 15:49 ` John Robinson
0 siblings, 0 replies; 3+ messages in thread
From: John Robinson @ 2011-05-11 15:49 UTC (permalink / raw)
To: Anshuman Aggarwal; +Cc: linux-raid
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-11 15:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).