mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-23 02:05:07 +03:00
5e79d61de7
System startup runs two new fixed activation services: lvm-activate-vgs-main and lvm-activate-vgs-last These activate VGs that are present and complete at the time of system startup. The last service enables event activation by creating the file /run/lvm/event-activation-on. After that, new devices that appear will be processed by event based activation commands. Prior to the existence of the event-activation-on file, event-based commands do nothing. lvm.conf event_activation_options can be used to configure service-based activation only, or event-based activation only, or the default hybrid approach.
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
|