diff --git a/heartbeat/Makefile.am b/heartbeat/Makefile.am index 238b1fe3b..dbbb645b1 100644 --- a/heartbeat/Makefile.am +++ b/heartbeat/Makefile.am @@ -1,109 +1,111 @@ # 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 \ anything \ AoEtarget \ apache \ AudibleAlarm \ db2 \ Delay \ drbd \ eDir88 \ EvmsSCC \ Evmsd \ Filesystem \ ids \ iscsi \ ICP \ IPsrcaddr \ + iSCSITarget \ + iSCSILogicalUnit \ LinuxSCSI \ LVM \ MailTo \ ManageRAID \ ManageVE \ mysql \ mysql-proxy \ nfsserver \ oracle \ oralsnr \ pingd \ portblock \ pgsql \ Pure-FTPd \ Raid1 \ Route \ rsyncd \ SAPDatabase \ SAPInstance \ SendArp \ ServeRAID \ SphinxSearchDaemon \ Squid \ Stateful \ SysInfo \ scsi2reservation \ sfex \ tomcat \ VIPArip \ VirtualDomain \ 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/iSCSILogicalUnit b/heartbeat/iSCSILogicalUnit new file mode 100644 index 000000000..81e1abc21 --- /dev/null +++ b/heartbeat/iSCSILogicalUnit @@ -0,0 +1,254 @@ +#!/bin/bash +# +# +# iSCSILogicalUnit OCF RA. Exports and manages iSCSI Logical Units. +# +# Copyright (c) 2009 LINBIT HA-Solutions GmbH, Florian Haas +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Further, this software is distributed without any warranty that it is +# free of the rightful claim of any third person regarding infringement +# or the like. Any license provided herein, whether implied or +# otherwise, applies only to this software file. Patent licenses, if +# any, provided herein do not apply to combinations of this program with +# other software, or any other product whatsoever. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +# + +####################################################################### +# Initialization: +. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs +LC_ALL="C" +LANG="C" + +# Defaults +####################################################################### + +meta_data() { + cat < + + +0.9 + + +Manages iSCSI targets. An iSCSI target is a collection of SCSI Logical +Units (LUs) exported via a daemon that speaks the iSCSI protocol. + +iSCSI target export agent + + + + +The iSCSI target daemon implementation. Must be one of "iet", "tgt", +or "lio". + +iSCSI target daemon implementation + + + + + +The numeric target ID. Must not be zero. + +iSCSI target ID + + + + + +The Logical Unit number (LUN) exposed to initiators. + +Logical Unit number (LUN) + + + + + +The path to the block device exposed. Some implementations allow this +to be a regular file, too. + +Block device (or file) path + + + + + + + + + + + + + +END +} + +####################################################################### + +iSCSILogicalUnit_usage() { + cat < + + +0.9 + + +Manages iSCSI targets. An iSCSI target is a collection of SCSI Logical +Units (LUs) exported via a daemon that speaks the iSCSI protocol. + +iSCSI target export agent + + + + +The iSCSI target daemon implementation. Must be one of "iet", "tgt", +or "lio". + +iSCSI target daemon implementation + + + + + +The numeric target ID. Must not be zero. + +iSCSI target ID + + + + + +The logical target name. Should follow the conventional +"iqn.yyyy-mm.<reversed domain name>[:identifier]" syntax. + +iSCSI target name + + + + + +Target parameters. A space-separated list of "name=value" pairs which +will be passed through to the iSCSI daemon's management interface. The +supported parameters are implementation dependent. + +List of iSCSI target parameters + + + + + + + + + + + + + +END +} + +####################################################################### + +iSCSITarget_usage() { + cat <