diff options
author | David Teigland <teigland@redhat.com> | 2015-06-03 14:33:27 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-06-08 11:50:40 -0500 |
commit | 0dde547e669239a7e034caaf519b7bd0236fd93a (patch) | |
tree | 7bc173721c16154e11cdf6f1dd326cf838291c73 | |
parent | d86cb2179b9b3234aec8a87425f981d6e131c6ba (diff) | |
download | lvm2-0dde547e669239a7e034caaf519b7bd0236fd93a.tar.gz |
updates to lvm2-lvmlocking unit file
-rw-r--r-- | scripts/lvm2-lvmlocking.service.in | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/lvm2-lvmlocking.service.in b/scripts/lvm2-lvmlocking.service.in index 5e7144c58..61d3be419 100644 --- a/scripts/lvm2-lvmlocking.service.in +++ b/scripts/lvm2-lvmlocking.service.in @@ -11,16 +11,14 @@ Type=oneshot # start lockspaces and wait for them to finish starting ExecStart=@sbindir@/vgchange --lock-start --lock-opt autowait -# auto activate lockd LVs in the newly started VGs -# ExecStart=@sbindir@/vgchange -aay -S 'lock_type={sanlock,dlm}' -ExecStart=@sbindir@/vgchange -aay +# auto activate LVs in the newly started lockd VGs +ExecStart=@sbindir@/vgchange -aay -S locktype=sanlock || locktype=dlm -# deactivate lockd LVs -# ExecStop=@sbindir@/vgchange -an -S 'lock_type={sanlock,dlm}' -ExecStop=@sbindir@/vgchange -an +# deactivate LVs in lockd VGs +ExecStop=@sbindir@/vgchange -an -S locktype=sanlock || locktype=dlm # stop lockspaces and wait for them to finish stopping -ExecStop=@sbindir@/lvmlock --stop-lockspaces --wait +ExecStop=@sbindir@/lvmlockctl --stop-lockspaces --wait [Install] WantedBy=multi-user.target |