mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: check pvresize with metadata size
Test new size of a PV can keep also metadata.
This commit is contained in:
parent
59dc9b445d
commit
0e2a358da9
@ -26,3 +26,13 @@ pvresize --setphysicalvolumesize 4m -y "$dev1"
|
|||||||
check pv_field "$dev1" pv_size 4.00m
|
check pv_field "$dev1" pv_size 4.00m
|
||||||
check pv_field "$dev1" pv_mda_count 2
|
check pv_field "$dev1" pv_mda_count 2
|
||||||
pvs "$dev1"
|
pvs "$dev1"
|
||||||
|
|
||||||
|
# Check physical size is checked agains metadatasize
|
||||||
|
pvcreate --metadatasize 2m --metadatacopies 1 -y "$dev1"
|
||||||
|
not pvresize --setphysicalvolumesize 2m -y "$dev1" |& tee out
|
||||||
|
grep "Size must exceed physical extent start of 6144 sectors on" out
|
||||||
|
# 3MiB shall pass with 1M default alignment
|
||||||
|
pvresize --setphysicalvolumesize 3m -y "$dev1"
|
||||||
|
check pv_field "$dev1" pv_size 3.00m
|
||||||
|
check pv_field "$dev1" pv_mda_count 1
|
||||||
|
pvs "$dev1"
|
||||||
|
Loading…
Reference in New Issue
Block a user