
EOF
# Mount the share GFS2 storage on both nodes and make dir for VM config files
/usr/bin/ssh ${MGMT1_IP} /bin/mount -t gfs2 /dev/mapper/GFS2_disk /gfs2_vol/
/bin/mount -t gfs2 /dev/mapper/GFS2_disk /gfs2_vol/
/bin/mkdir -m 666 -p /gfs2_vol/vmconfig
# Copy JON, MRG, and RHEV-M VM config files from mgmt1 to GFS2 shared storage
/usr/bin/ssh ${MGMT1_IP} /bin/cp /etc/libvirt/qemu/*.xml /gfs2_vol/vmconfig
/usr/bin/ssh ${MGMT1_IP} /bin/mv /etc/libvirt/qemu/*.xml /etc/libvirt
# Restart libvirtd service to remove libvirt knowledge of VMs
/usr/bin/ssh ${MGMT1_IP} /sbin/service libvirtd restart
# Start rgmanager service once VM config files are in place on GFS2 vol
/usr/bin/ssh ${MGMT1_IP} /sbin/service rgmanager start
/sbin/service rgmanager start
fi
/bin/mv /etc/rc.d/rc.local /etc/rc.d/rc.local.install
# Restore original rc.local
/bin/mv /etc/rc.d/rc.local.shipped /etc/rc.d/rc.local
) >> /var/log/rc.local.out 2>&1
a) instpyCmds.sh is described in Section 6.2.1
b) prep_stor_mgmt.sh:
• defines alias for each FC port on the storage array
• presents storage array LUNs to this host
• defines multipath configuration
#!/bin/bash
# source env vars
if [[ -x varDefs.sh ]] ; then
echo varDefs.sh
source varDefs.sh
elif [[ -x /root/varDefs.sh ]] ; then
echo /root/varDefs.sh
source /root/varDefs.sh
elif [[ -x /root/resources/varDefs.sh ]] ; then
echo /root/resources/varDefs.sh
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]] ; then
echo /root/distro/resources/varDefs.sh
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
87 www.redhat.com
Comentarios a estos manuales