3 using reconf-diskless-snapshot.sh – HP Insight Cluster Management Utility User Manual

Page 75

Advertising
background image

#cmu_end_interface

#-- custom code starts here --

exit 0

This script is invoked at the end of the image creation process, when
/opt/cmu/image/<imageName>/root

is populated.

The script is invoked with the following input parameters:

CMU_RCFG_PATH

—The path to the root directory of the

image. /opt/cmu/image/<imageName>/root

CMU_RCFG_OSTYPE

—The type of operating system detected by HP Insight CMU.

CMU_RCFG_IMAGENAME

—The name of the HP Insight CMU image.

CMU_PATH

—The path to the HP Insight CMU directory. The default is /opt/cmu.

5.8.2.10.3 Using reconf-diskless-snapshot.sh

The reconf-diskless-snapshot.sh script is invoked at the end of each node registration,
when the snapshot directory of a compute node has been created. All node-specific changes
are made in this script. For example, if you have a network card that needs a static IP address,
add the commands to create the ifcfg- file in this file.

IMPORTANT:

If you need a customization file in the snapshot directory, you must also put the

name in the file /opt/cmu/image/my_diskless_image/snapshot/files.custom.

The content of the reconf-diskless-snapshot.sh script provided by HP Insight CMU is:

#!/bin/bash

#cmu_begin_interface

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

CMU_RECONF_DISKLESS_SNAPSHOT_VERSION=1

# starting with cmu version 4.2
# this script is now dedicated to custom code
# this code is executed as the last step of the creation
# of snapshot directories
#
# this script is invoked by /opt/cmu/tools/cmu_dl_post_snapshot
#
# environment variables available:
#
# CMU_RCFG_PATH = path where the root filesystem is located
# CMU_RCFG_HOSTNAME = hostname of the compute node
# CMU_RCFG_IP = mgt network ip of this compute node
# CMU_RCFG_IMAGENAME = name of this image in cmu

#cmu_end_interface

#-- custom code starts here --

exit 0

The script is invoked with the following four input parameters:

CMU_RCFG_PATH

—The path to the snapshot directory of the

node. /opt/cmu/image/<imageName>/snapshot/<nodeName>

CMU_RCFG_HOSTNAME

—The name of the node.

5.8 HP Insight CMU diskless environments

75

Advertising