diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2012-06-27 09:35:11 -0400 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2012-06-28 09:44:03 -0400 |
commit | d2df8dddc8c04973a3e23b7a19e9bfbf8c45f79e (patch) | |
tree | 7bcca97a3e58c468df6de63e1bb941e844ca27bd /tools/commands.h | |
parent | 215a314f195ea4af5265e37999502462fcf2a341 (diff) | |
download | lvm2-d2df8dddc8c04973a3e23b7a19e9bfbf8c45f79e.tar.gz lvm2-d2df8dddc8c04973a3e23b7a19e9bfbf8c45f79e.tar.xz lvm2-d2df8dddc8c04973a3e23b7a19e9bfbf8c45f79e.zip |
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.
Diffstat (limited to 'tools/commands.h')
-rw-r--r-- | tools/commands.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, |