mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
lvconvert: avoid error message on raid1 -> raid4 conversion
Avoid error message "Logical Volume *_rimage_0 already exists in volume group,,," on takeover conversion from a 2-legged raid1 to raid4 (aiming to reshape it adding images). Resolves: rhbz1439398
This commit is contained in:
parent
0f65d7ec3a
commit
3b1a96b9b3
@ -5099,7 +5099,6 @@ static int _takeover_upconvert_wrapper(TAKEOVER_FN_ARGS)
|
|||||||
!_clear_meta_lvs(lv))
|
!_clear_meta_lvs(lv))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
|
||||||
extents_copied = seg->extents_copied;
|
extents_copied = seg->extents_copied;
|
||||||
seg_len = seg->len;
|
seg_len = seg->len;
|
||||||
stripe_size = seg->stripe_size;
|
stripe_size = seg->stripe_size;
|
||||||
@ -5166,7 +5165,8 @@ static int _takeover_upconvert_wrapper(TAKEOVER_FN_ARGS)
|
|||||||
_pre_raid_add_legs, NULL))
|
_pre_raid_add_legs, NULL))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (segtype_is_raid4(new_segtype)) {
|
if (segtype_is_raid4(new_segtype) &&
|
||||||
|
seg->area_count != 2) {
|
||||||
/* We had to rename SubLVs because of collision free shifting, rename back... */
|
/* We had to rename SubLVs because of collision free shifting, rename back... */
|
||||||
if (!_rename_area_lvs(lv, NULL))
|
if (!_rename_area_lvs(lv, NULL))
|
||||||
return_0;
|
return_0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user