diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-03-14 23:22:19 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-03-14 23:46:08 +0100 |
commit | 746f8af2a836e662e5588a37feb29c27ed02261b (patch) | |
tree | 34aa34f295136fd97c3d1477cb90374dec52420d | |
parent | 0d5b9deff21991f0b26240ae4395ee12e76096c5 (diff) | |
download | lvm2-746f8af2a836e662e5588a37feb29c27ed02261b.tar.gz |
tests: update lvconvert test
-rw-r--r-- | test/shell/lvconvert-repair-cache.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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" |