mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
582c759929
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.
16 lines
345 B
SYSTEMD
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
|