Operating System - HP-UX
1834651 Members
2326 Online
110069 Solutions
New Discussion

How to increase swap area?

 
MQ'ski
Regular Advisor

How to increase swap area?

Hi.
I have following question.
The /dev/vg00/lvol9
should be used as swap device.
And I receive error
Monitors/GlancePlus from this memory problem:
???Global swap space nearly full???
What I should to do...
Beside I see in fstab file /dev/vg00/lvol9 / dump defaults 0 0
Something wrong ? :(
13 REPLIES 13
Vincent Farrugia
Honored Contributor

Re: How to increase swap area?

Hello,

What does "bdf" tell you?

Vince
Tape Drives RULE!!!
Joseph C. Denman
Honored Contributor

Re: How to increase swap area?

What do you see with:

swapinfo

...jcd...
If I had only read the instructions first??
MQ'ski
Regular Advisor

Re: How to increase swap area?

I will check immediately and reply!
Thanks for fasgt answer
James R. Ferguson
Acclaimed Contributor

Re: How to increase swap area?

Hi Marcin:

Based on the /etc/fstab entry, /dev/vg00/lvol9 is being used for a crash dump and not a swap device.

If you want to add another swap device, place it other than on vg00. Set the swap priority to be the same as your primary swap device. This will interleaving I/O to occur between your primary and your new secondary device, improving performance.

A reboot is not required to add additional swap space unless you first need to increase the 'maxswapchunks' kernel parameter.

Regards!

...JRF...
MQ'ski
Regular Advisor

Re: How to increase swap area?

here you are...
swapinfo output:

Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 790528 0 790528 0% 0 - 1 /dev/vg00/lvol2
reserve - 790528 -790528
memory 3406196 3212428 193768 94%
Vincent Farrugia
Honored Contributor

Re: How to increase swap area?

Hello,

Well lvol9 shouldn't appear in bdf.

Vince
Tape Drives RULE!!!
Sajid_1
Honored Contributor

Re: How to increase swap area?

hello,

a) for configuring an additional device swap, you can just go to SAM and create a new LV and specify it as swap.

b) But the message you are getting can be mis-leading. Check this document that clearly says about the same situation and solution:
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058668745

Doc ID - KBRCKBAN00000561
learn unix ..
Sajid_1
Honored Contributor

Re: How to increase swap area?

hi again,

your swapinfo output doesn't show the swap usage at all. This is what I said before and look for the solution at the document given.

Another thing is, your lvol9 is already configured as dump volume, you need to find some other disk space to configure it as swap

HTH
learn unix ..
MQ'ski
Regular Advisor

Re: How to increase swap area?

I additional
I'll give you fstab file from another machine which sholuld be configuread the same way (idea)
/dev/vg00/lvol3 / hfs defaults 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /home hfs defaults 0 2
/dev/vg00/lvol5 /opt hfs defaults 0 2
/dev/vg00/lvol6 /tmp hfs defaults 0 2
/dev/vg00/lvol7 /usr hfs defaults 0 2
/dev/vg00/lvol8 /var hfs defaults 0 2
/dev/vg01/lvol2 /var/opt/HP-AIN hfs defaults 0 2
/dev/vg01/lvol1 /var/opt/HP-AIN/cores hfs defaults 0 2
/dev/vg02/lvol1 /var/opt/HP-AIN/cpeun hfs defaults 0 2
/dev/vg01/lvol3 /var/opt/HP-AIN/cpeun/checkpoint hfs defaults 0 2
/dev/vg00/lvol9 ... swap pri=1 0 0

James R. Ferguson
Acclaimed Contributor

Re: How to increase swap area?

Hi (again) Marcin:

Based upon your original post and your posted /etc/fstab from your other machine, you can see that /dev/vg00/lvol9 on your first machine is a *dump* device whereas on the second machine it is a (secondary) *swap* device.

Regards!

...JRF...
MQ'ski
Regular Advisor

Re: How to increase swap area?

Sajid.
So now.
Should I make another free disk as swap area.?
MQ'ski
Regular Advisor

Re: How to increase swap area?

Yes I understand clearly.
But my question is now why lvol9 on the machine with problem is as a dupm instead of swap.
Is it now reccomended to do new swap area?
I must tell you that I haven't this kind of job/problem before.
Frank Slootweg
Honored Contributor

Re: How to increase swap area?

*Dump* devices in /etc/fstab are meaningless. So make sure that /dev/vg00/lvol9 is not mentioned in the bdf output and then remove it from /etc/fstab.
Next make sure that /dev/vg00/lvol9 is mentioned as a dump device in the "lvlnboot -v" output. If not, configure it with "lvlnboot -d ..." and check with "lvlnboot -v".

Now /dev/vg00/lvol9 is configured as a *dump* device. A dump device can *also* be used as a *swap* device. Create a "swap" entry for /dev/vg00/lvol9 with the information in the fstab(4) manualpage and do a "swapon -a". "swapinfo -t" should now also list /dev/vg00/lvol9 as a *swap* device.

Note: lvlnboot only configures the *primary* (first) swap device, so you configure *all* *dump* devices with lvlnboot, but only the *first* *swap* device. Additional swap devices are configured withe fstab and swapon (see above).