summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-06-12 14:35:27 -0500
committerDavid Teigland <teigland@redhat.com>2018-06-13 14:37:16 -0500
commitfa00fce97c1eabef9f1ec88dd420660cd4d6f004 (patch)
tree82fac3c7557f6313d0c406a3e4be3d5543d1d05b /scripts
parenta163d5341a90c1c2f656b0d15c055bbd90333a60 (diff)
downloadlvm2-fa00fce97c1eabef9f1ec88dd420660cd4d6f004.tar.gz
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lvm2_lvmlocking_systemd_red_hat.service.in24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/lvm2_lvmlocking_systemd_red_hat.service.in b/scripts/lvm2_lvmlocking_systemd_red_hat.service.in
deleted file mode 100644
index 62d8177d5..000000000
--- a/scripts/lvm2_lvmlocking_systemd_red_hat.service.in
+++ /dev/null
@@ -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
-