blob: 5e7144c581112461aa7c19b99567351db8c2f9c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
[Unit]
Description=Availability of lockspaces in lvmlockd
Documentation=man:lvmlockd(8)
After=lvm2-lvmlockd.service
# The steps below require sanlock|dlm to be available,
# use After dlm.service and sanlock.service?
[Service]
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
# deactivate lockd LVs
# ExecStop=@sbindir@/vgchange -an -S 'lock_type={sanlock,dlm}'
ExecStop=@sbindir@/vgchange -an
# stop lockspaces and wait for them to finish stopping
ExecStop=@sbindir@/lvmlock --stop-lockspaces --wait
[Install]
WantedBy=multi-user.target
|