Operating System - HP-UX
1830135 Members
2943 Online
109999 Solutions
New Discussion

Re : adding additional swap and dump space on root disk

 
SOLVED
Go to solution
Vincent_5
Super Advisor

Re : adding additional swap and dump space on root disk

Hi,
Can anyone advice how can I increase the swap and dump space in a mirror root disk.Configuration is as follow below

rp7400 Unix server
Root disk mirror
6GB memory
swap space 8GB in vg00 lvol2
dump 4GB

Intention : swap space to set to 12GB
: dump space to set to 6GB

can someone help and provide me with the step on how I can setup the requirement???


Regards
Vincent
nothing is better than to know more
6 REPLIES 6
Brian Bergstrand
Honored Contributor
Solution

Re: Re : adding additional swap and dump space on root disk

Swap and dump have to be contiguous, so there is really no way to extend them without re-installing. Ignite can be a big help here. If you make_(tape|net)_recovery -a vg00 then you can use Ignite to restore from scratch and increase the dump/swap space in the process.

Otherwise, just add a new swap device on another volume.

HTH.
Sanjay_6
Honored Contributor

Re: Re : adding additional swap and dump space on root disk

Hi Vincent,

To resize the swap and dump partitions, you have to reinstall / ignite the system. However you can add more swap on the same vg00 if you have space or you can add swap on another vg if there is room over there.

Use this link as an example,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062946328

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063232527

Hope this helps.

Regds


Ravi_8
Honored Contributor

Re: Re : adding additional swap and dump space on root disk

Hi Vincent.

I don't know why do u need 12GB of swap.
if u required then, break the mirror, create the additional 4GB swap on root(not mirrored) disk ( make the priority same as initial 8GB swap) enable the swap and create the mirror again(for full root disk)
never give up
Zeev Schultz
Honored Contributor

Re: Re : adding additional swap and dump space on root disk

Do you think you have swap problem (which can be a memory problem) or driven by software requirements or else?

Anyway,you can define swap somewhere else , not under vg00/lvol2 (ie /dev/vg01/lvol02) -
swapon -f /dev/vg01/lvol02. man swapon for more.
So computers don't think yet. At least not chess computers. - Seymour Cray
Bernhard Mueller
Honored Contributor

Re: Re : adding additional swap and dump space on root disk

Vincent,

adding swap should do,

usually swap lvol2 is used as dump, so I guess you mean you have a /var/adm/crash filesystem of 4GB when you refer to "dump" ?

those 4GB are more than enough (dump is selective by default)

use lvlnboot -v to check your root VG
it should say that dump is on lvol2 as well (which is 8 GB I understand, so large enough).

use vgdisplay vg00 (or whatever your root VG is) to check you have enough free extents (# extends * extend size / mirror copies )

use lvcreate -L 4096 -r n -C y -m 1 /dev/vg00
to create a contigous mirror lvol of 4GB (say lvol11)

add a line lsimilar to:
/dev/vg00/lvol11 swap swap pri=3 0 0
to /etc/fstab to make an entry for addt'l swap

enter swapon -a
to activate addt'l swap

use swapinfo -mt to verify

Regards
Bernhard
Bill Hassell
Honored Contributor

Re: Re : adding additional swap and dump space on root disk

Youu can add more swap space at anytime. But rather than trying to increase an existing swap area, just add to it. The command is swapon and this addition is temporary. As questioned before: do you really run more than 12Gb of processes at the same time? (hint: swapinfo -tm) Some manufacturers of application software will say they require this amount but the reality is that they only need a small amount of RAM and most servers with 3-8 Gb of RAM have more than enough RAM. Swapspace is only for overflow.


Bill Hassell, sysadmin