From c7c51329f445fcb5d9787fcf42aefdb9244c61ef Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 19 Sep 2023 14:38:39 +0200 Subject: [PATCH] tests: check pvmove with raid legs Check pvmove correctly handles raid legs on input (testing previous pvmove fix). --- test/shell/pvmove-raid-segtypes.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/shell/pvmove-raid-segtypes.sh b/test/shell/pvmove-raid-segtypes.sh index 6584b7492..5e1fd23b4 100644 --- a/test/shell/pvmove-raid-segtypes.sh +++ b/test/shell/pvmove-raid-segtypes.sh @@ -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