1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00

tests: test also different lock holder

This commit is contained in:
Zdenek Kabelac 2017-06-20 18:22:17 +02:00
parent 3d591ac376
commit 710f51e7f2

View File

@ -35,7 +35,27 @@ done
lvremove -f $vg
lvcreate -L4 -T $vg/pool -V10
lvcreate -L4 -T $vg/pool -V10 -n $lv1
for j in data meta ; do
LV=pool_t${j}
for i in 1 2 ; do
lvconvert --type raid1 -m1 -y $vg/$LV
check grep_dmsetup table $vg-${LV} "raid1"
aux wait_for_sync $vg $LV
lvconvert --type raid1 -m0 -y $vg/$LV
check grep_dmsetup table ${vg}-${LV} "linear"
done
done
#
# Now same test again, when lock holding LV is not a thin-poll
# but thinLV $lv1
#
lvchange -an $vg
lvchange -ay $vg/$lv1
for j in data meta ; do
LV=pool_t${j}