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

tests: wait for raid being in sync

This commit is contained in:
Zdenek Kabelac 2024-04-26 12:43:03 +02:00
parent d0cfe73326
commit db96e81f76

View File

@ -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" "$dev2"
not lvconvert -y --type raid1 -m 1 $vg/$lv1 "$dev1" "$dev3:0-2" not lvconvert -y --type raid1 -m 1 $vg/$lv1 "$dev1" "$dev3:0-2"
lvconvert -y --type raid1 -m 1 $vg/$lv1 "$dev3" lvconvert -y --type raid1 -m 1 $vg/$lv1 "$dev3"
aux wait_for_sync $vg $lv1
not lvconvert -m 0 $vg/$lv1 not lvconvert -m 0 $vg/$lv1
lvconvert -y -m 0 $vg/$lv1 lvconvert -y -m 0 $vg/$lv1
# RAID conversions are not honoring allocation policy! # RAID conversions are not honoring allocation policy!