beautypg.com

2 prerequisites to capturing a linux image – HP Insight Control Software for Linux User Manual

Page 112

background image

NOTE:

The Predeployment and Postdeployment scripts run in the Insight Control for Linux

RAM disk. The managed server's file system is mounted as read/write in the RAM disk under
the /mnt/target mountpoint. If your scripts manipulate any files on the managed server,
remember to specify /mnt/target in the path; otherwise you will only be manipulating the
RAM disk files.

You can use any script that is registered and copied to the repository. Insight Control for Linux
also creates the /tmp/variables.txt file on a managed system, which contains hardware
specific information about the server. The script can source this file ( . /tmp/variables.txt)
to load information determined by the RAM disk about the current operating environment.

The /tmp/variables.txt file contains shell variables of the form VARIABLE="value". The
most important variables are:

HOSTNAME

DOMAINNAME

DEVICE

IPADDR

NETMASK

NETWORK

BROADCAST

GATEWAY

GATEWAYDEV

IMAGESERVER

The script is run in a chroot environment so there is no need to configure paths relative to the
HP Insight Control for Linux environment. The Final Deployment script performs a chroot
command into the managed server's file system as a final step in the deployment operation.

10.2 Prerequisites to capturing a Linux image

Table 10-2

lists the image deployment requirements of the source and target managed systems.

Table 10-2 Source and target deployment requirements

Requirement

Item

The hardware models of the source and target managed systems must be
the same. For example, if you capture an image from an HP ProLiant BL460
G5 server, you can only deploy that image to another BL460 G5 server.

Server type

Differences in the amount of memory on the source and target managed
systems are permitted.

Memory

Differences in the number of NICs on the source and target managed
systems are permitted. However, NICs must be of the same type.

Number of NICs

Storage controllers must be of the same type on the source and target
managed systems. For example, an image captured from a managed system
using local storage cannot be deployed to a managed system using Fibre
Channel storage.

Storage controllers

During image deployment, Insight Control for Linux attempts to recreate
the original partition scheme on the destination system. If the destination
system requires a different disk layout, you can use the Partition Wizard
to specify the disk partitioning scheme on the target system. For more
information about the Partition Wizard, see

Section 10.6 (page 121)

.

Disk partition layout

The target system must have enough space to hold the image.

Disk space

112

Capturing and deploying Linux images