User's Guide
#
# Define the defaults based on the system architecture 700 vs 800
#
is_hppa {
HARDWARE_MODEL ~ "9000/7.*" {
init _hp_disk_layout = "Logical Volume Manager (LVM) with VxFS"
} else {
# For a certain class of S800's, non-LVM takes >30 minutes to boot due
# to sequential access firmware. So make the default LVM on them no
# matter what size of disk it is.
disk[_hp_root_disk].size >= 600Mb |
HARDWARE_MODEL ~ "9000/825.*" |
HARDWARE_MODEL ~ "9000/834.*" |
HARDWARE_MODEL ~ "9000/835.*" |
HARDWARE_MODEL ~ "9000/635.*" |
HARDWARE_MODEL ~ "9000/845.*" |
HARDWARE_MODEL ~ "9000/645.*" |
HARDWARE_MODEL ~ "9000/822.*" |
HARDWARE_MODEL ~ "9000/832.*" |
HARDWARE_MODEL ~ "9000/842.*" |
HARDWARE_MODEL ~ "9000/852.*"
{
init _hp_disk_layout = "Logical Volume Manager (LVM) with VxFS"
} else {
init _hp_disk_layout = "Whole disk (not LVM) with HFS"
}
}
#
# For disks over 2Gb+300k the default must be LVM.
# Set the default here, and sanity_checks will ensure it.
#
disk[_hp_root_disk].size > 2097452K {
init _hp_disk_layout = "Logical Volume Manager (LVM) with VxFS"
}
} else {
init _hp_disk_layout = "VERITAS Volume Manager (VxVM) 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 ever tests on the value YES (later) to decide on an action, but 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?"
49