Check for resized smaller devices, v1, rhbz753914
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 of 5 patches 0 repliesNew
1 of 5 patches is in this archive. The cover letter announces 5.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Add static _check_pv_sizes() function to check all pv sizes for consistency. | +0 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [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