Operating System - HP-UX
1753831 Members
9468 Online
108806 Solutions
New Discussion юеВ

How exteneded secondary swap space will show in swapinfo

 
SOLVED
Go to solution
MJA_1
Advisor

How exteneded secondary swap space will show in swapinfo

I have rx4640 where primary swap is 4GB and secondary swap is 4Gb. I needed to increase more swap space so I extended secondary swap space as #lvextend -L 8192 /dev/vg00/swap2. Then I entered #swapon /dev/vg00/swap2 but this did not reflect in swapinfo. How extened secondary seap space will reflect in swapinfo.

Thanks .. MJ

#swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 92040 4102264 2% 0 - 1 /dev/vg00/lvol2
dev 4145152 1322704 2822448 32% 0 - 0 /dev/vg00/swap2
reserve - 6920792 -6920792
memory 8358448 6347032 2011416 76%
9 REPLIES 9
Yogeeraj_1
Honored Contributor

Re: How exteneded secondary swap space will show in swapinfo

hi,

looks ok.

E.g. output

SRV2:>swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 512 0 512 0% 0 - 1 /dev/vg00/lvol2
dev 9728 0 9728 0% 0 - 0 /dev/vg01/swap01
reserve - 470 -470
memory 6310 927 5383 15%
total 16550 1397 15153 8% - 0 -
SRV2:>



kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Matti_Kurkela
Honored Contributor
Solution

Re: How exteneded secondary swap space will show in swapinfo

If you extend an existing swap space, the new space will be used only after a reboot.

If you want to add more swap to this system while it is running, you must add a third swap area.

MK
MK
Ivan Krastev
Honored Contributor

Re: How exteneded secondary swap space will show in swapinfo

You cannot extend swap volume without reboot.

Better way is to add additional swap device.


regards,
ivan
Steven E. Protter
Exalted Contributor

Re: How exteneded secondary swap space will show in swapinfo

Shalom,

Hate to burst your bubble, but you are probably paging. If you are getting out of memory warnings, adding swap will help. But it will not improve system performance.

To get that, you need more memory or to decrease memory use. MAke those SGA's and whatnot more economical
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sajjad Sahir
Honored Contributor

Re: How exteneded secondary swap space will show in swapinfo


Dear MJ

once u increase u swap u have to activate it again
by using swapon -a command
if u want next boot time onwards u have to make an entry in /etc/fstab file

please don't forget to assign points

Thanks and Regards

Sajjad Sahir
Sajjad Sahir
Honored Contributor

Re: How exteneded secondary swap space will show in swapinfo

Dear Mj

if u want ot see out put of this
use swapinfo -tam command

ok

thanks and regards

Sajjad Sahir
MJA_1
Advisor

Re: How exteneded secondary swap space will show in swapinfo

Thank you very all of you. I extended secondary swap volume and then entered #swapon -a also but it did not reflect the increased swap space in swapinfo -tam without reboot. I can not reboot this box right now so I added third swap space to increase current swap as you guys suggested.
Again thanks a lot now I am closing this thread

Thanks .. MJ
MJA_1
Advisor

Re: How exteneded secondary swap space will show in swapinfo

Thanks
Grayh
Trusted Contributor

Re: How exteneded secondary swap space will show in swapinfo

Check /etc/hosts
Check nsswitch.conf
Check DNS

Sounds like 'resolution' is what is choking.

MAy be you can try to upgrade the DNS Server.