Red Hat SATELLITE 5.3.0 RELEASE NOTES Technické informace Strana 84

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 199
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 83
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
# Install CLI command libs for ILO, Storage Array,
# Virtual Console, and Onboard Administrator
/root/instpyCmds.sh /root
host=`hostname`
# Present storage LUNs to this host and configure multipath aliases
/root/prep_stor_mgmt.sh
# Wait for newly presented GFS2 disk discovery
while [ ! -e /dev/mapper/GFS2_disk ]; do sleep 2; done
# Mount temp file system and copy off prebuilt ssh configuration
/bin/mount /dev/mapper/GFS2_disk /mnt
/bin/mkdir -m 700 /root/.ssh
/bin/rm -rf /mnt/known_hosts
/bin/cp -p /mnt/* /root/.ssh
restorecon -R -v /root/.ssh
/bin/umount /mnt
# Add fstab entry for shared GFS2 volume for VM config file storage
/bin/echo "/dev/mapper/GFS2_disk /gfs2_vol gfs2 defaults,noatime,nodiratime 0 0" >> /etc/fstab
/bin/mkdir /gfs2_vol
if [[ "$host" = "${MGMT1_NAME}" ]]
then
# Configure the other cluster member as NTP peer
/bin/echo "peer ${MGMT2_IP}" >> /etc/ntp.conf
# Shutdown the satellite VM on the temporary install node and copy its
# config file to /etc/libvirt/qemu for immediate satellite availability
/usr/bin/ssh ${MGMT2_IP} /usr/bin/virsh shutdown ${SAT_NAME}
while [[ ! `/usr/bin/ssh ${MGMT2_IP} /usr/bin/virsh list --all |grep ${SAT_NAME} |grep "shut off"`
]]; do sleep 2; done
/usr/bin/scp ${MGMT2_IP}:/etc/libvirt/qemu/${SAT_NAME}.xml /etc/libvirt/qemu/$
{SAT_NAME}.xml
www.redhat.com 84
Zobrazit stránku 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 198 199

Komentáře k této Příručce

Žádné komentáře