mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Remove systemd script for starting shared VG
Shared VGs will generally be started and activated by the resource agent. Without the agent, this script doesn't have a good way to know which LVs to activate.
This commit is contained in:
parent
a163d5341a
commit
fa00fce97c
@ -1,24 +0,0 @@
|
||||
[Unit]
|
||||
Description=Availability of lockspaces in lvmlockd
|
||||
Documentation=man:lvmlockd(8)
|
||||
After=lvm2-lvmlockd.service sanlock.service dlm.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
# start lockspaces and wait for them to finish starting
|
||||
ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt autowait
|
||||
|
||||
# auto activate LVs in the newly started lockd VGs
|
||||
ExecStart=@SBINDIR@/lvm vgchange -aay -S 'locktype=sanlock || locktype=dlm'
|
||||
|
||||
# deactivate LVs in lockd VGs
|
||||
ExecStop=@SBINDIR@/lvm vgchange -an -S 'locktype=sanlock || locktype=dlm'
|
||||
|
||||
# stop lockspaces and wait for them to finish stopping
|
||||
ExecStop=@SBINDIR@/lvmlockctl --stop-lockspaces --wait 1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user