1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: check pvmove with raid legs

Check pvmove correctly handles raid legs on input
(testing previous pvmove fix).
This commit is contained in:
Zdenek Kabelac 2023-09-19 14:38:39 +02:00
parent e2f29c4989
commit c7c51329f4

View File

@ -46,6 +46,20 @@ pvmove $mode -n $lv1 "$dev5" "$dev4"
check lv_tree_on $vg $lv1 "$dev2" "$dev4"
check lv_tree_on $vg ${lv1}_foo "$dev5"
check dev_md5sum $vg $lv1
# Check moving raid component LVs
pvmove $mode -n ${lv1}_rimage_0 "$dev4" "$dev1"
check lv_tree_on $vg $lv1 "$dev1" "$dev2"
check lv_on $vg ${lv1}_rimage_0 "$dev1"
check lv_on $vg ${lv1}_rmeta_0 "$dev4"
check dev_md5sum $vg $lv1
lvs -ao+devices $vg
pvmove $mode -n ${lv1}_rmeta_0 "$dev4" "$dev1"
check lv_tree_on $vg $lv1 "$dev1" "$dev2"
check lv_on $vg ${lv1}_rimage_0 "$dev1"
check lv_on $vg ${lv1}_rmeta_0 "$dev1"
check dev_md5sum $vg $lv1
lvremove -ff $vg
# Testing pvmove of RAID10 LV