From bc275bcddf3fac6ea691e2dfda0ca3531c4b3c0c Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 18 May 2018 14:26:32 -0500 Subject: [PATCH] fullreport: fix with lvmetad and only orphan PVs are visible The report uses process_each_vg() which populates lvmcache based on a VG list from lvmetad. If there are no VGs, but only orphan PVs, the orphans are not shown. Add an explicit call to populate lvmcache with PV info from lvmetad. --- tools/reporter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/reporter.c b/tools/reporter.c index 98e3d12f0..2d8342151 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -1421,6 +1421,8 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t return ECMD_FAILED; } + lvmcache_seed_infos_from_lvmetad(cmd); + if (single_args->report_type == FULL) { handle->custom_handle = &args; r = process_each_vg(cmd, argc, argv, NULL, NULL, 0, 1, handle, &_full_report_single);