mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
test
This commit is contained in:
parent
2132fdc11f
commit
b70c341c9e
@ -75,6 +75,53 @@ lvremove -y $vg
|
||||
vgremove -ff $vg
|
||||
vgremove -ff $vg1
|
||||
|
||||
#
|
||||
# Check we handle pmspare for splitted VGs
|
||||
#
|
||||
aux prepare_vg 7
|
||||
|
||||
# Create cache-pool and pmspare on single PV1
|
||||
lvcreate -L10 --type cache-pool $vg/cpool "$dev1"
|
||||
# Move spare to separate PV3
|
||||
pvmove -n $vg/lvol0_pmspare "$dev1" "$dev3"
|
||||
# Create origin on PV2
|
||||
lvcreate -L10 -n orig $vg "$dev2"
|
||||
lvconvert -H -y --cachepool $vg/cpool $vg/orig
|
||||
|
||||
vgchange -an $vg
|
||||
|
||||
# Check we do not create new _pmspare
|
||||
vgsplit --poolmetadataspare n $vg $vg1 "$dev2" "$dev1"
|
||||
|
||||
check lv_exists $vg/lvol0_pmspare
|
||||
check lv_not_exists $vg1/lvol0_pmspare
|
||||
|
||||
vgremove $vg
|
||||
vgremove -f $vg1
|
||||
|
||||
|
||||
aux prepare_vg 7
|
||||
|
||||
# Again - now with handling _pmspare by vgsplit
|
||||
lvcreate -L10 --type cache-pool $vg/cpool "$dev1"
|
||||
# Move spare to separate PV3
|
||||
pvmove -n $vg/lvol0_pmspare "$dev1" "$dev3"
|
||||
# Create origin on PV2
|
||||
lvcreate -L10 -n orig $vg "$dev2"
|
||||
lvconvert -H -y --cachepool $vg/cpool $vg/orig
|
||||
|
||||
vgchange -an $vg
|
||||
|
||||
# Handle _pmspare (default)
|
||||
vgsplit --poolmetadataspare y $vg $vg1 "$dev2" "$dev1"
|
||||
|
||||
check lv_not_exists $vg/lvol0_pmspare
|
||||
check lv_exists $vg1/lvol0_pmspare
|
||||
|
||||
vgremove $vg
|
||||
vgremove -f $vg1
|
||||
|
||||
|
||||
vgcreate $vg "$dev1" "$dev2" "$dev3" "$dev4"
|
||||
|
||||
lvcreate -L6 -n $lv1 -an $vg "$dev2"
|
||||
|
Loading…
Reference in New Issue
Block a user