mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +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
444 B
SYSTEMD
16 lines
444 B
SYSTEMD
[Unit]
|
|
Description=Availability of block devices
|
|
Before=shutdown.target
|
|
After=lvm-activate-vgs-main.service lvm-activate-vgs-last.service iscsi-shutdown.service iscsi.service iscsid.service fcoe.service rbdmap.service
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/true
|
|
ExecStop=@SBINDIR@/blkdeactivate -u -l wholevg -m disablequeueing -r wait
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|