From d2df8dddc8c04973a3e23b7a19e9bfbf8c45f79e Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 27 Jun 2012 09:35:11 -0400 Subject: pvscan: add --activate ay option (autoactivate) Define auto_activation_handler that activates VGs/LVs automatically based on the activation/auto_activation_volume_list (activating all volumes by default if the list is not defined). The autoactivation is done within the pvscan call in 69-dm-lvmetad.rules that watches for udev events (device appearance/removal). For now, this works for non-clustered and complete VGs only. --- tools/commands.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/commands.h') diff --git a/tools/commands.h b/tools/commands.h index 8bec0929..21791f77 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -671,6 +671,7 @@ xx(pvscan, "List all physical volumes", PERMITTED_READ_ONLY, "pvscan " "\n" + "\t[-a|--activate ay]\n" "\t[--cache [ DevicePath | --major major --minor minor]...]\n" "\t[-d|--debug] " "\n" "\t{-e|--exported | -n|--novolumegroup} " "\n" @@ -682,7 +683,8 @@ xx(pvscan, "\t[-v|--verbose] " "\n" "\t[--version]\n", - cache_ARG, exported_ARG, ignorelockingfailure_ARG, major_ARG, minor_ARG, + activate_ARG, available_ARG, cache_ARG, exported_ARG, + ignorelockingfailure_ARG, major_ARG, minor_ARG, novolumegroup_ARG, partial_ARG, short_ARG, uuid_ARG) xx(segtypes, -- cgit