diff --git a/lib/metadata/pv.c b/lib/metadata/pv.c index 0288f0740..1d608f2fe 100644 --- a/lib/metadata/pv.c +++ b/lib/metadata/pv.c @@ -355,7 +355,10 @@ struct label *pv_label(const struct physical_volume *pv) struct lvmcache_info *info = lvmcache_info_from_pvid((const char *)&pv->id.uuid, 0); if (!info) { - log_error(INTERNAL_ERROR "PV %s unexpectedly not in cache.", dev_name(pv->dev)); + if (pv->vg) /* process_each_pv will create PVs that are dummy + * and that have no label associated */ + log_error(INTERNAL_ERROR "PV %s unexpectedly not in cache.", + dev_name(pv->dev)); return NULL; } return lvmcache_get_label(info);