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

tests: add FIXME to raid test

We have here some kind of catch-22 - since older kernels do
use 'resync' while new 'recover' for initial raid synchronization.

So now - how do we recognize in which state of raid we are.
ATM seems to be simplest to simply keep disabled droping of primary raid
leg unless we are in sync.

FIXME: we should add a target version check and enable removal
This commit is contained in:
Zdenek Kabelac 2021-03-20 10:39:02 +01:00
parent 05920e3818
commit 179f59a0ca

View File

@ -250,7 +250,13 @@ echo "Skippen test that kills this kernel"
;; ;;
*) *)
lvconvert --yes -m 1 $vg/$lv1 "$dev3" lvconvert --yes -m 1 $vg/$lv1 "$dev3"
lvconvert --yes -m 0 $vg/$lv1 "$dev1"
# FIXME: it is unclear what should happen - older kernel
# do use 'resync' for initial array building so then
# 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"
;; ;;
esac esac