beautypg.com

System hardware configuration – HP Linux Server Management Software User Manual

Page 15

background image

Advanced topics 15

System hardware configuration

The sample install_rhel4.sh script performs many hardware configuration tasks, including:

Copying all toolkit utilities from the network share to the target server

Running hardware discovery to determine server type

Obtaining server ID information from the hardware discovery file

Copying server-specific configuration script and data files from the network share

Loading drivers for storage controllers and any other devices that must be configured

Running the CONREP utility

Running the HPACUSCRIPTING utility, if needed (This action is server-specific.)

Running any other configuration utilities

Running hardware discovery to determine the boot controller

Obtaining the device node of the boot controller (This information is required for the disk-carving

portion of the operating system setup.)

Running the operating system-specific setup script

The scripting for these steps must be adapted to your server deployment process. In particular, be sure to
change the IP address and path of the NFS server to match your environment. You might also need to make

other modifications, such as adding extra configuration steps (for instance, running HPONCFG to configure

iLO) or additional servers.
The sample install_rhel4.sh script is similar to the following:

#!/bin/bash

## this script's methods work for RHEL 5

## SAMPLE. Change the NFS mount points to match your environment

export NFS_TOOLKIT_DIR=10.0.0.1:/TOOLKIT

## Internal Variables, do not modify

export TOOLKIT=/TOOLKIT

export NFS_MAIN=/mnt/nfs

export HPDISCOVERY_FILE=/TOOLKIT/hpdiscovery.xml

export SERVERNAME=

export BOOTDEVNODE=

clear

echo "*** Performing RHEL4 installation ***"

echo "Mounting NFS share"

mkdir ${NFS_MAIN}

mount -t nfs ${NFS_TOOLKIT_DIR} ${NFS_MAIN} -o ro,nolock

if [ $? != 0 ]; then

echo "Unable to mount NFS share, make sure you updated the $0 script with

the location of your NFS server."

exec /bin/bash

fi

echo "Copying over toolkit scripts and utilities from NFS share"

cd ${TOOLKIT}

cp -a ${NFS_MAIN}/scripts/* ${TOOLKIT}

This manual is related to the following products: