Showing results for 
Search instead for 
Did you mean: 

swap issue

Indrajit Bhagat
Regular Advisor

swap issue

How to reduce the swap space, or how do i remove one of the logical volume that is currently utilized in swap space.

Point will be given.
Steven E. Protter
Exalted Contributor

Re: swap issue


swapinfo -tam

See what swap is allocated.

If there is more than one area you may safely eliminate one of them, sam is the simple way.

If however there is only one, you will need to do what you wish and set up a newer, smaller logical volume to be a smaller swap.

That means after lvremove you will need to do lvcreate and lvextend to the desired size.

The minimum size of swap for HP-UX is 50% of system RAM.

The reading will be helpful.

Steven E Protter
Owner of ISN Corporation
Pete Randall
Outstanding Contributor

Re: swap issue

James R. Ferguson
Acclaimed Contributor

Re: swap issue


In addition to my remarks in the post by me that Pete cited, if you are running 11.31 you can use 'swapoff' and skip the reboot necessary to deactivate the secondary swap.