Operating System - HP-UX
1829521 Members
1820 Online
109991 Solutions
New Discussion

How to I add secondary swap during install HPUX

 
SOLVED
Go to solution
Lee Joon Moon
Occasional Advisor

How to I add secondary swap during install HPUX

Hello Everyone

I'm trying to make a secondary swap area in installing HPUX.
But, I couldn't find the option in advanced installing process.
I want to make swap, which is 4GB.
I don't like to make whole disk swap area.
Just, I'll use some portion of disk.

Thank you.

Have a nice day.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: How to I add secondary swap during install HPUX

In the Ignite Install Interface Disk management you can set up as many swap areas as you want, even prioritize them.

If you already have the system set up

sam
disk

there is a way to set up swap areas in there.

SEP
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
T G Manikandan
Honored Contributor

Re: How to I add secondary swap during install HPUX

The system requires a swap defined during the installation process.

So it just requires that.Even I feel there is no option during the installation stage for that.You will have to define it after the installation.

Even I feel not only the system there is no need to define that during the installation process.
Check the usage of memory and then you can define it non the non-vg00 system disks.
As rightly you pointed out do not waste the primary system vg00 by allocating more swap into it.

It is not a rule to define swap area 2or 3 times the RAM.
I am not sure about your system configuration and the load it is to handle.

Define a defined,minimal swap space on the primary vg/disk.

Then do the other sec.swap allocations later.

Con O'Kelly
Honored Contributor

Re: How to I add secondary swap during install HPUX

Hi

As TG has said define additional swap areas after the install.

To configure secondary swap:
# lvcreate -L 2000 -C y -r n /dev/vgXX
# swapon -p 1 /dev/vgXX/lvolXX
Then add an entry to /etc/fstab.

It is not always necessary to define secondary swap areas. I'd size the primary swap correctly and look at utilizing the swapmem_on kernel parameter.

Cheers
Con
KCS_1
Respected Contributor
Solution

Re: How to I add secondary swap during install HPUX

Hi,

There are two methods to add secondary swap space(s) that one is as already you mentioned like that. you can choose that in the disk management tab of the advanced mode, whenever you install hp-ux from CD or Tape. The other one is possible on the prompt by some commands.



How to add additional device swapâ ¦by example:



1.Check to see if maxswapchunks is set high enough to alllow the swap that you are planning to add.


2.Create lvol using lvcreate [and extend ].

For example, to create the lvol on any disk:

# lvcreate -C y -L 300 -n swap /dev/vg00

3. Use swapon to start using new swap device:

# swapon -p 2 /dev/vg00/swap

4. vi /etc/fstab
(add)

/dev/vg00/swap ... swap pri=2 0 0





NOTES:
generally, use same priority for same size devices. The lower the number the higher priority.
the '0 0' is for historical purposes and means 'backup frequency' and 'pass number (on parallel fsck)' respectively.




Best Regards
Easy going at all.
Ravi_8
Honored Contributor

Re: How to I add secondary swap during install HPUX

Hi

Unless you have ignite you can't specify secondary swap during installation.

as said by previous posts, after the normal installation (uisng media) you can create secondary swap.
never give up