]> sourceware.org Git - lvm2.git/commitdiff
pvscan: for init only autoactivate vg for named dev
authorDavid Teigland <teigland@redhat.com>
Tue, 26 Feb 2019 22:39:43 +0000 (16:39 -0600)
committerDavid Teigland <teigland@redhat.com>
Fri, 5 Apr 2019 17:46:39 +0000 (12:46 -0500)
When pvscan is run for the initialization case (the first
pvscan run on the system), it scans all devs and creates
online files for all PVs it finds.  Previously it would
then autoactivate every complete VG, but change this to
only autoactive the (complete) VG corresponding to the
named device arg(s).

tools/pvscan.c

index f0944cdfa9e71fd38de3ceb41e8d0fa38fbf24b0..74e0b965b9ff6f5a62cacb77ffa8e2fd122e81de 100644 (file)
@@ -1066,9 +1066,7 @@ int pvscan_cache_cmd(struct cmd_context *cmd, int argc, char **argv)
 
        if (_online_pvid_files_missing()) {
                log_verbose("pvscan all devices to initialize available PVs.");
-               _online_files_remove(_pvs_online_dir);
-               _online_files_remove(_vgs_online_dir);
-               _online_pvscan_all_devs(cmd, complete_vgnames, NULL);
+               _online_pvscan_all_devs(cmd, complete_vgnames, &add_devs);
                _unlock_online();
                goto activate;
        }
This page took 0.035138 seconds and 5 git commands to generate.