diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-03-21 11:21:38 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-04-23 22:42:18 +0200 |
commit | dcb5434a7f4a3b736d72c7bebe276be6735142ce (patch) | |
tree | 48ee5661c15312dae3e9b9a74b6256483ea36d54 /test/shell/lvconvert-mirror-updown.sh | |
parent | fc3ed8856f445079de43cd33f64582cee9bc80ea (diff) | |
download | lvm2-dcb5434a7f4a3b736d72c7bebe276be6735142ce.tar.gz |
tests: more zero usage
Another case where usage of zero backend for mirror legs is more
effective then using delayed_dev.
Diffstat (limited to 'test/shell/lvconvert-mirror-updown.sh')
-rw-r--r-- | test/shell/lvconvert-mirror-updown.sh | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/test/shell/lvconvert-mirror-updown.sh b/test/shell/lvconvert-mirror-updown.sh index 5c7b13004..d5059c242 100644 --- a/test/shell/lvconvert-mirror-updown.sh +++ b/test/shell/lvconvert-mirror-updown.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright (C) 2014 Red Hat, Inc. All rights reserved. +# Copyright (C) 2018 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions @@ -16,26 +16,27 @@ SKIP_WITH_LVMLOCKD=1 . lib/inittest -aux prepare_pvs 3 +aux prepare_pvs 3 100 get_devs vgcreate -s 64k "$vg" "${DEVICES[@]}" -lvcreate -aey -l10 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" +# Use zero devices for big mirror legs +aux zero_dev "$dev2" $(get first_extent_sector "$dev2"): +aux zero_dev "$dev3" $(get first_extent_sector "$dev3"): -# Slow down device so we are able to start next conversion in parallel -aux delay_dev "$dev3" 0 200 +lvcreate -aey -L90 --type mirror --corelog --regionsize 16k -m1 -n $lv1 $vg "$dev1" "$dev2" lvconvert -m+1 -b $vg/$lv1 "$dev3" -# To fix - wait helps here.... -#lvconvert $vg/$lv1 -lvs -a $vg +# We want here ongoing conversion -# -# It fails so use 'should' and -vvvv for now -# -should lvconvert -vvvv -m-1 $vg/$lv1 "$dev2" +lvs -a -o+seg_pe_ranges $vg + +# Now it should be able to drop 2nd. leg +lvconvert -m-1 $vg/$lv1 "$dev2" + +lvs -a $vg vgremove -f $vg |