- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to decrease 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
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
07-07-2003 03:54 AM
07-07-2003 03:54 AM
I NEED 3G FOR OTHER APPLICATION,SO DECIDE DECREASE 8G SWAP TO 4G SWAP,HOW TO DO,THANKS.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 03:59 AM
07-07-2003 03:59 AM
Re: how to decrease swap
From the information you have provided, I assume that you mean "primary swap". In that case, see this Technical Knowledge Base document: # KBRC00004288.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:02 AM
07-07-2003 04:02 AM
Re: how to decrease swap
hpux -is
And you'll be in single user mode. Use lvreduce to change the lvol size for the swap disk, then use the command:
reboot -q
to restart. This should come up in multi-user mode with the smaller swap area (use swapinfo -tm for assistance). If this does not work, user your make_tape_recovery tape to restore HP-UX and during interactive restore, setup a different size for the primary swap area. This technique has the advantage of leaving the unused space at the end of the disk.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:37 AM
07-07-2003 04:37 AM
Re: how to decrease swap
kernel parm
swapmem_on 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:46 AM
07-07-2003 04:46 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:47 AM
07-07-2003 04:47 AM
Re: how to decrease swap
(hpux -lm at ISL>)
# vgchange -a y /dev/vg00
# lvrmboot -r /dev/vg00
If your swap is lvol2:
# lvremove /dev/vg00/lvol2
# lvcreate -L 4096 -C y -r n -n lvol2 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
# lvlnboot -R
# reboot -r
Read the man pages on lvlnboot...the above assumes stand is lvol1, swap is lvol2, and / (root) is lvol3
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 05:22 AM
07-08-2003 05:22 AM
Re: how to decrease swap
Since it is questionable whether you will be successful trying to reduce it in single user mode I would suggest you create a make_tape_recovery tape and rebuild from that. It is safe and will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 07:09 AM
07-09-2003 07:09 AM
Re: how to decrease swap
The procedure I gave above (boot to LVM Maintenance mode - NOT single user) works - I know - just did it last Saturday on a N Class...
I found that procedure searching these forums...
Rgds...Geoff