#!/bin/sh # # # Description: wrapper of OCF RA LVM, based on original heartbeat RA. # See OCF RA LVM for more information. # # Author: Xun Sun <xunsun@cn.ibm.com> # Support: linux-ha@lists.linux-ha.org # License: GNU Lesser General Public License (LGPL) # Copyright: (C) 2005 International Business Machines, Inc. # # # An example usage in /etc/ha.d/haresources: # node1 10.0.0.170 ServeRAID::1::1 LVM::myvolname # # See usage() function below for more details... # . /etc/ha.d/resource.d//hto-mapfuncs usage() { echo "usage: $0 <LVM-configuration file> $LEGAL_ACTIONS" exit 1 } if [ $# != 2 ]; then usage fi OCF_TYPE=LVM OCF_RESOURCE_INSTANCE=${OCF_TYPE} export OCF_TYPE OCF_RESOURCE_INSTANCE OCF_RESKEY_volgrpname=$1; export OCF_RESKEY_volgrpname ra_execocf $2