1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/report
David Teigland 0a28e3c44b Add metadata-based autoactivation property for VG and LV
The autoactivation property can be specified in lvcreate
or vgcreate for new LVs/VGs, and the property can be changed
by lvchange or vgchange for existing LVs/VGs.

 --setautoactivation y|n
 enables|disables autoactivation of a VG or LV.

Autoactivation is enabled by default, which is consistent with
past behavior.  The disabled state is stored as a new flag
in the VG metadata, and the absence of the flag allows
autoactivation.

If autoactivation is disabled for the VG, then no LVs in the VG
will be autoactivated (the LV autoactivation property will have
no effect.)  When autoactivation is enabled for the VG, then
autoactivation can be controlled on individual LVs.

The state of this property can be reported for LVs/VGs using
the "-o autoactivation" option in lvs/vgs commands, which will
report "enabled", or "" for the disabled state.

Previous versions of lvm do not recognize this property.  Since
autoactivation is enabled by default, the disabled setting will
have no effect in older lvm versions.  If the VG is modified by
older lvm versions, the disabled state will also be dropped from
the metadata.

The autoactivation property is an alternative to using the lvm.conf
auto_activation_volume_list, which is still applied to to VGs/LVs
in addition to the new property.

If VG or LV autoactivation is disabled either in metadata or in
auto_activation_volume_list, it will not be autoactivated.

An autoactivation command will silently skip activating an LV
when the autoactivation property is disabled.

To determine the effective autoactivation behavior for a specific
LV, multiple settings would need to be checked:
the VG autoactivation property, the LV autoactivation property,
the auto_activation_volume_list.  The "activation skip" property
would also be relevant, since it applies to both normal and auto
activation.
2021-04-07 15:32:49 -05:00
..
columns-cmdlog.h report: add CMDLOG report type 2016-06-20 11:33:08 +02:00
columns-devtypes.h doc: change fsf address 2016-01-21 12:11:37 +01:00
columns.h Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
properties.c Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
properties.h device_mapper: rename libdevmapper.h -> all.h 2018-06-08 12:31:45 +01:00
report.c Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
report.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
values.h vdo: add lvs fields to query vdo volume properties 2019-10-04 17:31:55 +02:00