Re: Convert RAID 5 to RAID 6 while reducing array size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux