Operating System - HP-UX
1837860 Members
3428 Online
110122 Solutions
New Discussion

Re: Need to increase swap space - Help

 
mr. N.V. (Nitin) Mehta
Occasional Advisor

Need to increase swap space - Help

I have HP9000 K380 with HP-UX 11.0 32 bit.
The current swap information:
using swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 116 908 11% 0 - 1 /dev/vg00/lvol2
dev 976 117 859 12% 0 - 1 /dev/vg00/swap1
reserve - 1741 -1741
total 2000 1974 26 99% - 0 -

Question:
How can I increase size on /dev/vg00/swap1.
what commands and in which order?
Nitin Mehta
3 REPLIES 3
MARTINACHE
Respected Contributor

Re: Need to increase swap space - Help

Why do you want to increase swap1 ?

Just go in SAM and add a new logical volume for swap on the same VG.
Patrice MARTINACHE
CHRIS_ANORUO
Honored Contributor

Re: Need to increase swap space - Help

Your device swap spaces are not 50% yet, they are not used up as shown. You have to activate swapmem_on=1 from the kernel parameter configuration in SAM. This will give you pseudo swap of 75% of Physical Memory size.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Stefan Farrelly
Honored Contributor

Re: Need to increase swap space - Help


You cant increase a swap area thats currently in use, as is swap1. You can either;
1. disable swap1. reboot. increase swap1 (lvextend). re-enable swap1, activate it (swapon -a)
2. Without any reboots add a new swap area. create the lvol as normal, then do swapon -a to activate it.

Why would you want to increase swap1 though ? its barely used, as is primary swap (lvol2) ?
Im from Palmerston North, New Zealand, but somehow ended up in London...