mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-23 21:35:29 +03:00
Use backward compatible configuration for test
Currently the test are not properly working with new code. Use settings for the previous behaviour. FIXME: update tests to properly test new allocation policies.
This commit is contained in:
parent
179139735c
commit
23b5c9b9e5
@ -12,6 +12,8 @@
|
|||||||
. lib/test
|
. lib/test
|
||||||
|
|
||||||
aux prepare_vg 4
|
aux prepare_vg 4
|
||||||
|
aux lvmconf 'allocation/maximise_cling = 0'
|
||||||
|
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
|
||||||
|
|
||||||
# Clean-up and create a 2-way mirror, where the the
|
# Clean-up and create a 2-way mirror, where the the
|
||||||
# leg devices are always on $dev[12] and the log
|
# leg devices are always on $dev[12] and the log
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
. lib/test
|
. lib/test
|
||||||
|
|
||||||
aux prepare_vg 6
|
aux prepare_vg 6
|
||||||
|
aux lvmconf 'allocation/maximise_cling = 0'
|
||||||
|
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
|
||||||
|
|
||||||
# 3-way, disk log
|
# 3-way, disk log
|
||||||
# multiple failures, full replace
|
# multiple failures, full replace
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
. lib/test
|
. lib/test
|
||||||
|
|
||||||
aux prepare_vg 5
|
aux prepare_vg 5
|
||||||
|
aux lvmconf 'allocation/maximise_cling = 0'
|
||||||
|
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
|
||||||
|
|
||||||
lvcreate -m 3 --ig -L 2M -n 4way $vg $dev1 $dev2 $dev3 $dev4 $dev5:0
|
lvcreate -m 3 --ig -L 2M -n 4way $vg $dev1 $dev2 $dev3 $dev4 $dev5:0
|
||||||
lvcreate -s $vg/4way -L 2M -n snap
|
lvcreate -s $vg/4way -L 2M -n snap
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
. lib/test
|
. lib/test
|
||||||
|
|
||||||
|
aux lvmconf 'allocation/maximise_cling = 0'
|
||||||
|
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
|
||||||
|
|
||||||
# fail multiple devices
|
# fail multiple devices
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
. lib/test
|
. lib/test
|
||||||
aux prepare_vg 5 80
|
aux prepare_vg 5 80
|
||||||
|
aux lvmconf 'allocation/maximise_cling = 0'
|
||||||
|
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
|
||||||
|
|
||||||
# 2-way mirror with corelog, 2 PVs
|
# 2-way mirror with corelog, 2 PVs
|
||||||
lvcreate -l2 -m1 --mirrorlog core -n $lv1 $vg $dev1 $dev2
|
lvcreate -l2 -m1 --mirrorlog core -n $lv1 $vg $dev1 $dev2
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
. lib/test
|
. lib/test
|
||||||
|
|
||||||
aux prepare_pvs 3
|
aux prepare_pvs 3
|
||||||
|
aux lvmconf 'allocation/maximise_cling = 0'
|
||||||
|
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
|
||||||
|
|
||||||
# not required, just testing
|
# not required, just testing
|
||||||
aux pvcreate --metadatacopies 0 $dev1
|
aux pvcreate --metadatacopies 0 $dev1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user