
_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
#######################################################################
#Determine disk layout for volumes and file systems.
You should have noticed by now that for
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
Doing this makes good sense in the context of this configuration file, because if you change the root disk, you may need to
#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
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 done44. Like variables, use models can be viewed using the Additional button of the Basic tab in the
44Unfortunately, variables cannot have effects relationships with use models or software selections.
72