Red Hat SATELLITE 5.3.0 RELEASE NOTES Informações Técnicas Página 131

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 199
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 130
7.3 Host Removal
Subsequently, remHost.sh is used to remove a host of either type from the RHEV-M
configuration.
./remHost.sh rhevh-02
remHost.sh
#!/bin/bash
# This script requires a host (hypervisor) name (also the profile name) as a passed parameter.
# It will remove a host from the cluster configuration, cobbler, and storage.
# It assumes that the host targeted for removal has been removed from RHEV-M.
# 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 host name must be passed
if [[ $# -ne 1 ]]
then
echo 'Usage - $0 <host name for removal>'
exit -1
else
host=$1
fi
HOSTS=`host -l ${FQD} ${SAT_FQDN} |grep $host | cut -f1 -d'.' | sort`
if [[ ! ${HOSTS} ]]
then
echo "No entry located for "$host
exit -2
fi
# Remove cobbler system entry
echo -e "\nRemoving cobbler system entry ...\n"
hostFQDN=`cobbler system list |grep ${host}`
cobbler system delete --name=${hostFQDN}
cobbler sync
# Remove the NFS export resource from the cluster configuration
echo -e "\nRemoving cluster configuration entries ...\n"
131 www.redhat.com
Vista de página 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 198 199

Comentários a estes Manuais

Sem comentários