- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increase in Swap space
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-26-2006 04:32 AM
09-26-2006 04:32 AM
to increase 1GB swap space based on there findings.
Please check the attached doc for more details...so that you can answer my Q's clearly..
this is my current swap info on the server
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 505 3591 12% 0 - 1 /dev/vg00/lvol2
reserve - 3237 -3237
memory 4085 979 3106 24%
total 8181 4721 3460 58% - 0 -
------------------
can i go with this steps to create 1Gb swap space
# lvcreate -L 1G /dev/vg00 ( please check this command i want to increase SWAP by 1 GB)
# lvdisplay /dev/vg00/lvolx
# swapon /dev/vg00/lvolx
# cd /etc/fstab
/dev/vg00/lvolx swap defaults 0 0 (please check this entry is it ok)
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 04:37 AM
09-26-2006 04:37 AM
Re: Increase in Swap space
Above steps are good to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 04:50 AM
09-26-2006 04:50 AM
Re: Increase in Swap space
Please take a look at this thread, somebody got almost exactly same issue that you are having right now, after reading it, you might want to ask the development team why they want to increase swap, and why creating primary is not a good idea at this stage, secondary swap will do the trick.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1063451
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 05:01 AM
09-26-2006 05:01 AM
Re: Increase in Swap space
The thread you gave me is my query.
IT_2007>>so can i go with the other VG like /dev/finvol here. But is that a good idea to have swap on the same VG which has applications already running.
and one thing do we need to start any service or any reboots required after creating swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 05:10 AM
09-26-2006 05:10 AM
Re: Increase in Swap space
1. you can have swap in different VG as well that is not an issue. It is always good idea to go ahead with different disk where root disk is not present or it should be in seperate disk where i/o is not higher.
2. No need to start any service exclusively when increasing swap.
regards
Mano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 05:13 AM
09-26-2006 05:13 AM
SolutionI did not realize that :-).
The thing with primary swap, is that it has to be strict and contigous and that does not let us use the vg00 to extend the existing swap space.
This been said, creating secondary swap is the solution, but creating that extra space on the same drive that vg00 is located is not a good idea, since you will not be gaining any performance, your drive only have one head to write with, so using a second drive is the solution
Use the syntax given by James R. Ferguson in this thread:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1028045
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 05:21 AM
09-26-2006 05:21 AM
Re: Increase in Swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:22 AM
09-26-2006 06:22 AM
Re: Increase in Swap space
/dev/finvol is part of cluster so can i use this to create secondary swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:27 AM
09-26-2006 06:27 AM
Re: Increase in Swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:29 AM
09-26-2006 06:29 AM
Re: Increase in Swap space
If that means that /dev/finvol is a shared volume then absolutely, positively do not use this as swap space. Consider what would happen if multiple hosts were actually using this as swap space. Absolute chaos would be the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:35 AM
09-26-2006 06:35 AM
Re: Increase in Swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:52 AM
09-26-2006 06:52 AM
Re: Increase in Swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 07:32 AM
09-26-2006 07:32 AM
Re: Increase in Swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 07:42 AM
09-26-2006 07:42 AM
Re: Increase in Swap space
It's okay to cvreate the additional swapspace in the finvol as long as this is not shared but I would prefer a local disk and you do have room in vg00.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 07:45 AM
09-26-2006 07:45 AM
Re: Increase in Swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 07:51 AM
09-26-2006 07:51 AM
Re: Increase in Swap space
absolutely, positively do not put it on your shared voludme group, you're asking for trouble...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 07:52 AM
09-26-2006 07:52 AM
Re: Increase in Swap space
There is another option, this one is kind of neat, you can make a tape recovery with ignite, then restore the system with it, when booting off the tape go into interactive mode and change the size for your primary swap this will allow you to increase its size and have it strict and contiguous.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 08:01 AM
09-26-2006 08:01 AM
Re: Increase in Swap space
Thnx All for the info. provided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 08:25 AM
09-26-2006 08:25 AM
Re: Increase in Swap space
# lvcreate -L 1G /dev/vg00
lvcreate: Specified LogicalVolumeSize is too large for the PhysicalExtentSize
of the Volume Group. Resulting number of extents is out of the range
1 to 65535 (0).
# vgdisplay /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4237
VGDA 2
PE Size (Mbytes) 8
Total PE 4227
Alloc PE 2671
Free PE 1556
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 08:39 AM
09-26-2006 08:39 AM
Re: Increase in Swap space
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 725 3371 18% 0 - 1 /dev/vg00/lvol2
dev 1000 0 1000 0% 0 - 1 /dev/vg00/lvol9
reserve - 2640 -2640
memory 4085 1033 3052 25%
total 9181 4398 4783 48% - 0 -
#
can anyone tell how to read it now...i can see 2 dev now. how much free swap i have now...basically how to read it bit confused...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 09:45 AM
09-26-2006 09:45 AM
Re: Increase in Swap space
dev 4096 725 3371 18% 0 - 1 /dev/vg00/lvol2
dev 1000 0 1000 0% 0 - 1 /dev/vg00/lvol9
This means that you are using 725 MiB on lvol2 and that's it. In fact, you may not be using any swap because this could be memory-mapped files. I actually suspect that you aren't really swapping because notice that none of your added swap is being used eventhough the priority matches that of the primary swap partition. Note the "Memory" line in your swapinfo output; that indicates that's pseudoswap has been enabled. The only thing that I do not like is the very thing I suggested that you do not do. You set the priority of the additional swap to 1 matching that of prmary swap. When your box actually begins to swap, because these swap areas are on the same physical disk, the head will be moving like crazy as it interleaves the swap. You should modify the /etc/fstab of this additional swap area and set it to anything EXCEPT 1 so that first one area will be completely used and then the other area will be used. You only set priorities equal when you are using separate physical disks so that the i/o is then spread across them. HOWEVER, this really doesn't matter because at this point you are rerarranging the deck chairs on the Titanic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 03:08 AM
09-27-2006 03:08 AM
Re: Increase in Swap space
this is the entry i have in /etc/fstab
# grep -i /swap /etc/fstab
/dev/vg00/lvol9 /swap defaults 0 0
#
But as you said i can't see the first swap that is primary swap entry in /etc/fstab file..so how to check the priority and set it....please help me here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 03:52 AM
09-27-2006 03:52 AM
Re: Increase in Swap space
Here is a copy of my swapinfo. I think you need to create extra swap on another volum group.
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 8172 5076 3096 62% 0 - 0 /dev/vg04/lvol1
reserve - 5119 -5119
memory 6291 3256 3035 52%
total 18559 13451 5108 72% - 0 -
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 03:59 AM
09-27-2006 03:59 AM
Re: Increase in Swap space
Can anyone help me here as Clay said to change the priority. HOW CAN I CHNAGE THE PRIORITY. Please suggest....You can see the /etc/fstab entry in my previous post...
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 679 3417 17% 0 - 1 /dev/vg00/lvol2
dev 1000 12 988 1% 0 - 1 /dev/vg00/lvol9
reserve - 3058 -3058
memory 4085 1033 3052 25%
total 9181 4782 4399 52% - 0 -
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 04:09 AM
09-27-2006 04:09 AM