HP Insight Control server provisioning Capturing and Installing Linux System Images

5
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.
d. Add the Set Media Source script to mount the Media Server on /mnt/images. Include the following
parameters in the script step:
@__OPSW-Media-WinUser@@__OPSW-Media-WinPassword@@__OPSW-Media-
WinPath@#/mnt/images?noserverino
e. Add the new Mount Server Image script as created in the Mount Server Image Script section. No
parameters are required.
f. Add the new Capture Server Image script as created in the Capture Server Image Script section. Set
the Parameters field to a file and/or directory off of /mnt/images where the image file will be
stored. Any directories in the path must already be defined on the Media Server. For example,
LinuxImages/rh63normal will store the image rh63normal.tar.gz2 on the Media Server
in the LinuxImages directory.
g. Add the Reboot script to boot the server back to production.
h. Add the Wait for HP SA Agent script to wait for the server to boot back into production.
Include the following parameters in the script step:
--production --atLeast=3 --atMost=30
The OSBP is complete and ready to run on a target server. Copies of this OSBP can be created to capture different
images by replacing OSBP script Step 2e for different mount instructions or script Step 2f image name parameter.
Creating the Install Red Hat Linux Image OS Build Plan
The deployment of a captured image has more steps which can make it more complicated.
The basic steps to perform an image deployment are:
1. Boot into the LinuxPE service OS.
2. Mount the media source where the image was saved.
3. Unmount any existing mount points that would prevent the repartitioning of the disk.
4. Remove old partitions and any logical volumes/groups.
5. Create the new filesystems and partitions on the disk.
6. Mount the new filesystems for deployment.
7. Deploy the image.
8. Fixup any issues that are required such as remove old network settings and replace with new ones, and make
hostname changes.
9. Re-install the HP SA agent.
10. Reboot the server back into production.
Several of these steps can be combined into a single script, but they are presented here separately.
NOTE: The following scripts are based on a typical installation of RH6.3 using autopart. Because autopart is used, it is
possible that a third logical volume (lv_home) may be created. If it is, then additional code will need to be added to
ensure that it is mounted before capturing the OS image, and that it is correctly re-created during deployment.
Unmount Disk Partition Script
Create a new script that removes all mount points. The LinuxPE service OS automatically mounts partitions on the disk
as part of its startup process. Before the disks can be repartitioned, all mount points need to be removed. Both the