- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending swap space under HP 11.00
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
04-09-2007 05:08 AM
04-09-2007 05:08 AM
Extending swap space under HP 11.00
1) What are the steps to extend our swap space mounted under /dev/vg00/lvol2?
2) If we extend it, do we have to reboot the server or can it be utilized immediately?
Thanks.
-- Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 05:16 AM
04-09-2007 05:16 AM
Re: Extending swap space under HP 11.00
Rather than extending the existing swap space, add an additional lvol and specify it as swap. this can be done either via command line, or via SAM.
Increasing swap this way, the new swap space is available immediately (no reboot required)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 05:26 AM
04-09-2007 05:26 AM
Re: Extending swap space under HP 11.00
You will not be able to extend your primary swap space in the sense that you think of extending a standard logical volume. That is, primary swap is a contiguous logical volume and hence requires that its physical disk extents occur without gaps in allocation. Since 'lvol3' (the root filesystem) follows immediately, you can't extend 'lvol2'.
The solution is simply to add a secondary swap space.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 05:35 AM
04-09-2007 05:35 AM
Re: Extending swap space under HP 11.00
Here are a few examples.
Title: Increase swap size - Create a secondary swap
Document ID: KBRC00008533
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080021750
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=264366
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=114225
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 05:38 AM
04-09-2007 05:38 AM
Re: Extending swap space under HP 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 07:49 AM
04-09-2007 07:49 AM
Re: Extending swap space under HP 11.00
Current layout:
$ bdf | grep vg00
/dev/vg00/lvol3 143360 34233 102417 25% /
/dev/vg00/lvol1 295024 58120 207400 22% /stand
/dev/vg00/lvol8 872448 551356 308904 64% /var
/dev/vg00/lvol7 901120 736500 154354 83% /usr
/dev/vg00/u01 3481600 3182121 280805 92% /u01
/dev/vg00/lvol4 65536 30385 33361 48% /tmp
/dev/vg00/lvol6 704512 686565 16828 98% /opt
/dev/vg00/lvperl58 225280 78540 137598 36% /opt/perl-5.8.0
/dev/vg00/oracle 409600 293270 109085 73% /opt/oracle
/dev/vg00/lvol5 102400 92826 9047 91% /home
$ sudo swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 83 941 8% 0 - 1 /dev/vg00/lvol2
reserve - 941 -941
memory 2544 1935 609 76%
total 3568 2959 609 83% - 0 -
$ vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2500
VGDA 4
PE Size (Mbytes) 4
Total PE 4338
Alloc PE 4034
Free PE 304
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Name /dev/vgap0
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 79
Open LV 79
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4331
VGDA 4
PE Size (Mbytes) 4
Total PE 6944
Alloc PE 3417
Free PE 3527
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Name /dev/vgex3
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 3
Open LV 3
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 3473
VGDA 6
PE Size (Mbytes) 4
Total PE 10416
Alloc PE 7490
Free PE 2926
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
/dev/vg00 = Primary system information
/dev/vgap0 = SAN mapped drive environments
/dev/vgex3 = SAN mapped drive environments
The future plan is that the /dev/vg00/u01 mount would disappear in the near future as the Oracle database is being migrated to the SAN environment. In the meantime, we need a quick and dirty way to increase the swap space on the server to allow our 3rd party applications (i.e. apache, etc) to utilize the system more efficiently.
So would the following work?:
lvcreate -L 1000 -C y -r n -n auxswap /dev/vg00
swapon /dev/vg00/auxswap
then modify the /etc/fstab to show:
/dev/vg00/lvol1 /auxswap swap defaults 0 1
Or am I missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:00 AM
04-09-2007 08:00 AM
Re: Extending swap space under HP 11.00
/dev/vg00/auxswap ... swap pri=2 0 0
or something close to that BUT this will only work if maxswapchunks is big enough to allow the additional swapspace.
Adding swap space will not allow you system to run more efficiently. It will allow more processes to run. If your page out rate is significant then the work "run" will be more like "crawl".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:04 AM
04-09-2007 08:04 AM
Re: Extending swap space under HP 11.00
I'd bit a bit more fussy and specify:
swapon -p 0 /dev/vg00/auxswap
...which assigns a higher swap priority to your secondary swap. In this fashion, *if* you ever do I/O for swap, you use one device and *then* the other; not both on the same disk at the same time --- a potential head-banger.
Your 'etc'fstab' entry should also look like:
/dev/vg01/auxswap ... swap pri=0 0 0
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:12 AM
04-09-2007 08:12 AM
Re: Extending swap space under HP 11.00
As for the maxswapchunks variable, can this be seen via the command line?
-- M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:19 AM
04-09-2007 08:19 AM
Re: Extending swap space under HP 11.00
'maxswapchunks' is a kernel parameter. At 11.0, use SAM or 'kmtune' to view and/or tune.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:21 AM
04-09-2007 08:21 AM
Re: Extending swap space under HP 11.00
If it is 11.23 you need to use kcweb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:24 AM
04-09-2007 08:24 AM
Re: Extending swap space under HP 11.00
$ kmtune | grep -i maxswap
maxswapchunks 512
$ sudo swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 83 941 8% 0 - 1 /dev/vg00/lvol2
reserve - 890 -890
memory 2544 1848 696 73%
total 3568 2821 747 79% - 0 -
Does that mean, even though the swapinfo is showing 1GB already, that only 512mb of it is actually being allocated to processes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:33 AM
04-09-2007 08:33 AM