1757200 Members
2824 Online
108858 Solutions
New Discussion юеВ

Second swap area

 
SOLVED
Go to solution
Gustavo Souza Lima
Frequent Advisor

Second swap area

I need to create a second swap area on my HPUX 11iv1 and I would like to know which kernel parameters I must change.

My old swap area has 8Gb and my new area needs to have 24GB.
5 REPLIES 5
Coolmar
Esteemed Contributor

Re: Second swap area

Hi, do the following:

# lvcreate -C y -r n -L 24576 -n lvolx /dev/vg0x

# swapon -p 0 /dev/vg01/lvol1

Then add your new swap device to your /etc/fstab

Also note, that with swapon -p 0 means that this new swap will take priority over your first one. You can put the priority to whatever you like.
Peter Godron
Honored Contributor

Re: Second swap area

RAC_1
Honored Contributor
Solution

Re: Second swap area

maxswapchunks - Max swap space configured.
Also check swchunk - single swapchunk size
There is no substitute to HARDWORK
Rita C Workman
Honored Contributor

Re: Second swap area

Hi Gustavo,

Go to the top line here where it says SEARCH: and type....'add swap" or "additional swap" or "configure swap" and you will find a plethora of instructions on doing this !

Tip: Always add swap in equal increments. So you have 8gb set up. To get to 24Gb, add two more lvol's for swap at 8Gb each.
That is if your using disk swap and not file system swap. I prefer disk myself.

Kindest Rgrds,
Rita
DCE
Honored Contributor

Re: Second swap area



the kernel parameters that affect max swap size are swchunk and maxswapchunks

If are going to change them, make them larger than you need, so you will not have modify the kernel again