Operating System - HP-UX
1833779 Members
2538 Online
110063 Solutions
New Discussion

Is it possible to add more swap space on a running workstation

 
SOLVED
Go to solution
Jan Studsgaard_2
Frequent Advisor

Is it possible to add more swap space on a running workstation

My question is?
1. How did I add more swap space
2. Can I do it on a running workstation.
4 REPLIES 4
Sanjay_6
Honored Contributor
Solution

Re: Is it possible to add more swap space on a running workstation

Hi Jan,

Have a look at this thread,

http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html

Look for
Administering a System: Managing Disks and Files --> Managing Swap and Dump

This may answer all the queries you may have about swap addition and modification.

Hope this helps.

thanks
Michael Tully
Honored Contributor

Re: Is it possible to add more swap space on a running workstation

Hi,

You can do this as long as you have sufficient
disk space that can be utilised.
To check how much space you have and if your
using LVM do this. I am assuming you have only
one disk and your volume group is vg00

# vgdisplay /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 3242
Free PE 5438
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

So from this output on my system I have 5438 extents @ 4Mb, so I have 21752Mb available..
To create the extra swap of 512Mb do this:

# lvcreate -n swap2 /dev/vgXX
# lvextend -L 512 /dev/vgXX/swap2
# swapon /dev/vgXX/swap2

Add an entry like this to your /etc/fstab file

/dev/vg00/swap2 ... swap pri=1 0 0

HTH
-Michael
Anyone for a Mutiny ?
Printaporn_1
Esteemed Contributor

Re: Is it possible to add more swap space on a running workstation

goto sam create new logical volumn and use as swap
enjoy any little thing in my life
Santosh Nair_1
Honored Contributor

Re: Is it possible to add more swap space on a running workstation

Jan,

In addition to having space on the disks, you also need to make sure that the kernel can handle the additional swap. There is a kernel parameters, maxswapchunks, which determines the max amount of swap allowable on the system. Take this number and multiply by 2048Mb. This is the max allowable swap space. If the space you're planning to add exceeds this value, you'll have to increase this value and incur a reboot.

-Santosh
Life is what's happening while you're busy making other plans