diff options
author | David Teigland <teigland@redhat.com> | 2015-06-03 14:33:27 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-06-03 14:33:27 -0500 |
commit | 1fd12230aea1bfed70cafff526148e01296c8d1d (patch) | |
tree | 9b11c93e8d03aa10231d99db2da3ddfc1e303f41 | |
parent | 82ca2cd67c4028e186251ab90d5ec8d8e5dce322 (diff) | |
download | lvm2-1fd12230aea1bfed70cafff526148e01296c8d1d.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 |