1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: update lvconvert-raid.sh

Handle case of removal of orig leg while it's being synchronized.
This commit is contained in:
Zdenek Kabelac 2024-03-24 23:06:34 +01:00
parent 658c446f13
commit 781bf867cc

View File

@ -252,13 +252,14 @@ echo "Skippen test that kills this kernel"
*) *)
lvconvert --yes -m 1 $vg/$lv1 "$dev3" lvconvert --yes -m 1 $vg/$lv1 "$dev3"
# FIXME: it is unclear what should happen - older kernel # Cannot remove origin 1st. leg while synchronizing
# do use 'resync' for initial array building so then not lvconvert --yes -m 0 $vg/$lv1 "$dev1"
# we are not able to recognize difference
# Should we check version target as react differentely ??
# Otherwise we have problem with the above test case.
should lvconvert --yes -m 0 $vg/$lv1 "$dev1"
aux enable_dev "$dev2" aux enable_dev "$dev2"
aux wait_for_sync $vg $lv1
# When raid1 is synchronized, 1st. leg can be removed
lvconvert --yes -m 0 $vg/$lv1 "$dev1"
;; ;;
esac esac
lvremove -ff $vg lvremove -ff $vg