Article ID: 111813, created on Aug 5, 2011, last review on May 11, 2014

  • Applies to:
  • H-Sphere 3.4

Cause

Parallels H-Sphere does not provide support for automatic update of the hsphere-lb package on Load Balancing slave servers.

Resolution

To correctly update the package on such servers, apply one of these solutions:

  1. Uninstall the existing hsphere-lb package on all load balancing slave servers manually:

    On Linux:

    # rpm -e hsphere-lb
    

    On FreeBSD:

    # pkg_delete hsphere-lb\*
    
  2. Run the script attached to this article on all load balancing master servers to remove all hsphere-lb packages from all load balancing slave servers:

    #!/bin/sh
    #
    # uninstall_hsphere-lb_from_lb-slaves.sh
    
    
    PACKAGE="hsphere-lb"
    
    
    # All boxes in LB cluster must have the same OS version installed on.
    case "`uname`" in
    FreeBSD)
    PKG_REMOVE_CMD="pkg_delete $PACKAGE\*"
    ;;
    Linux)
    PKG_REMOVE_CMD="rpm -e $PACKAGE"
    ;;
    *)
    echo "Unknown OS"
    exit 1
    ;;
    esac
    
    
    for slaveIP in `sed -e 's/|/\n/' /hsphere/local/config/lb.map | sed -ne '2,$ p'`
    do
    echo
    echo "Uninstalling $PACKAGE from $slaveIP server... "
    ssh $slaveIP "$PKG_REMOVE_CMD"
    echo "Uninstall complete."
    echo "---------------------------------------"
    done
    

Then use the standard upgrade procedure described in the Load Balancing chapter of Parallels H-Sphere 3.5 System Administrator Guide:

# sh <updater_filename>

From the updater's command line, run the following command to the load balancing slave servers update:

    >: hspackages slaves=all 

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387 f90e90e234d2835301363089f6b828e5

Email subscription for changes to this article
Save as PDF