mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: update to not run vgconvert -M with lvmetad
This commit is contained in:
parent
f5cc96a54e
commit
c7290759b0
@ -57,6 +57,9 @@ check pv_field "$dev3" pe_start $pv_align
|
|||||||
|
|
||||||
pvs --units k -o name,pe_start,vg_mda_size,vg_name $(cat DEVICES)
|
pvs --units k -o name,pe_start,vg_mda_size,vg_name $(cat DEVICES)
|
||||||
|
|
||||||
|
# vgconvert -M does not work with lvmetad
|
||||||
|
test -e LOCAL_LVMETAD && exit 0
|
||||||
|
|
||||||
# upgrade from v1 to v2 metadata
|
# upgrade from v1 to v2 metadata
|
||||||
vgconvert -M2 $vg
|
vgconvert -M2 $vg
|
||||||
|
|
||||||
|
@ -131,18 +131,30 @@ check pv_field "$dev1" pv_mda_count 2
|
|||||||
|
|
||||||
#COMM 'pv with LVM1 compatible data alignment can be convereted'
|
#COMM 'pv with LVM1 compatible data alignment can be convereted'
|
||||||
#compatible == LVM1_PE_ALIGN == 64k
|
#compatible == LVM1_PE_ALIGN == 64k
|
||||||
|
if test ! -e LOCAL_LVMETAD; then
|
||||||
pvcreate --dataalignment 256k "$dev1"
|
pvcreate --dataalignment 256k "$dev1"
|
||||||
vgcreate -s 1m $vg "$dev1"
|
vgcreate -s 1m $vg "$dev1"
|
||||||
vgconvert -M1 $vg
|
vgconvert -M1 $vg
|
||||||
vgconvert -M2 $vg
|
vgconvert -M2 $vg
|
||||||
check pv_field "$dev1" pe_start 256.00k
|
check pv_field "$dev1" pe_start 256.00k
|
||||||
vgremove $vg
|
vgremove $vg
|
||||||
|
fi
|
||||||
|
|
||||||
#COMM 'pv with LVM1 incompatible data alignment cannot be convereted'
|
#COMM 'pv with LVM1 incompatible data alignment cannot be convereted'
|
||||||
|
if test ! -e LOCAL_LVMETAD; then
|
||||||
pvcreate --dataalignment 10k "$dev1"
|
pvcreate --dataalignment 10k "$dev1"
|
||||||
vgcreate -s 1m $vg "$dev1"
|
vgcreate -s 1m $vg "$dev1"
|
||||||
not vgconvert -M1 $vg
|
not vgconvert -M1 $vg
|
||||||
vgremove $vg
|
vgremove $vg
|
||||||
|
fi
|
||||||
|
|
||||||
|
#COMM 'vgconvert -M is disallowed with lvmetad'
|
||||||
|
if test -e LOCAL_LVMETAD; then
|
||||||
|
pvcreate "$dev1"
|
||||||
|
vgcreate $vg "$dev1"
|
||||||
|
not vgconvert -M1 $vg
|
||||||
|
vgremove $vg
|
||||||
|
fi
|
||||||
|
|
||||||
#COMM 'vgcfgrestore allows pe_start=0'
|
#COMM 'vgcfgrestore allows pe_start=0'
|
||||||
#basically it produces nonsense, but it tests vgcfgrestore,
|
#basically it produces nonsense, but it tests vgcfgrestore,
|
||||||
|
Loading…
Reference in New Issue
Block a user