mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
In addition to the already supported conversion between 2-legged raid1 and raid5, raid1 and raid4 can be also converted into each other with 2 legs (raid4/5 are limited to map a 2-legged raid1). This patch supports the missing raid4 conversion in the sequence linear -> 2-legged raid1 -> raid4/5, then restripe to more than one data stripes for performance and resilience reasons and optionally convert to striped/raid0. The other conversion sequence is also possible by converting N-way striped/raid0 to raid4/5, then restripe to 2 legs followed by a conversion to raid1 and optionally to linear (loosing all resilience).