mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-24 17:57:48 +03:00
pvscan: for init only autoactivate vg for named dev
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).
This commit is contained in:
parent
417724efe2
commit
6b89c0d4b7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user