Setup heartbeat bdii
From PDP/Grid Wiki
Jump to navigationJump to search#!/bin/bash # # run on all nodes in a cluster-to-be # heartbeat_bdii=/usr/lib/ocf/resource.d/heartbeat/bdii heartbeat_bdii_source=heartbeat_bdii sysconfig_bdii=/etc/sysconfig/bdii if [ $# -ne 1 ]; then echo "usage: $0 ipaddress" exit 1 fi IPADDR=$1 # # put the heartbeat bdii startup in place # if [ ! -e $heartbeat_bdii ]; then if [ -e $heartbeat_bdii_source ]; then cp $heartbeat_bdii_source $heartbeat_bdii else echo "bdii heartbeat startup script not found. fix me." exit 1 fi fi # # patch the bdii sysconfig for the right service ipaddress (used in bdii startup) # sed -e '/^BDII_IP=/d' $sysconfig_bdii echo "BDII_IP=${IPADDR}" >> $sysconfig_bdii