Showing results for 
Search instead for 
Did you mean: 

SWAP increase

Occasional Contributor

SWAP increase

How to increase primary swap space in HP-UX 11iv3.
Now the primary swap space is 16 GB and i want to increase to 32 GB. How can i do it without restarting the server.

Re: SWAP increase

You can always add filesystem swap.
Respected Contributor

Re: SWAP increase

You can't increase the primary swap space because the lvols 1(/stand),2(primary swap)and 3(/) must be contiguous.
So bettre you can create secondary swap space and activate it without restarting the server.

#lvcreate -C y -L -n /dev/vgXX

#lvchange -r n /dev/vgXX/lvnn (this is to set bad block relocation OFF)

#lvchange -c n -M n /dev/vgXX/lvnn (to set the MWC/mirror consistency oFF)

#lvlnboot -d /dev/vgXX/lvnn (make this swap space dump device)

Add the line in /etc/fstab
#vi /etc/fstab
/dev/vgXX/lvnn swap pri=1 0 0

#swapon -a (To activate the swap space).

In your case,mention size 16000
Also select any name like lvolswaps
You can mention any VG where the space available.
Also check the value of kernal parameter MAXSWAPCHUNKS;increse if needed.


Johnson Punniyalingam
Honored Contributor

Re: SWAP increase

>>>How to increase primary swap space in HP-UX 11iv3.

can be only increased by (ignite server) under advance options.

>>.How can i do it without restarting the server.

Not possible with out restarting / As mentioned on the above post, better appoarch to add swap.
Problems are common to all, but attitude makes the difference

Re: SWAP increase

better way to increase swap would be to add another lv for swap from different vg .

just create a different lv on different vg and then do swap -a and check in