diff --git a/heartbeat/Makefile.am b/heartbeat/Makefile.am index a0ee399f2..c80815d00 100644 --- a/heartbeat/Makefile.am +++ b/heartbeat/Makefile.am @@ -1,103 +1,104 @@ # Makefile.am for OCF RAs # # Author: Sun Jing Dong # Copyright (C) 2004 IBM # # 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 EXTRA_DIST = $(ocf_SCRIPTS) ra-api-1.dtd INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/linux-ha dtddir = $(HA_NOARCHDATAHBDIR) ocfdir = @OCF_RA_DIR@/heartbeat dtd_SCRIPTS = ra-api-1.dtd gliblib = @GLIBLIB@ if USE_IPV6ADDR ocf_PROGRAMS = IPv6addr else ocf_PROGRAMS = endif IPv6addr_SOURCES = IPv6addr.c IPv6addr_LDADD = $(top_builddir)/lib/clplumbing/libplumb.la \ $(gliblib) @LIBNETLIBS@ ocf_SCRIPTS = ClusterMon \ Dummy \ IPaddr \ IPaddr2 \ drbd \ apache \ AudibleAlarm \ db2 \ Delay \ drbd \ eDir88 \ EvmsSCC \ Evmsd \ Filesystem \ ids \ iscsi \ ICP \ IPsrcaddr \ LinuxSCSI \ LVM \ MailTo \ ManageRAID \ ManageVE \ mysql \ nfsserver \ oracle \ oralsnr \ pingd \ portblock \ pgsql \ Pure-FTPd \ Raid1 \ Route \ rsyncd \ SAPDatabase \ SAPInstance \ SendArp \ ServeRAID \ SphinxSearchDaemon \ Stateful \ SysInfo \ + scsi2reservation \ sfex \ tomcat \ VIPArip \ vmware \ WAS \ WAS6 \ WinPopup \ Xen \ Xinetd \ .ocf-shellfuncs \ .ocf-binaries \ .ocf-directories \ .ocf-returncodes commondir = @HA_LIBHBDIR@ # Legacy locations common_SCRIPTS = ocf-shellfuncs ocf-returncodes diff --git a/heartbeat/scsi2reservation b/heartbeat/scsi2reservation new file mode 100644 index 000000000..fb709a434 --- /dev/null +++ b/heartbeat/scsi2reservation @@ -0,0 +1,170 @@ +#!/bin/sh +# by hxinwei@gmail.com +# License: GNU General Public License 2 (GPL2) + +if [ -n "$OCF_DEBUG_LIBRARY" ]; then + . $OCF_DEBUG_LIBRARY +else + . ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs +fi + +scsi2reserve_meta_data() { + cat < + + +1.0 + + +The scsi-2-reserve resource agent is a place holder for SCSI-2 reservation. +A healthy instance of scsi-2-reserve resource, indicates the own of the specified SCSI device. +This resource agent depends on the scsi_reserve from scsires package, which is Linux specific. + + + +scsi-2 reservation + + + + + + +The scsi_reserve is a command from scsires package. +It helps to issue SCSI-2 reservation on SCSI devices. + + +scsi_reserve command + + + + + + + +The shared disk that can be reserved. + + +Shared disk. + + + + + + +We are going to try several times before giving up. Start_loop indicates how many times we are going to re-try. + + +Times to re-try before giving up. + + + + + + + + + + + + + + + + + +END + + return $OCF_SUCCESS +} + +scsi2reserve_usage() { + cat <