Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX System Administration Tasks: HP 9000 > Chapter 6 Managing Swap Space and Dump Areas

Configuring Primary and Secondary Swap

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

You can configure primary swap through the kernel configuration file, using either HP-UX commands or SAM. See "Reconfiguring the Kernel" in Chapter 1 for more information.

You can also do the following to manage your primary swap space:

  • Increase primary swap.

    If you are using logical volumes, you may want to first attempt to extend the disk space allocated for the primary swap logical volume using the lvextend command or SAM. However, you will only succeed if disk space (physical extents) contiguous with the existing swap space is still available, which is unlikely. You must reboot the system for the changes to take effect.

    If contiguous disk space is not available, you will need to create a new contiguous logical volume for primary swap within the root volume group, the volume group that contains the root logical volume. You do not need to designate a specific disk. For example:

    lvcreate -C y -L 48 -r n -n pswap /dev/vgroot

    After creating a logical volume that will be used as primary swap, you will need to use lvlnboot(1M):

    lvlnboot -s /dev/vgroot/pswap
  • Reduce primary swap.

    If you are using logical volumes, you can do this by reducing the size or number of logical volumes used for primary swap. If you are not using logical volumes, you can discontinue the use of a disk section for primary swap. Reducing primary swap cannot be done dynamically; you must reboot the system for reduced primary device swap changes to take effect.

NOTE: If the location of your primary swap device has been specified in the system configuration file, then if it is changed or removed from this file, you must regenerate the kernel and reboot. (The default system configuration file is /stand/system; see config(1M) for more information).

If the primary swap device is not specified in the configuration file and this file does not include swap default, then the primary swap device must be the first device specified as swap in /etc/fstab. By listing swap devices in /etc/fstab, the swap devices will automatically be enabled when the system is rebooted. In this case, if you change or remove the first swap device specified from /etc/fstab, the kernel does not need to be reconfigured.

File system swap is always secondary swap. Use SAM to configure file system swap and thereby set up the optional secondary swap.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.