HP Insight Control server provisioning Capturing and Installing Linux System Images

12
IMPORTANT: Do not mount a swap partition. Reviewing the target server’s /etc/fstab file will provide information on
what partitions are swap.
NOTE: HP Smart Array Controllers are listed as device /dev/cciss/cXdXpX under SLES 11 SP3. However when the same
machine is booted into ICsp Linux preboot environment, they get discovered as /dev/sdX (X indicates whether it is first
device or second device etc.). Since the Mount script runs under Linux preboot environment, it needs to mount /dev/sdX
and not /dev/cciss/cXdXpX. When in doubt, boot the target machine into ICsp Linux preboot environment to verify the
device enumeration.
To create a new script to mount the server image:
1. On the IC server provisioning appliance, create a new script of Unix type and name it for the appropriate
function.
2. Create the script content, or copy and paste the script content from an external application. For example for a
standard SLES 11 SP3 installation, the script would contain:
#!/bin/sh
mkdir -p /mnt/target
mount /dev/sda3 /mnt/target
3. Click OK to save the script.
Capture Server Image Script
Create a new script that captures the target server’s image and transfers it to a location on the Media Server.
To create a new script to mount the server image:
1. On the IC server provisioning appliance, create a new script of Unix type and name it for the appropriate
function.
2. Create the script content or copy and paste the script content from an external application. For example, the
script would contain:
#!/bin/sh
mkdir p /mnt/images/LinuxImages
cd /mnt/target
tar jcf /mnt/images/LinuxImages/$1.tar.bz2 .
exit $?
where the image name will be passed in as a parameter to the script step and the Media Server is mounted on
/mnt/images.
3. Click OK to save the script.
Create the Capture SUSE Linux Image OS Build Plan
Once the scripts from the Mount Server Image Script and Capture Server Image Script sections have been created, the
Linux capture OSBP can be created.
To create a Capture SUSE Linux System Image OSBP:
1. Make a copy of the ProLiant HW - Boot Linux Service OS OSBP by selecting Actions and Save As from the OS
Build Plan view.
2. Edit the new OS Build Plan with the following:
a. Keep the first step, Check iLO Service.
b. Modify the Boot step to ensure that the PXE LinuxPE service OS is booted by adding --method
network parameter to the Parameters field. It is possible to use the Intelligent Provisioning
Environment as well, but that would require additional modifications to some of these scripts to
ensure that the VID doesn’t get modified or included in the image capture.
c. Keep the third step, Wait for HP SA Agent.