/etc/ha.d/resource.d/ServeRAID is in heartbeat 1:3.0.6-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 35 36 37 38 39 40 | #!/bin/sh
#
#
# Description: wrapper of OCF RA ServeRAID, based on original heartbeat RA.
# See OCF RA ServeRAID for more information.
#
# Author: Xun Sun <xunsun@cn.ibm.com>
# Support: linux-ha@lists.linux-ha.org
# License: GNU General Public License (GPL)
# Copyright: (C) 2005 International Business Machines
#
# usage: ./ServeRAID <adapter> <MergeGroup#> {start|stop|status}
#
#<adapter>: Adapter number of the ServeRAID adapter
#<MergeGroup#>: MergeGroup # of the logical drive under consideration.
#
# An example usage in /etc/ha.d/haresources:
# node1 10.0.0.170 ServeRAID::1::1
# Source function library.
. /etc/ha.d/resource.d//hto-mapfuncs
usage() {
echo "usage: $0 <serveraid#> <sharedmergegroup#> $LEGAL_ACTIONS"
exit 1
}
if [ $# != 3 ]; then
usage
fi
OCF_TYPE=ServeRAID
OCF_RESOURCE_INSTANCE=${OCF_TYPE}_$1
export OCF_TYPE OCF_RESOURCE_INSTANCE
OCF_RESKEY_serveraid=$1
OCF_RESKEY_mergegroup=$2
export OCF_RESKEY_mergegroup OCF_RESKEY_serveraid
ra_execocf $3
|