Sharing Knowledge | System Admin Articles

How to add SWAP in hp Unix

How to add SWAP in hp Unix

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

Create vg01:

pvcreate /dev/rdsk/c25t0d0
pvcreate /dev/rdsk/c25t2d0
vgcreate -s 8 -p 128 /dev/vg01 /dev/dsk/c25t0d0 /dev/dsk/c25t2d0
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

Labels: HP-UX

My Profile PhotoAbout the Author

I'm Madesh, An UNIX System Admin by Profession. I'm having Expertise in HP-UX and Linux Administration. I have done lot of work on the infrastructure Mgmt side in UNIX system administration, Hardware, Storage (EMC/ HP EVA). I'm blogging since 2010.
Follow Me On Twitter or On Facebook

0 Comments for "How to add SWAP in hp Unix"

What do you think about this Article? Add your Opinion..!

Back To Top