Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0 HP 9000 Computers Edition 1

270 Appendix C
Ignite-UX System Administration
Section 9: Setting Install Parameters Dynamically
Section 9: Setting Install Parameters
Dynamically
Ignite-UX can make intelligent decisions about install parameters when
it runs, based on information it reads from the target system. Instead of
forcing static values for, say, swap size or kernel parameters, the best
values for these can be determined based on the characteristics of the
target machine.
This can make configurations set up by the System Administrator more
general purpose and limit the need for multiple, slightly differing
configurations to handle minor system differences.
These decisions are specified in a C-like language and grammar unique
to Ignite-UX. The variables and syntax are documented in the
instl_adm(4) man page.
1. As an example, we’ll set the primary swap size of the target system
root disk dynamically at install time based on the size of the disk, and on
the size of the target system RAM. The algorithm will set swap to 125
MB if the disk is large (> 500 MB) and if the amount of system RAM is
greater than 64 MB. If we have a small disk we’ll make the swap very
small to maximize the amount of space available for HP-UX.
You could add the following lines to the end of the file
/var/opt/ignite/data/Rel_B.11.00/core_700_archive_cfg or
to /var/opt/ignite/config.local if you would like this to be the
default for all configurations.
# default to very minimal swap of 25MB
# unless the disk is larger than 500 MB
# and we have more than 64MB ram
(disk[_hp_root_disk].size > 500MB & memory > 64MB)
{
init _hp_pri_swap=125MB
}
else
{
init _hp_pri_swap=25MB
}