User's Guide
Next, primary swap is defined. T
he usage has been set to swap and dump. The mount_point is
set to "primary". The vgdisk[0] value enables you to specify that this logical volume be placed
onto the first disk in the root volume group. Refer to instl_adm(4) for more information on the
vgdisk keyword.
Next are the usual settings for primary swap of contiguous allocation and disabled bad block
relocation. The size must be at least _hp_min_swap and up to _hp_pri_swap depending on
the size of the disk.
logical_volume {
mount_point = "primary"
usage = SWAP_DUMP
# Map it to the root disk to ensure it is considered primary
# without this the secondary swap gets sorted first and considered
# primary.
vgdisk[0]
contiguous_allocation = true
bad_block_relocate = false
size = _hp_min_swap | remaining | _hp_pri_swap
}
You looked at _hp_sec_swap earlier in the configuration file to see how it was defined. The only
place you can give it a value is by using the Additional button on the Basic tab in the Ignite-UX
GUI. You can define secondary swap using the File system tab, but you must select the disk to
avoid having it on the same disk as primary swap. The configuration enables you to have
secondary swap/dump. You only have to care about its size, not placement.
So if the variable _hp_sec_swap is >0MB, swap/dump space is created. If there is more than
one disk in the root volume group, this swap/dump space is created on the second disk. If you
provide equal-sized primary and secondary swap, it creates an interleaved swap setup.
Set this swap space to be also used as a dump space (contiguous allocation and bad block
relocation off), and lastly set the size to be _hp_sec_swap. Secondary swap, if not used for
dump, does not require contiguous allocation, and bad_block _relocate can be set to true.
_hp_sec_swap > 0Mb {
logical_volume {
mount_point = "secondary"
usage = SWAP_DUMP
(num_vgdisks > 1)
{
# This maps the secondary swap space to
# the second disk when one is defined.
vgdisk[1]
}
contiguous_allocation = true # allows use as dump
bad_block_relocate = false # allows use as dump
size = _hp_sec_swap
}
}
There is one slight difference here compared to the other logical volume definitions we’ve seen so
far. For HP9000 systems of the disk layout LVM with HFS, /stand must be an HFS file system. The
HP9000 boot loader can’t read a VxFS file system, so it must be an HFS file system (otherwise the
78