HP XC System Software Installation Guide Version 3.0
The component files are as follows:
• /opt/hptc/systemimager/etc/make_partitions.sh
Identifies the client disk type and size and creates the default partition table. When changing the default
sizes of partitions or swap space, you will edit this file to effect the change. Read the comments in the
file for more details. See the example in “Example 1: Changing Default Partition Sizes and Swap Space
for All Client Nodes” (page 112) for information about how to make such a change.
On Opteron or Xeon systems, the / (root), /boot, and /var partitions are created. On Itanium systems,
the /, /boot/efi, and /var partitions are created.
• /opt/hptc/systemimager/etc/make_filesystems.sh
Makes file systems of type ext3 and swap space on the partitions that were made by the
make_partitions.sh file. No user modifications to this file are required.
• /opt/hptc/systemimager/etc/make_fstab.sh
Creates a client disk device-specific /etc/fstab file on the client node. No user modifications to this
file are required.
• /opt/hptc/systemimager/etc/make_umount.sh
Unmounts the file systems that were created and mounted in the make_filesystems.sh file. File
systems are unmounted before the reboot of the client node, signalling the completion of the
autoinstallation imaging operation.
Each component file is a protected configuration file with respect to an RPM upgrade of the package that
delivers these files. What this means is that any customizations made to these files will be preserved if the
package delivering these files is upgraded through an rpm -U operation. Each customized file is saved to
an .rpmsave file extension so that the original file and associated customizations are preserved when new
versions of the file are delivered.
Example 1: Changing Default Partition Sizes and Swap Space for All Client Nodes
This example modifies the default partition sizes and the available swap space for all client nodes. The size
of the / (root) partition is increased to 70 percent of available disk space (after accounting for swap space),
the /var partition is decreased to 29 percent of available disk space (after accounting for swap space),
and the amount of swap space is changed to be 1.5 times the amount of physical memory.
1. Use the text editor of your choice to open the
/opt/hptc/systemimager/etc/make_partitions.sh file and search for the block of text that
looks like this:
BOOT_PERCENTAGE=".01"
ROOT_PERCENTAGE=".60"
VAR_PERCENTAGE=".39"
2. Make the following changes to alter the partition sizes as a percentage of the available disk space:
BOOT_PERCENTAGE=".01"
ROOT_PERCENTAGE=".70"
VAR_PERCENTAGE=".29"
3. Search for the block of text that looks like this:
# Configure swap space as a percentage of memory. Default is 1X.
# At the MINIMUM, we need 4GB of swap space for 'tmpfs' staging
# for future multicast (flamethrower) imaging. However, 6GB is
# recommended, since the size of the image is likely to grow over time.
SWAP_MIN="6144"
#
# The maximum swap size we'll configure, regardless of memory size
#
SWAP_MAX="16384"
#
# The percentage of memory we'll configure as swap space
# Default is 1 (100%).
#
MEM_PERCENTAGE="1"
112 Customizing Client Node Disks