- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- extend memory swap
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-21-2010 05:40 AM
тАО10-21-2010 05:40 AM
i need extend memory swap in the server hp-ux 11.23 and hp-ux 11.31
the lv lvol2 it is assigned to swap
the question is: i can extend memory swap online? or i can restart server later the change?
the run command:
lvextend -L xxx /dev/vg00/lvol2
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 05:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 05:48 AM
тАО10-21-2010 05:48 AM
Re: extend memory swap
You don't need to extend primary swap nor can you easily do it since the logical volume requires contiguous physical extents. Instead, you can simply add secondary swap space. Whether or not it resides on vg00 is immaterial.
Secondary and primary device swap are equivalent.
Do something like:
# lvcreate -C y -r n -L 32768 -n lvolN /dev/vgXX
# swapon -p /dev/vgXX/lvolN
See the manpages for more information. You can do this without a reboot. Remember to add activation of the secondary device swap so built to '/etc/fstab':
/dev/vgXX/lvolN ... swap pri=0 0 0
As you can see, the secondary device swap can be on any volume group you choose.
On 11.31 you can use 'swapoff' to deactivate a swap device. Prior to 11.31 you would need to remove (or comment out) the secondary swap entry in 'fstab' and reboot. In this fashion, you would not activate the secondary swap that you no longer wanted.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 05:57 AM
тАО10-21-2010 05:57 AM
Re: extend memory swap
one last question
if in 3 months is required to extend the swap again, create another LV?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 06:03 AM
тАО10-21-2010 06:03 AM
Re: extend memory swap
In three months if you need to extend swap again, create a new logical volume and follow the good procedures posted earlier in this thread.
Swap can be added in 11.31 without restart.
Broader question is if you keep adding swap, due to increased utilization,what is the reason? If applications are slowing down and disk swapping is occurring, actual paging (see vmstat) then you might need more memory on the server.
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
тАО10-21-2010 06:11 AM
тАО10-21-2010 06:11 AM
Re: extend memory swap
that you can do then, but with a secondary swap you also can just lvextend it.
Only extending the primary swap is a problem since the logical volume lvol1 - lvol3 requires contiguous physical extents.
And the primary swap is lvol2.
HTH
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 06:18 AM
тАО10-21-2010 06:18 AM
Re: extend memory swap
> SEP: Swap can be added in 11.31 without restart.
And that's true for any release. In 11.31 no reboot is required to deactivate a swap space if you have 'swapoff'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 08:02 AM
тАО10-21-2010 08:02 AM
Re: extend memory swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 08:04 AM
тАО10-21-2010 08:04 AM
Re: extend memory swap
> ok james, and the 11.23 version is also online?
Yes, that's what 'swapon' does.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 08:13 AM
тАО10-21-2010 08:13 AM