- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- extending primary swap onlineJFS
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-04-2006 02:22 AM
05-04-2006 02:22 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:24 AM
05-04-2006 02:24 AM
Re: extending primary swap onlineJFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:26 AM
05-04-2006 02:26 AM
Re: extending primary swap onlineJFS
The better option would be to create a new swap lvol and activate it. That can be done on the fly, assuming your maxswapchunks kernel parameter is large enough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:32 AM
05-04-2006 02:32 AM
Re: extending primary swap onlineJFS
Increasing the size of *primary* swap is highly unlikely for the reason that the logical volume in which it resides requires contiguous allocation of its physical extents.
If you need more device swap, you *can* create it on-the-fly by creating *secondary* device swap and performing a 'swapon'.
Do something like:
# lvcreate -C y -r n -L 8192 -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
Regards!
...JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 03:02 AM
05-04-2006 03:02 AM
Re: extending primary swap onlineJFS
You can do this by breaking mirrors/remirroring back and forth between disks if you have Mirror-UX installed to rearrange the extents; or by using pvmove if you don't.
Of course, the easiest way is to allocate secondary swap instead of increasing primary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 03:12 AM
05-04-2006 03:12 AM
Solutionyou can add a secondary swap:
#lvcreate -C y -L
#lvchange -r n /dev/vg00/lvswap2 (to set OFF the bad block relocation)
#lvchange -c n -M n /dev/vg00/lvswap2 (to set OFF the MWC)
#lvlnboot -d /dev/vg00/lvswap2 (make lvswap2 dump device)
#vi /etc/fstab
add the line:
/dev/vg00/lvswap2 ... swap pri=1 0 0
#swapon -a
maybe you need increase the kernel parameter MAXSWAPCHUNCKS
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:07 AM
05-04-2006 04:07 AM
Re: extending primary swap onlineJFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:36 AM
05-04-2006 04:36 AM
Re: extending primary swap onlineJFS
After adding more swap areas, monitor the page out rate with vmstat (the po column) and if it remains below 20-30 (ideally less than 10), you have enough RAM for reasonable performance.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 06:03 PM
05-04-2006 06:03 PM
Re: extending primary swap onlineJFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 10:16 PM
05-04-2006 10:16 PM
Re: extending primary swap onlineJFS
Bill Hassell, sysadmin