HP Insight Cluster Management Utility User Manual

Page 152

Advertising
background image

8.7.2 Cloning an image with Intel Xeon Phi cards configured with independent IP
addresses

The Intel Xeon Phi host names and IP addresses must be determined and configured in the /etc/
hosts

file on the HP Insight CMU management node for a successful post-cloning process. For

more details on this configuration, see

Section 8.7.1 (page 151)

.

The golden node targeted for backup must be configured with the network bridge and with the
Intel Xeon Phi cards already configured with their independent host names and IP addresses. The
cloning process duplicates this image to the other nodes, and the post-cloning process updates the
appropriate files with the unique Intel Xeon Phi host names and IP addresses.

The following is an example of the contents of the reconf.sh script to be configured in the image
directory of an HP Insight CMU logical group after a backup:

#!/bin/bash

#cmu_begin_interface

#do not change anything in this section
#add custom code after this section

CMU_RECONF_VERSION=1

# starting with cmu version 4.2
# this script is now dedicated to custom code and is invoked by:
#
# cmu_post_cloning stored on the mgt node into
# /opt/cmu/ntbt/rp/opt/cmu/tools/
#
# all code below is therefore executed as the last step of the cloning process
# into the netboot environnement. this will allow seamless upgrade to cmuv4.2+
# and will avoid support issues.
#
# environment variables available:
#
# CMU_RCFG_PATH = path where the root filesystem is currently mounted
# CMU_RCFG_HOSTNAME = hostname of the compute node
# CMU_RCFG_DOMAIN = dns domainname of the compute node
# CMU_RCFG_IP = mgt network ip of this compute node
# CMU_RCFG_NTMSK = net mask

#cmu_end_interface

#-- custom code starts here --
#
# MIC config support
#
# This code assumes:
# - 2 MICs are present;
# - MIC hostnames are "${CMU_RCFG_HOSTNAME}-mic{0,1}";
# - MIC IP addresses are in /etc/hosts;
# - eth0 is the bridge
#
# HARDCODED VARIABLES
NETWORK_MTU=1500
NETWORK_DEVICE=eth0
SHORT_NETMASK=16

BRIDGE_CONF="${CMU_RCFG_PATH}/etc/sysconfig/network-scripts/ifcfg-br0"
if [ -f "$BRIDGE_CONF" ]; then
# configure bridge correctly for this node
# CMU may try to configure this file
# let's move it to /root and install the correct file
NIC_CONF="${CMU_RCFG_PATH}/etc/sysconfig/network-scripts/ifcfg-${NETWORK_DEVICE}"
mv -f $NIC_CONF ${CMU_RCFG_PATH}/root
echo DEVICE=${NETWORK_DEVICE} >> $NIC_CONF
echo ONBOOT=yes >> $NIC_CONF
echo BRIDGE=br0 >> $NIC_CONF
echo MTU=${NETWORK_MTU} >> $NIC_CONF

# let's also install the bridge config file
mv -f $BRIDGE_CONF ${CMU_RCFG_PATH}/root
echo DEVICE=br0 >> $BRIDGE_CONF
echo TYPE=Bridge >> $BRIDGE_CONF
echo BOOTPROTO=static >> $BRIDGE_CONF
echo ONBOOT=yes >> $BRIDGE_CONF

152

Advanced topics

Advertising