Forum

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/13/d467848118/htdocs/templates/cleanout/vertex/responsive/responsive_mobile_menu.php on line 158
Welcome, Guest
Username: Password: Remember me
This is the optional category header for the Suggestion Box.
  • Page:
  • 1

TOPIC:

Patches for HA-Lizard and iSCSI-HA 2 years 4 months ago #2650

  • Frank Adaemmer
  • Frank Adaemmer's Avatar Topic Author
  • Offline
  • Posts: 2
Hello HA-Lizard team,

here my current patches against ha-lizard 2.3.1 and iscsi-ha 2.2.5

Summary:

  • increase ping timeout. We had some issues here

  • Fix VAPP_LIST bug

  • Update iSCSI-HA to work with DRBD9 (currently testing)


  • --- /etc/ha-lizard/ha-lizard.func
    +++ /etc/ha-lizard/ha-lizard.func
    @@ -322,7 +322,7 @@ function ha_disabled ()
    
     function check_xapi ()
     {
    -	ping -c 1 -w 1 $1 1> /dev/null
    +	ping -c 1 -w 2 $1 1> /dev/null
     	if [ $? -eq 0 ]
     	then
     		XAPI_RESP=$(curl --silent $1 | grep -c -E "Citrix|XCP")
    @@ -417,7 +417,7 @@ function vm_mon ()
       case $OP_MODE in
     	1)
     		log $FUNCNAME "ha-lizard in operating mode 1 - managing pool appliances"
    -		VAPP_LIST=$($XE appliance-list | grep -e uuid | $AWK -F ": " '{print $2}')
    +		VAPP_LIST=($($XE appliance-list | grep -e uuid | $AWK -F ": " '{print $2}'))
     		VAPP_COUNT=${#VAPP_LIST[@]}
     		log $FUNCNAME "$VAPP_COUNT vapps found: ${VAPP_LIST[*]}"
    
    @@ -1495,7 +1495,7 @@ function check_quorum ()
    
     	for i in ${IP_LIST[@]}
     	do
    -		ping -c 1 -w 1 $i > /dev/null
    +		ping -c 1 -w 2 $i > /dev/null
     		if [ $? -eq 0 ]
     		then
     			log $FUNCNAME "Host IP: $i Response = OK"
    @@ -1516,7 +1516,7 @@ function check_quorum ()
     		for j in ${FENCE_HEURISTICS_IPS[@]}
     		do
     			H_COUNT=$(($H_COUNT + 1))
    -			ping -c 1 -w 1 $j > /dev/null
    +			ping -c 1 -w 2 $j > /dev/null
     			if [ $? -eq 0 ]
     			then
     				log $FUNCNAME "Heuristic IP: $j Response = OK"

    --- /etc/iscsi-ha/scripts/drbd-sb-tool
    +++ /etc/iscsi-ha/scripts/drbd-sb-tool
    @@ -171,7 +171,7 @@ do
    			drbdadm disconnect ${RESOURCES_ARRAY[$DRBD_RESOURCE_SELECT]} 2> /dev/null
    		fi
    		drbdadm secondary ${RESOURCES_ARRAY[$DRBD_RESOURCE_SELECT]} 2> /dev/null
    -		drbdadm -- --discard-my-data connect ${RESOURCES_ARRAY[$DRBD_RESOURCE_SELECT]}
    +		drbdadm connect --discard-my-data ${RESOURCES_ARRAY[$DRBD_RESOURCE_SELECT]}
    		RETVAL=$?
    		if [ $RETVAL -eq 0 ]
    		then

    Please Log in or Create an account to join the conversation.

    Patches for HA-Lizard and iSCSI-HA 2 years 4 months ago #2658

    • Salvatore Costantino
    • Salvatore Costantino's Avatar
    • Offline
    • Posts: 725
    Hello Frank - thank you for the patches. I will review and incorporate into our next release.

    Please Log in or Create an account to join the conversation.

    Patches for HA-Lizard and iSCSI-HA 1 year 10 months ago #2825

    In my old Xenserver 6.5SP1 pool I still have the original version of /etc/ha-lizard/ha-lizard.func.

    Should I update it in order to have the function "VAPP_LIST" corrected?

    BR Andreas

    Please Log in or Create an account to join the conversation.

    Patches for HA-Lizard and iSCSI-HA 7 months 2 weeks ago #3093

    • Salvatore Costantino
    • Salvatore Costantino's Avatar
    • Offline
    • Posts: 725
    Hello Frank - your patches have been incorporated into ha-lizard 2.3.2 and iscsi-ha 2.2.6 which are in testing now.

    Thank you

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1