HP-UX : How To Create Swap – Command Line

To create swap, we need a contiguous space on a disk / LUN.

Create vg01:

pvcreate /dev/rdsk/c12t0d0
pvcreate /dev/rdsk/c12t2d0
vgcreate -s 8 -p 128 /dev/vg01 /dev/dsk/c12t0d0 /dev/dsk/c12t2d0
vgchange -a y /dev/vg01

lvcreate -C y -L 16384 -n lvswap /dev/vg01

/usr/sbin/swapon -f -p 3  /dev/vg01/lvswap

add to /etc/fstab:

/dev/vg01/lvswap … swap pri=3 0 0

Incoming search terms:

  • add swap hp-ux
  • adding swap hp ux
  • create swap hpux
  • how to create swap in hp-UX?
  • how to extend swap on hp-ux
  • hp-ux add swap device
  • hp-ux resize swap
  • swapon dev hp-ux
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


nine − 4 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>