If you are not expected to create separate logical volumes for file systems like /usr and /var then the sizes are the remaining space up to 1200MB if the size of the disk is less than 8192MB or the remaining space up to 1200MB plus the size of _hp_pri_swap32.

The root file system cannot have bad block relocation on and must be contiguous; therefore contiguous_allocation is set to true, and bad_block_relocation is set to false.

logical_volume { mount_point = "/"

_hp_disk_layout == "Logical Volume Manager (LVM) with HFS" { usage = HFS

blksize = _hp_HFS_blksize fragsize = _hp_HFS_fragsize

} else {

usage = VxFS

blksize = _hp_VxFS_blksize

}

"Create separate volumes (/usr, /var, ...)" { disk[_hp_root_disk].size < 8192Mb {

size = 140Mb } else {

size = 200Mb

}

} else {

disk[_hp_root_disk].size < 8192Mb { size = remaining 1200Mb

} else {

size = remaining 1200Mb + _hp_pri_swap

}

 

 

}

=

true

contiguous_allocation

bad_block_relocate

=

false

}

 

 

Next, you define primary swap by setting the usage to be 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 { usage = SWAP_DUMP mount_point = "primary"

#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

}

32HP-UX B.11.11 may not actually fit into the amount of space defined here; the impacts statements for software defined may also force the sizes of file systems to be adjusted.

55