- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to add swap space.. need help
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
05-28-2009 04:00 AM
05-28-2009 04:00 AM
My questions are, what "TYPE" of swap can i use. I have disk available on a SAN and that's where i will need to put it. VG10/lvol110. I think i want "device swap" but i am not sure. Can someone tell me if this is correct using device over "file system" and guide me on how to create?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 04:06 AM
05-28-2009 04:06 AM
Re: Need to add swap space.. need help
Yes, you definitely want to go with device swap. File system swap is only appropriate if it's never going to be used because it is SLOW.
I would suggest you use the SAM replacement, SMH (I think - Systems Management Homepage - is that right?) to guide you through setting up your swap space.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 04:37 AM
05-28-2009 04:37 AM
Re: Need to add swap space.. need help
Definitely device versus file system.
http://docs.hp.com/en/5992-5804/ch03s04.html
http://docs.hp.com/en/V3crashDump1/11.31DumpWhitePaper.pdf
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
05-28-2009 04:43 AM
05-28-2009 04:43 AM
Re: Need to add swap space.. need help
The ideal swap configuration is device swap spread across multiple identical disks. Each quantity of swap space being equal in size. Worth to read this doc on below link
http://docs.hp.com/en/1219/tuningwp.html#swap
To create swap follow the below steps
1)create vg
#vgcreate swapvg
2)create lvol with equal size
#lvcreate -L
3)update the fstab
/dev/vgswap/lvol1 . swap defaults 0 0
4)use swapon -a for enable the swap
use swapinfo -tam for verifying swap space
thanks!
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 04:49 AM
05-28-2009 04:49 AM
SolutionCreate the logical volume for your secondary swap.
#lvcreate -L 47000 -n swap -C y -r n /dev/vg10 ->Here the size is 47GB.
Note swap lv should be created with contiguous and bad block reallocation off. If you have already created the lv with default policies, remove that and recreate with above command.
#vi fstab and add a line as follows.
/dev/vg10/lvolnn ... swap pri=1 0 0
here nn is the lovol number. Then
#swapon -a (To enable all swaps in fstab)
#swapinfo -mat (To verify)
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 06:22 AM
05-28-2009 06:22 AM
Re: Need to add swap space.. need help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 08:31 AM
05-28-2009 08:31 AM
Re: Need to add swap space.. need help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 08:41 AM
05-28-2009 08:41 AM
Re: Need to add swap space.. need help
Not in 11.31!
Pete
Pete