1829620 Members
2572 Online
109992 Solutions
New Discussion

Remove Swap Space

 
SOLVED
Go to solution
Ralf Buchhold
Regular Advisor

Remove Swap Space

Hello
can I remove a "used" swap space.
Here: /dev/vg01/lvswap2
Look at:
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 7000 238 6762 3% 0 - 0 /dev/vg01/lvswap2
dev 7000 0 7000 0% 0 - 0 /dev/vg12/lvswap3
reserve - 5680 -5680
memory 4612 2766 1846 60%

Thanks
Ralf
5 REPLIES 5
RAC_1
Honored Contributor

Re: Remove Swap Space

what makes you to remove the swap space?? What is the RAM you have on your machine??

In case you want to remove it, you can just comment/remove the entry for it in /etc/fstab, update the kernel parameters - maxswapchunks (which are related to define the swap space configured on your machine)

In case you do not want to removeit, you just lower the priority of that space and it will be used last.

Anil
There is no substitute to HARDWORK
Geoff Wild
Honored Contributor
Solution

Re: Remove Swap Space

Yes you can - but unfortunately, this requires a reboot (1 of the few knocks against HPUX).

Either comment it out from fstab, reboot, then lvremove - or just use SAM.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: Remove Swap Space

Even if the swapspace were "unused", your only option is a reboot. You need to edit /etc/fstab and remove the additional swap entries and then reboot.
If it ain't broke, I can fix that.
Prashant Zanwar_4
Respected Contributor

Re: Remove Swap Space

Hi,

You have to reboot the system as it's related to kernel and it changes the kernel defination once you remove it. So you need to reboot to change reconsider the kernel on the system.
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: Remove Swap Space

Also Please refer below:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=628590

Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."