]> sourceware.org Git - lvm2.git/commitdiff
tests: update lvconvert test
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 14 Mar 2016 22:22:19 +0000 (23:22 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 14 Mar 2016 22:46:08 +0000 (23:46 +0100)
test/shell/lvconvert-repair-cache.sh

index 9ef8716b3618f2c7c2d8b2b7f1edd535ceb3e19c..60b0b5d4c5b68cd7f359d78f42f53a4723824c91 100644 (file)
@@ -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"
This page took 0.034629 seconds and 5 git commands to generate.