mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: check failing vdo conversion
When we detect not usable vdo on a machine, check lvconvert fails.
This commit is contained in:
parent
d58b475f63
commit
06c5c29443
@ -18,12 +18,18 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
#
|
#
|
||||||
# Main
|
# Main
|
||||||
#
|
#
|
||||||
aux have_vdo 6 2 0 || skip
|
|
||||||
|
|
||||||
aux prepare_vg 2 6400
|
aux prepare_vg 2 6400
|
||||||
|
|
||||||
# Conversion to vdo-pool
|
# Conversion to vdo-pool
|
||||||
lvcreate -L5G -n $lv1 $vg
|
lvcreate -L5G -n $lv1 $vg
|
||||||
|
|
||||||
|
if not aux have_vdo 6 2 0 ; then
|
||||||
|
# For unsupported VDO let's check lvconvert fails
|
||||||
|
not lvconvert --yes --type vdo-pool $vg/$lv1 |& tee out
|
||||||
|
vgremove -ff $vg
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# Check there is big prompting warning
|
# Check there is big prompting warning
|
||||||
not lvconvert --type vdo-pool $vg/$lv1 |& tee out
|
not lvconvert --type vdo-pool $vg/$lv1 |& tee out
|
||||||
grep "WARNING" out
|
grep "WARNING" out
|
||||||
|
Loading…
Reference in New Issue
Block a user