diff --git a/shell/templates/Makefile.am b/shell/templates/Makefile.am index cad54743d1..a016ee3eda 100644 --- a/shell/templates/Makefile.am +++ b/shell/templates/Makefile.am @@ -1,26 +1,26 @@ # # doc: Pacemaker code # # Copyright (C) 2008 Andrew Beekhof # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # MAINTAINERCLEANFILES = Makefile.in templatedir = $(datadir)/@PACKAGE@/templates -template_DATA = apache virtual-ip filesystem ocfs2 clvm gfs2-base gfs2 +template_DATA = apache virtual-ip filesystem ocfs2 clvm gfs2-base gfs2 sbd EXTRA_DIST = $(template_DATA) diff --git a/shell/templates/sbd b/shell/templates/sbd new file mode 100644 index 0000000000..9423cdb845 --- /dev/null +++ b/shell/templates/sbd @@ -0,0 +1,27 @@ +%name sbd + +# 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). +%% 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 + +%generate + +primitive %_:id stonith:external/sbd + params sbd_device="%_:sbd_device" + op monitor interval=15s timeout=60s + op start timeout=60s