1838604 Members
3126 Online
110128 Solutions
New Discussion

Re: increase swap space

 
Ralf Buchhold
Regular Advisor

increase swap space

Hello
is it possible to increase the swap space
(2 GB to 3 GB) on a HPUX Box Rel. 11.22 (realy)
now is:
/dev/vg00/lvol2 ... swap pri=1 0 0

Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2097152 344628 1752524 16% 0 - 1 /dev/vg00/lvol2
reserve - 1401236 -1401236
memory 705476 443196 262280 63%

Thanks
Ralf
3 REPLIES 3
Victor BERRIDGE
Honored Contributor

Re: increase swap space

Hi Ralf,
Add another swap using sam, you cannot increase the size of the existing (needs to be contiguous) without using Ignite (reinstall with new values...)and a reboot...


All the best
Victor
Piergiacomo Perini
Trusted Contributor

Re: increase swap space

Hi Ralf,
if i don't get wrong
you can't increase swap space but you can add another "lvol" as swap space, something like this example:

lvcreate -n lv_swap_1 -C y /dev/vg01
lvextend -l 512 /dev/vg01/lv_swap_1 /dev/dsk/c1t0d0


then do the command :

swapon -a

(this is on 11.00).

hth
regards
pg
Marvin Strong
Honored Contributor

Re: increase swap space

also after you create the new lv for swap, when your setting priorities, if your swaps share the same disk, make sure you DON'T set their priority the same make the new one pri=2. As swaps with the same priority on the same disk will result in performance problems.