Red Hat SATELLITE 5.3.0 RELEASE NOTES Informacje Techniczne Strona 107

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 199
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 106
) >> /var/log/rc.local2.out 2>&1
The instMgmt2.sh script:
adds cobbler system entry for system
sets boot order so PXE is first
powers on/reset blade
waits before setting PXE boot to last
#!/bin/bash
# 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
#prepare cobbler to boot this node
cobbler system add --name=$MGMT2_NAME --profile=$MGMT_PROFILE --mac=$MGMT2_MAC
--ip=$MGMT2_IP --hostname=$MGMT2_NAME --ksmeta="NAME=$MGMT2_NAME
NETIP=$MGMT2_IP ICIP=$MGMT2_ICIP ICNAME=$MGMT2_IC" –
kopts="console=ttyS0,115200 nostorage"
cobbler sync
# set to boot PXE
while [[ ! `ilocommand -i //${LOGIN}:${MGMT2_ILO_PW}@${MGMT2_ILO} set
/system1/bootconfig1/bootsource5 bootorder=1 | grep status=0` ]]; do sleep 2; done
#reset blade, power up also in case it was powered off
ilocommand -i //${LOGIN}:${MGMT2_ILO_PW}@${MGMT2_ILO} power reset
ilocommand -i //${LOGIN}:${MGMT2_ILO_PW}@${MGMT2_ILO} power on
#wait a reasonable amount of time and change the boot order to make network last
sleep 240
while [[ ! `ilocommand -i //${LOGIN}:${MGMT2_ILO_PW}@${MGMT2_ILO} set
/system1/bootconfig1/bootsource5 bootorder=5 | grep status=0` ]]; do sleep 2; done
Because the same kickstart used for the first management system is used on the second, the
same activities occur during install. Upon reboot however, the preconfigured activities branch
significantly depending on the host upon which they execute. The script is the same and is
referenced in the previous section. The actions taken by the second node:
install python based expect commands
set presentations and aliases of storage volumes for the system
107 www.redhat.com
Przeglądanie stron 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 198 199

Komentarze do niniejszej Instrukcji

Brak uwag