summaryrefslogtreecommitdiffstats
path: root/templates/sbd
blob: 9ab201a4cd927fe150689d339bdffef3031a5503 (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
28
29
30
31
32
33
34
%name sbd

# Copyright (C) 2009 Dejan Muhamedagic
#
# License: GNU General Public License (GPL)

# Shared storage based fencing.
#
# This template generates a single instance of external/sbd.
#
# There is quite a bit more to do to make this stonith operational.
# See http://www.linux-ha.org/wiki/SBD_Fencing for information.
#

%required

# The resource id (name).
# Example:
# %% id stonith-sbd
%% id 

# Name of the device (shared disk).
# NB: Make sure that the device remains the same on reboots. It's
# preferable to use udev generated names rather than the usual
# /dev/sd?
# %% sbd_device /dev/sda
%% sbd_device 

%generate

primitive %_:id stonith:external/sbd
	params sbd_device="%_:sbd_device"
	op monitor interval=15s timeout=60s
	op start timeout=60s