[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]