Re: Raid 5 to 6 migration

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

 



Hi Dominique,

[Top-posting repaired.  Please don't]

On 02/01/2013 01:19 PM, Dominique C. wrote:
[trim /]

>>> I was wondering what would be the best way to convert a 6 hdd raid 5 to
>>> raid 6. Ideally without having to reformat everything and lose all the
>>> data in the process. I have backups of the data but I don't look forward
>>> reinstalling everything on that server.
>>
>> 1) Add a seventh drive to the system.
>>
>> You can do this on the run if you have hotplug-capable sata ports or sas
>> ports.
>>
>> 2) Add that drive to the array w/ "mdadm --add"
>> 3) Convert array to raid6 w/ "mdadm --grow --level=raid6"
>>
>> You can do 2 & 3 on the run.
>>
>> 4) Monitor /proc/mdstat to see when it finishes.

> Hi Phil,
>
> Thanks for your answer, however I forgot to mention one thing: I used
6 hdd out of 6 possible. No possibility to expand at this stage....
> The data only uses part of the space available.
> Any other ideas ?

Shrinking is usually possible, but there are many more steps, depending
on what is in the array.

Please provide more detail.  The output of "lsdrv"[1] might be a good start.

Phil

[1] http://github.com/pturmel/lsdrv

--
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