[lvm-devel] [PATCH 0/5] Check for resized smaller devices, v1, rhbz753914

Alasdair G Kergon agk at redhat.com
Mon Nov 14 21:55:45 UTC 2011


There are circumstances where sizes don't match and it's OK.
There are circumstances where sizes don't match and it's not OK.

Warn, prompt or abort?

vg_validate is really about the internal consistency of the metadata,
and I hesitate to extend it to check the underlying devices.

It's not a particularly cheap check either.
It shouldn't be done while any devices are suspended.

A flag in each PV to say to ignore a size mismatch on an individual PV,
controlled with pvchange and set when --setphysicalvolumesize overrides
it, or alternatively just a single global lvm.conf setting?

Cache the sizes during the standard scanning we already do, perhaps and
then check on (just the first?) vg read?  Re-check next time VG lock is
acquired?  (Hook into VG cache this way?)

Alasdair




More information about the lvm-devel mailing list