- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Decrease size of 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
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
тАО02-07-2002 08:30 AM
тАО02-07-2002 08:30 AM
Could I decrease the size of swap without impacting performance, and reuse the space on another volume? I am thinking of decreasing swap to 4 GB. The system is running really well right now, and I would hate to do anything that would impact performance.
Thanks,
Jane
Solved! Go to Solution.
- Tags:
- swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2002 08:38 AM
тАО02-07-2002 08:38 AM
SolutionIt all depends on how your swap is configured as to how easy to remove. If you have > 1 lvol with swap on then comment them out of /etc/fstab, reboot and your done.
If you have only 1 large swap lvol (unlikely) then you will need to use an ignite make_recovery image to downsize it (which involves a fair bit of work).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2002 08:39 AM
тАО02-07-2002 08:39 AM
Re: Decrease size of swap?
Unless you are really desparate for space in vg00, I probably wouldn't worry about it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2002 08:43 AM
тАО02-07-2002 08:43 AM
Re: Decrease size of swap?
In your case absolutely. You appear to have followed the very old rule of 2-3x memory for swapspace. This rule very seldom aplies to modern boxes and you could very easily the amount of swap you have. In fact, you seem to be using so little swap that ifg you need the disk, I would reduce to well under the amount of memory (~ 512MB-1024MB) and use filesystem swap space at very low priority. The filesystem swap will never be used but it does serve as a safety net.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2002 08:46 AM
тАО02-07-2002 08:46 AM
Re: Decrease size of swap?
Thanks for the info., and the warning. It is really nice to have the heads up, and to save myself a lot of work for now. Also it helps in planning for future maintenance.
Jane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2002 08:46 AM
тАО02-07-2002 08:46 AM
Re: Decrease size of swap?
If your current swap is a single 6Gb logical volume then your easiest option is to recreate the root volume - ignite is probably your best option. Your alternative is to boot your server from another disk in order to resize the current volume.
If however, you have more than one swap volume then you can remove any or all of them (apart from the primary) by removing their entries from /etc/fstab and rebooting. You can't remove primary swap because it's always in use.
After the reboot, you can simply remove the volumes with lvremove.
Regards,
John