2017-03-27 17:45:48 +03:00
.TH "LVM2-ACTIVATION-GENERATOR" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\""
2021-04-13 16:26:54 +03:00
.
2014-03-13 16:01:06 +04:00
.SH "NAME"
2021-04-13 16:26:54 +03:00
.
2018-11-14 18:39:42 +03:00
lvm2-activation-generator - generator for systemd units to activate LVM volumes on boot
2021-04-13 16:26:54 +03:00
.
2014-03-13 16:01:06 +04:00
.SH SYNOPSIS
2021-04-13 16:26:54 +03:00
.
2017-03-27 17:45:48 +03:00
.B #SYSTEMD_GENERATOR_DIR#/lvm2-activation-generator
2021-04-13 16:26:54 +03:00
.
2014-03-13 16:01:06 +04:00
.SH DESCRIPTION
2021-04-13 16:26:54 +03:00
.
2018-11-14 18:39:42 +03:00
The lvm2-activation-generator is called by \fBsystemd\fP(1) on boot to
generate systemd units at runtime to activate LVM Logical Volumes (LVs)
2018-11-26 21:49:39 +03:00
when global/event_activation=0 is set in \fBlvm.conf\fP(5). These units use
2020-03-10 22:41:51 +03:00
\fBvgchange -aay\fP to activate LVs.
2021-04-13 16:26:54 +03:00
.P
2018-11-26 21:49:39 +03:00
If event_activation=1, the lvm2-activation-generator exits immediately without
2018-11-14 18:39:42 +03:00
generating any systemd units, and LVM fully relies on event-based
2021-04-13 16:26:54 +03:00
activation to activate LVs. In this case, event-generated
.B pvscan --cache -aay
commands activate LVs.
.P
2017-03-27 17:45:48 +03:00
These systemd units are generated by lvm2-activation-generator:
2021-04-13 16:26:54 +03:00
.P
.I lvm2-activation-early.service
2018-11-14 18:39:42 +03:00
is run before systemd's special \fBcryptsetup.target\fP to activate
LVs that are not layered on top of encrypted devices.
2021-04-13 16:26:54 +03:00
.P
.I lvm2-activation.service
2018-11-14 18:39:42 +03:00
is run after systemd's special \fBcryptsetup.target\fP to activate
LVs that are layered on top of encrypted devices.
2021-04-13 16:26:54 +03:00
.P
.I lvm2-activation-net.service
2018-11-14 18:39:42 +03:00
is run after systemd's special \fBremote-fs-pre.target\fP to activate
LVs that are layered on attached remote devices.
2021-04-13 16:26:54 +03:00
.P
2018-11-14 18:39:42 +03:00
Note that all the underlying LVM devices (Physical Volumes) need to be
present when the service is run. If the there are any devices that appear
to the system later, LVs using these devices need to be activated directly
by \fBlvchange\fP(8) or \fBvgchange\fP(8).
2021-04-13 16:26:54 +03:00
.P
2017-03-27 17:45:48 +03:00
The lvm2-activation-generator implements the \fBGenerators Specification\fP
2014-03-13 16:01:06 +04:00
as referenced in \fBsystemd\fP(1).
2021-04-13 16:26:54 +03:00
.
2014-03-13 16:01:06 +04:00
.SH SEE ALSO
2021-04-13 16:26:54 +03:00
.nh
.ad l
.BR lvm.conf (5),
.BR vgchange (8),
.BR lvchange (8),
.BR pvscan (8),
.P
.BR systemd (1),
.BR systemd.target (5),
.BR systemd.special (7),
.P
2014-03-13 16:01:06 +04:00
.BR udev (7)