summaryrefslogtreecommitdiff
path: root/tools/pvscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r--tools/pvscan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c
index 4652e7de4..806df812c 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -1362,6 +1362,12 @@ static int _online_devs(struct cmd_context *cmd, int do_all, struct dm_list *pvs
continue;
}
+ if (vg_is_exported(vg)) {
+ log_print_pvscan(cmd, "PV %s ignore exported VG.", dev_name(dev));
+ release_vg(vg);
+ continue;
+ }
+
/*
* online file phase
* create pvs_online/<pvid>