mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: test striped COW LV
This commit is contained in:
parent
c82ab92d04
commit
9e7b00a3b9
@ -17,7 +17,7 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
|
|
||||||
aux prepare_pvs 1
|
aux prepare_pvs 2
|
||||||
get_devs
|
get_devs
|
||||||
|
|
||||||
vgcreate -s 1k "$vg" "${DEVICES[@]}"
|
vgcreate -s 1k "$vg" "${DEVICES[@]}"
|
||||||
@ -30,6 +30,7 @@ lvcreate -L1 -s -n $lv3 $vg/$lv2
|
|||||||
lvcreate -l1 -n $lv4 $vg
|
lvcreate -l1 -n $lv4 $vg
|
||||||
lvcreate -L1 -n $lv5 $vg
|
lvcreate -L1 -n $lv5 $vg
|
||||||
lvcreate -L1 -n $lv6 $vg
|
lvcreate -L1 -n $lv6 $vg
|
||||||
|
lvcreate -L1 -i2 -n $lv7 $vg
|
||||||
|
|
||||||
not lvconvert -s $vg/$lv1 $vg/not_exist
|
not lvconvert -s $vg/$lv1 $vg/not_exist
|
||||||
|
|
||||||
@ -60,4 +61,7 @@ grep "smaller" err
|
|||||||
lvconvert --yes -s $vg/$lv2 $vg/$lv5
|
lvconvert --yes -s $vg/$lv2 $vg/$lv5
|
||||||
lvconvert --yes --type snapshot $vg/$lv2 $vg/$lv6
|
lvconvert --yes --type snapshot $vg/$lv2 $vg/$lv6
|
||||||
|
|
||||||
|
# Striped LV is also supported
|
||||||
|
lvconvert --yes --snapshot $vg/$lv2 $vg/$lv7
|
||||||
|
|
||||||
vgremove -f $vg
|
vgremove -f $vg
|
||||||
|
Loading…
Reference in New Issue
Block a user