From db96e81f76f788dc46e991c7897a3dd3470bb0ff Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 26 Apr 2024 12:43:03 +0200 Subject: [PATCH] tests: wait for raid being in sync --- test/shell/lvconvert-raid-allocation.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/shell/lvconvert-raid-allocation.sh b/test/shell/lvconvert-raid-allocation.sh index 5420d584d..c33cfd675 100644 --- a/test/shell/lvconvert-raid-allocation.sh +++ b/test/shell/lvconvert-raid-allocation.sh @@ -28,6 +28,7 @@ lvcreate -aey -l 4 -n $lv1 $vg "$dev1:0-1" "$dev2:0-1" not lvconvert -y --type raid1 -m 1 $vg/$lv1 "$dev1" "$dev2" not lvconvert -y --type raid1 -m 1 $vg/$lv1 "$dev1" "$dev3:0-2" lvconvert -y --type raid1 -m 1 $vg/$lv1 "$dev3" +aux wait_for_sync $vg $lv1 not lvconvert -m 0 $vg/$lv1 lvconvert -y -m 0 $vg/$lv1 # RAID conversions are not honoring allocation policy!