- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to I add secondary swap during install HPUX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 02:40 PM
02-17-2004 02:40 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 02:49 PM
02-17-2004 02:49 PM
Re: How to I add secondary swap during install HPUX
If you already have the system set up
sam
disk
there is a way to set up swap areas in there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 03:26 PM
02-17-2004 03:26 PM
Re: How to I add secondary swap during install HPUX
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 03:40 PM
02-17-2004 03:40 PM
Re: How to I add secondary swap during install HPUX
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 03:43 PM
02-17-2004 03:43 PM
SolutionThere 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 04:22 PM
02-17-2004 04:22 PM
Re: How to I add secondary swap during install HPUX
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.