--- iscsi-cfg.orig 2014-07-07 21:25:11.000000000 +0200 +++ iscsi-cfg 2014-09-05 13:40:02.000000000 +0200 @@ -248,7 +248,7 @@ echo "# iscsi-ha is in manual mode - current status shown below #" echo "###########################################################" echo "Storage role: `drbdadm role all | awk -F '/' {'print $1'}` (Expected = Primary)" - echo "Replication IP: "`ip addr show xenbr1 | grep inet | awk {'print $2'}`"" + echo "Replication IP: "`ip addr show $DRBD_INTERFACE | grep inet | awk {'print $2'}`"" echo "iSCSI target: `service tgtd status` (Expected = running)" @@ -272,6 +272,11 @@ #Make sure we are in manual mode before proceeding if [ -e $IHA_STATE_PATH/manual ] # && ! check_service_run_state then + ############################### + # Read configuration parameters + ############################### + source /etc/iscsi-ha/iscsi-ha.conf + ########################## # Apply the secondary role ########################## @@ -280,7 +285,7 @@ echo "# iscsi-ha is in manual mode - current status shown below #" echo "###########################################################" echo "Storage role: `drbdadm role all | awk -F '/' {'print $1'}` (Expected = Secondary)" - echo "Replication IP: "`ip addr show xenbr1 | grep inet | awk {'print $2'}`"" + echo "Replication IP: "`ip addr show $DRBD_INTERFACE | grep inet | awk {'print $2'}`"" echo "iSCSI target: `service tgtd status` (Expected = stopped)" else red