From: Zdenek Kabelac Date: Mon, 14 Mar 2016 22:22:19 +0000 (+0100) Subject: tests: update lvconvert test X-Git-Tag: v2_02_147~5 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=746f8af2a836e662e5588a37feb29c27ed02261b;p=lvm2.git tests: update lvconvert test --- diff --git a/test/shell/lvconvert-repair-cache.sh b/test/shell/lvconvert-repair-cache.sh index 9ef8716b3..60b0b5d4c 100644 --- a/test/shell/lvconvert-repair-cache.sh +++ b/test/shell/lvconvert-repair-cache.sh @@ -61,6 +61,10 @@ lvconvert -H --cachemode writethrough --cachepool $vg/cpool $lv1 aux disable_dev "$dev2" +# Deactivate before remove +# FIXME: handle this while LV is alive +lvchange -an $vg/$lv1 + # Check it is prompting for confirmation not lvconvert --uncache $vg/$lv1 # --yes to drop when Check its prompting @@ -72,6 +76,9 @@ lvconvert --yes --uncache $vg/$lv1 #lvchange -ay $vg aux enable_dev "$dev2" + +# FIXME: temporary workaround +lvcreate -L1 -n $lv5 $vg lvremove -ff $vg ########################## @@ -92,7 +99,7 @@ lvs -a -o+seg_pe_ranges,cachemode $vg sync # Seriously damage cache metadata -aux error_dev "$dev1" 2054:2 +aux error_dev "$dev1" 2054:2 # Here we usually for the 1st. notice needs_check check lv_attr_bit state $vg/$lv1 "c"