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:
parent
e2f29c4989
commit
c7c51329f4
@ -46,6 +46,20 @@ pvmove $mode -n $lv1 "$dev5" "$dev4"
|
|||||||
check lv_tree_on $vg $lv1 "$dev2" "$dev4"
|
check lv_tree_on $vg $lv1 "$dev2" "$dev4"
|
||||||
check lv_tree_on $vg ${lv1}_foo "$dev5"
|
check lv_tree_on $vg ${lv1}_foo "$dev5"
|
||||||
check dev_md5sum $vg $lv1
|
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
|
lvremove -ff $vg
|
||||||
|
|
||||||
# Testing pvmove of RAID10 LV
|
# Testing pvmove of RAID10 LV
|
||||||
|
Loading…
Reference in New Issue
Block a user