
7 Dynamic Addition and Removal of Hosts
As workloads ramp up and the demand for CPU cycles increases, additional hosts may be
added to bear the burden of additional VMs that can provide added compute power. The
scripts instRHELH.sh and instRHEVH.sh may be used to create a new host of each type.
7.1 RHEL / KVM Host Addition
The instRHELH.sh script requires a single passed parameter, the server blade profile name
assigned in the Virtual Connect interface.
./instRHELH.sh rhelh-02
The script:
• creates the cobbler system entry
• presents storage to the host
• adds the new NFS export stanza to the cluster configuration file
• sets the boot order to boot PXE first
• registers the host with satellite after install
• sets the boot order to boot PXE last
and requires the user to add the newly created RHEL host in RHEV-M.
instRHELH.sh
#!/bin/bash
# This script will install and prepare a system to be a RHEL host
# Source env vars
if [[ -x varDefs.sh ]] ; then
source varDefs.sh
elif [[ -x /root/varDefs.sh ]] ; then
source /root/varDefs.sh
elif [[ -x /root/resources/varDefs.sh ]] ; then
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]] ; then
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
# The blade profile must be passed
if [[ $# -ne 1 ]]
then
echo 'Usage - $0 <HP Virtual Connect profile name>'
exit -1
else
pname=$1
fi
www.redhat.com 126
Comentarios a estos manuales