Red Hat SATELLITE 5.3.0 RELEASE NOTES Información técnica Pagina 117

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 116
IPnum=`/root/resources/GetAvailRhevh.sh | awk '{print $2}'`
# Delete any previously defined cobbler system entry
if [[ `cobbler system list | grep ${IPname}` ]]
then
cobbler system delete --name=${IPname}
fi
# Create cobbler system entry
echo -e "\nCreating cobbler system entry ...\n"
cobbler system add --name=${IPname} --profile=${RHEVH_PROFILE} --mac=${rawMAC//-/:}
--ip=${IPnum} --hostname=${IPname} --dns-name=${IPname} --kopts="console=ttyS0,115200
nostorage"
cobbler sync
# Remove semaphore
/bin/rm /tmp/AvailNameIP
# Present storage to host
echo -e "\nPresenting storage to host ${pname} ...\n"
/root/resources/prep_stor_host.sh ${pname}
# Update cluster configuration for NFS presentation
# create a semaphore for unique client names
while [[ -e /tmp/UpdateNFSClient ]] ; do sleep 1; done
touch /tmp/UpdateNFSClient
#Get next available client name
nfsClient=`/root/resources/GetAvailNFSClient.sh`
# add the export to the cluster configuration
addnfsexport --ricciroot=/.ricci -H ${MGMT1_IP} rhev-nfs-fs ${nfsClient} ${IPname} rw 1
# release semaphore
/bin/rm /tmp/UpdateNFSClient
# Get the count of systems registered with this name (should be 0)
initReg=`/root/resources/listRegSystems_infra.py | grep -c ${IPname}`
echo -e "\nNumber of systems registered with this name: ${initReg} ...\n"
# Change system boot order to boot network (PXE) first
echo -e "\nChanging system boot order to boot network (PXE) first ...\n"
while [[ ! `ilocommand -i //${LOGIN}:${ILO_PW}@${iloIP} set
/system1/bootconfig1/bootsource5 bootorder=1 | grep status=0` ]]; do sleep 10; done
# Reset server blade (power on in case blade was off)
echo -e "\nResetting server blade (power on in case blade was off) ...\n"
ilocommand -i //${LOGIN}:${ILO_PW}@${iloIP} power reset
ilocommand -i //${LOGIN}:${ILO_PW}@${iloIP} power on
117 www.redhat.com
Vista de pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 198 199

Comentarios a estos manuales

Sin comentarios