User's Guide

_hp_sec_swap help_text "Secondary Swap space (KB)"
From here we are going to be looking at the disk layouts. Some parts of the disk layout have
changed significantly for HP-UX 11i v3.
#######################################################################
# Determine disk layout for volumes and file systems.
#
You should have noticed by now that for HP-UX 11i v3, all of the tests related to legacy HP9000
systems have been removed. None of these systems can run HP-UX 11i v3 (they couldn’t run HP-UX
HP-UX 11i v2 either) so all of the tests are gone.
The next example gives _hp_disk_layout a value of disk [_hp_root_disk].model. If the
value of that expression changes, it causes the value of _hp_disk_layout to be re-evaluated.
Doing this makes good sense in the context of this configuration file, because if you change the
root disk, you may need to re-evaluate what the disk configuration is. After that, we set the default
disk layout to be LVM with VxFS.
# This next statement is used only to establish an effects relationship
# between the _hp_disk_layout variable and _hp_root_disk. The value is
# overwritten below.
init _hp_disk_layout = disk[_hp_root_disk].model
# Default disk layout
init _hp_disk_layout = "Logical Volume Manager (LVM) with VxFS"
The enumeration _hp_root_grp_striped in the following example is a perfect example of how
to ask a yes/no or Boolean question using the Additional button on the Basic tab in the Ignite-UX
GUI. The first step is to define the variable as an enum, then give it two values, an initial value
(with the init keyword so the user is allowed to change it using the Ignite-UX GUI), and some help
text.
Without defining _hp_root_grp_striped as an enum, the user would be able to select YES or
NO on the Additional button, or also enter any value. In this case, it does not matter because the
configuration only tests on the value YES (later) to decide on an action. If you could enter a lower-
case "yes", the tests would fail; hence the enumeration type is used.
# Boolean describing whether or not the root disk group
# will be striped
#
enum _hp_root_grp_striped
_hp_root_grp_striped = { "YES", "NO" }
init _hp_root_grp_striped = "NO"
_hp_root_grp_striped help_text "Stripe root VG disks?"
The expression in the next example defines a use model. Use models are not variables; they are
true / false expressions that are used to control how things are done
44
. Like variables, use
models can be viewed using the Additional button of the Basic tab in the Ignite-UX GUI. In the
44
Unfortunately, variables cannot have effects relationships with use models or software selections.
72