1825678 Members
3582 Online
109686 Solutions
New Discussion

SWAP SPACE

 
SOLVED
Go to solution
David Dangerfield_1
Frequent Advisor

SWAP SPACE

I am trying to add swap. I was able to add some but needed to add more per the DBA request. Once I added the last swap needed and tried to do a swapon -a I get the following.

# swapon -a
Enabling device paging on /dev/vg00/swap.
swapon: /dev/vg00/swap is already enabled for paging.
Enabling device paging on /dev/vg00/lvol2.
swapon: /dev/vg00/lvol2 is already enabled for paging.
Enabling device paging on /dev/vg02/lvol_swap.
swapon: The kernel tunable parameter "swchunk" needs to be increased to add
paging on device /dev/vg02/lvol_swap.

I have done adjusted swchunk to max and it is showing that not using anything of it. what did i do wrong beside listen to DBA.
12 REPLIES 12
Sunny123_1
Esteemed Contributor
Solution

Re: SWAP SPACE

Hi

How do you adjust swapchunk for that refer follow

Total_swap_that_can_be_configured
=maxswapchunks * swapchunk

If your system has following parmeters
maxswapchunks=4096
swchunk=2048

then

the total swap you can configure is 4096*2048 = 8388608 which is 8 GB.

If you want to add more swap, then calculate the maxswapchunks by the same forumula


However, the limit for maxswapchunks is 16384. If you need to go beyond that limit, then you will need to increase the swchunk size

Regards
Sunny
David Dangerfield_1
Frequent Advisor

Re: SWAP SPACE

I am in the kernel setting and don't see a maxswap of any kind. HP UX 11.23 is the OS i am running.
Hakki Aydin Ucar
Honored Contributor

Re: SWAP SPACE

After changed the kernel value ,did you reboot your system to update last value in kernel ?
David Dangerfield_1
Frequent Advisor

Re: SWAP SPACE

Yes sure did do that.
Sunny123_1
Esteemed Contributor

Re: SWAP SPACE

Hi

Look for maxswapchunks.

Regards
Sunny
Hakki Aydin Ucar
Honored Contributor

Re: SWAP SPACE

I think it is for you: check this out;

http://docs.hp.com/en/B2355-60130/swchunk.5.html
David Dangerfield_1
Frequent Advisor

Re: SWAP SPACE

Not that neither. attached is a list of parms on this box.
Hakki Aydin Ucar
Honored Contributor

Re: SWAP SPACE

I think that there is NOT a maxswapchunks parameter any more for 11i version 2; check this post:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1253805746626+28353475&threadId=1076814
Rita C Workman
Honored Contributor

Re: SWAP SPACE

Hi David,

maxswapchunks was obsoleted on 11.23.

Have you tried simply using 'SAM' to add your additional swapspace. You can still use it on version 11.23 (even 11.23IA). It's old and slow, but it does work.

Rgrds,
Rita
Don Morris_1
Honored Contributor

Re: SWAP SPACE

Considering the max value of swchunk can get you to 1Tb on 11.23, we need more data.

What's the output from:

swapinfo -atm

kctune -v swchunk

?

How big is /dev/vg02/lvol_swap, anyway?

Are you under memory pressure?

Does dmesg show any messages about failure to add swap? (Usually there's a statement in the message buffer as to why the swap add failed).
David Dangerfield_1
Frequent Advisor

Re: SWAP SPACE

Problem is solved. never seen this happen before but it seems that after going to the building where this server is we had a drive bad which just so happen to be the drive we were trying to put the swap on even though it had a mirror drive once i replaced that drive and it rebuilt itself i was able to create the swap without any problems. who knows.
David Dangerfield_1
Frequent Advisor

Re: SWAP SPACE

THANKS