4
# Description: wrapper of OCF RA db2, based on original heartbeat RA.
5
# See OCF RA db2 for more information.
7
# Author: Xun Sun <xunsun@cn.ibm.com>
8
# Support: linux-ha@lists.linux-ha.org
9
# License: GNU General Public License (GPL)
10
# Copyright: (C) 2005 International Business Machines, Inc.
12
# An example usage in /etc/ha.d/haresources:
13
# node1 10.0.0.170 db2::db2inst1
15
# See usage() function below for more details...
18
. /etc/ha.d/resource.d//hto-mapfuncs
21
echo "usage: $0 db2-database-owner-id $LEGAL_ACTIONS"
30
OCF_RESOURCE_INSTANCE=${OCF_TYPE}_$1
31
export OCF_TYPE OCF_RESOURCE_INSTANCE
33
OCF_RESKEY_instance=$1; export OCF_RESKEY_instance