mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
tests: move vgsplit writecache
to a different file
This commit is contained in:
parent
c1ee6f0eef
commit
c0de37ab18
@ -70,8 +70,7 @@ test 3 -eq "$(get vg_field $vg1 pv_count)"
|
||||
|
||||
lvremove -y $vg
|
||||
|
||||
# dm-cache or dm-writecache with cachevol must not
|
||||
# separated main LV and cachevol
|
||||
# dm-cache with cachevol must not separated main LV and cachevol
|
||||
|
||||
vgremove -ff $vg
|
||||
vgremove -ff $vg1
|
||||
@ -85,11 +84,4 @@ fail vgsplit $vg $vg1 "$dev2"
|
||||
fail vgsplit $vg $vg1 "$dev3"
|
||||
lvremove $vg/$lv1
|
||||
|
||||
lvcreate -L6 -n $lv1 -an $vg "$dev2"
|
||||
lvcreate -L6 -n $lv2 -an $vg "$dev3"
|
||||
lvconvert -y --type writecache --cachevol $lv2 $vg/$lv1
|
||||
fail vgsplit $vg $vg1 "$dev2"
|
||||
fail vgsplit $vg $vg1 "$dev3"
|
||||
lvremove $vg/$lv1
|
||||
|
||||
vgremove -ff $vg
|
||||
|
@ -126,3 +126,17 @@ vgchange -an $vg
|
||||
vgextend --restoremissing $vg "$dev3"
|
||||
|
||||
vgremove -ff $vg
|
||||
|
||||
#
|
||||
# vgsplit should not separate cachevol from main lv
|
||||
#
|
||||
|
||||
vgcreate $vg "$dev1" "$dev2" "$dev3" "$dev4"
|
||||
lvcreate -L6 -n $lv1 -an $vg "$dev2"
|
||||
lvcreate -L6 -n $lv2 -an $vg "$dev3"
|
||||
lvconvert -y --type writecache --cachevol $lv2 $vg/$lv1
|
||||
fail vgsplit $vg $vg1 "$dev2"
|
||||
fail vgsplit $vg $vg1 "$dev3"
|
||||
lvremove $vg/$lv1
|
||||
|
||||
vgremove -ff $vg
|
||||
|
Loading…
x
Reference in New Issue
Block a user