1752282 Members
4494 Online
108786 Solutions
New Discussion юеВ

Re: 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