1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/scripts/lvm-activate-vgs-main.service.in
David Teigland 582c759929 new activation services
During startup, new services lvm-activate-vgs-main and
lvm-activate-vgs-last run fixed point in time
vgchange -aay commands to activate all VGs.

The vgchange in the -last service includes the option
"--eventactivation begin" which creates the
/run/lvm/event-activation-on file, which enables
event-based activation from pvscan commands.

The lvm-monitor service starts after lvm-activatae-vgs-last.
2021-10-07 12:45:34 -05:00

16 lines
345 B
SYSTEMD

[Unit]
Description=Activate LVM Volume Groups
Documentation=man:vgchange(8)
After=dm-event.socket dm-event.service
Before=local-fs-pre.target shutdown.target
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=oneshot
ExecStart=@SBINDIR@/lvm vgchange -aay --nohints --vgonline
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target