- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- extending Mirrored primary swap area
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
09-22-2004 05:42 AM
09-22-2004 05:42 AM
I have been asked to increase the primary swap area from 4GB to 8GB for Oracle 9i installation, but I already configured it as mirrored, my quastion is I want to know the exact procedure to do this.
One more thing, we do not have the Online JFS product.
Thanks in advance....
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 05:49 AM
09-22-2004 05:49 AM
Re: extending Mirrored primary swap area
You won't be able to extend the primary swap because it, / & /stand *must* be contigous.
What you _can_ do is setup another, secondary swap area in either free VG space you now have or add a disk & setup a VG with a swap LV defined within it. It's just like creating any other LV except you just don't put a filesystem on it.
Once it's set up then add an entry to /etc/fstab like the following
/dev/vg_name/lv_name ... swap pri=0 0 0
and then run
swapon -a
You may need to increase either/or kernel parameters:
maxswapchunks
swchunk
to accomodate the extra swap space. Both require a reboot.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 05:50 AM
09-22-2004 05:50 AM
Re: extending Mirrored primary swap area
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 05:52 AM
09-22-2004 05:52 AM
Re: extending Mirrored primary swap area
lvextend -L
This should actually extend the mirror straight away. No online JFS.
I usually break the mirror first.
lvsplit /dev/vg00/lvol2
lvextend -L 9000 /dev/vg00/lvol2 /dev/dsk/c1t5d0
lvremove the copy that was made with lvsplit.
lvextend -m 1 /dev/vg00/lvol02 /dev/dsk/c1t6d0
You'll probably have to activate the large swap area. Sam provides a good interface, but you'll probably have to boot the box.
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
09-22-2004 06:01 AM
09-22-2004 06:01 AM
Re: extending Mirrored primary swap area
No reboot required to add swap.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 06:34 AM
09-22-2004 06:34 AM
Re: extending Mirrored primary swap area
Your method just won't fly.
The *only* way to extend primary swap on the root/boot disk is via Ignite tape recovery.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 06:41 AM
09-22-2004 06:41 AM
Re: extending Mirrored primary swap area
The DBAs are asking for the wrong task. They may have said 'primary' but what they meant was 'total'. swap is not a filesystem, it is part of the virtual memory system and the raw swap space cannot be extended--the virtual memory system won't 'see' any new space in an lvol.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 07:54 AM
09-22-2004 07:54 AM
Re: extending Mirrored primary swap area
What we used to practice for temporary need was enable paging on some file system having a paging directory. You can acheive it by doing as follows:
/usr/sbin/swapon -l 5000 -r 10000 -p 2 /var/adm/crash/paging
What you can keep in mind is try and see a bing enough file system which you can use.
-r 10000 these much file system blocks will be saved for file system usage.
Hope this helps
Reply what you did at last
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 07:59 AM
09-22-2004 07:59 AM
Re: extending Mirrored primary swap area
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90670/B2355-90672_top.html&con=/hpux/onlinedocs/B2355-90672/00/00/62-con.html&toc=/hpux/onlinedocs/B2355-90672/00/00/62-toc.html&searchterms=swapon&queryid=20040922-135555
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 05:41 PM
09-22-2004 05:41 PM
Re: extending Mirrored primary swap area
Jeff I think you are right, there is no way to increase the Pri. swap space as I found it in some Docs. unless you have physical extents contiguous, Any way I will try to build secondary swap space and enable it and mke a mirrored copy of it, but I want to ask you is it important for Oracle swap space to be one piece??
Thanks....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 10:19 PM
09-22-2004 10:19 PM
Re: extending Mirrored primary swap area
i think there is option to do it if you are having enough space (should be contiguous) in your root vg.
see the attachment for detailed procedure.
i got the procedure for creating a new swap volume from hpux 11/11i installation and update guide.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 12:39 AM
09-23-2004 12:39 AM
Re: extending Mirrored primary swap area
Any way what I did, I located an extra 4Gb and build an scondary swap device on it make mirror, but is it important for Oracle to be one larg swap area, not devided into two???
Bhaven I did not recive your attached file befor this, but It looks useful thanks for it and I hope to use it in the future.
Thanks for every body...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 01:40 AM
09-23-2004 01:40 AM
SolutionNo it makes no difference if you have 1, 2, 3 or even more swap devices simply because if you actually start paging out to them - implying that you've exhausted RAM - your response times will go into the toilet. This results because disk access is more than 1000 times slower than RAM access.
You usually need more swap space for reservation purposes. This is because *every* process that wants to start must reserve a chunk of swap space just in case it ever does need to physically page out.
You should also check the kernel parm swapmem_on & make sure it's set to 1
This allows the system to use approx 75% of RAM as pseudo-swap & will give you more reservation space.
The moral is - Make sure you have enough physical RAM to support all the processes. You don't *ever* want to actually page out.
I hope this answers your question.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 02:09 AM
09-23-2004 02:09 AM
Re: extending Mirrored primary swap area
Yes Jeff it dose, and I already make neccessary changes to the kernel params. to enable all swap space.
Thanks a lot for all....