1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/metadata
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
..
cache_manip.c cache: use interruptible_usleep 2021-03-14 16:34:38 +01:00
integrity_manip.c cleanup: no backtraces needed after log_error 2021-03-10 01:11:52 +01:00
lv_alloc.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lv_manip.c Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
lv.c cache: activation cache_check on cachevol 2020-12-09 17:36:09 -06:00
lv.h lvremove: support faster removal of thin-pools 2021-03-11 00:18:01 +01:00
merge.c cleanup: simpler checks first 2021-03-08 15:43:27 +01:00
metadata-exported.h Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
metadata.c debug: start with upper case 2021-03-17 00:50:40 +01:00
metadata.h Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
mirror.c wipe: convert zero_value to uint8_t 2020-09-15 22:52:25 +02:00
pool_manip.c debug: more use of display_lvname 2021-03-10 01:11:52 +01:00
pv_alloc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pv_list.c cleanup: no backtraces needed after log_error 2021-03-10 01:11:52 +01:00
pv_manip.c pvresize: add missing return 2018-06-08 14:36:56 +02:00
pv_map.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv_map.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv.c device usage based on devices file 2021-02-23 16:43:32 -06:00
pv.h device usage based on devices file 2021-02-23 16:43:32 -06:00
raid_manip.c all: fix typos 2021-03-30 13:08:14 +02:00
segtype.c segtype: add linear 2018-06-05 16:23:18 +02:00
segtype.h segtypes: macros for error and zero segtypes 2021-03-18 18:34:57 +01:00
snapshot_manip.c lvremove: use to_remove for snapshot removal 2021-03-15 11:11:35 +01:00
takeover_matrix.h lvconvert: add infrastructure for RaidLV reshaping support 2017-02-24 05:20:58 +01:00
thin_manip.c thin: improve 16g support for thin pool metadata 2021-02-01 12:06:13 +01:00
vdo_manip.c lvconvert: vdo may convert already formated vdo 2021-02-17 11:21:35 +01:00
vg.c hash: use individual hint sizes 2021-03-08 15:33:15 +01:00
vg.h vg_read: reuse already parsed config tree 2021-03-08 15:30:18 +01:00
writecache_manip.c writecache: use cleaner message instead of table reload 2021-01-28 15:14:25 -06:00