mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
metadata: don't repair shared VGs
When the in-use flag looks like it needs to be repaired.
This commit is contained in:
parent
a400eba174
commit
a6a32a7c0e
@ -4037,6 +4037,14 @@ static int _check_or_repair_pv_ext(struct cmd_context *cmd,
|
|||||||
"VG %s but not marked as used.",
|
"VG %s but not marked as used.",
|
||||||
pv_dev_name(pvl->pv), vg->name);
|
pv_dev_name(pvl->pv), vg->name);
|
||||||
*inconsistent_pvs = 1;
|
*inconsistent_pvs = 1;
|
||||||
|
} else if (is_lockd_type(vg->lock_type)) {
|
||||||
|
/*
|
||||||
|
* FIXME: decide how to handle repair for shared VGs.
|
||||||
|
*/
|
||||||
|
log_warn("Skip repair of PV %s that is in shared "
|
||||||
|
"VG %s but not marked as used.",
|
||||||
|
pv_dev_name(pvl->pv), vg->name);
|
||||||
|
*inconsistent_pvs = 1;
|
||||||
} else {
|
} else {
|
||||||
log_warn("WARNING: Repairing Physical Volume %s that is "
|
log_warn("WARNING: Repairing Physical Volume %s that is "
|
||||||
"in Volume Group %s but not marked as used.",
|
"in Volume Group %s but not marked as used.",
|
||||||
|
Loading…
Reference in New Issue
Block a user