How to remove swap swap space

 
Md. Minhaz Khan
Super Advisor

How to remove swap swap space

Dear All,

In our system(/etc/fstab) swap information is as folllows:

dev/vg00/lv_swap1 ... swap pri=1 0 0
/dev/vg00/lv_swap2 ... swap pri=1 0 0
/dev/vg00/lvol_swap ... swap defaults 0 0

Now we don't want to use lv_swap1,lv_swap2 and lvol_swap as swap space.

So we need to first edit the /etc/fstab file and comment old swap entries(lv_swap1,lv_swap2,lvol_swap) then reboot the system.

My query is after reboot the system can we remove lv_swap1,lv_swap2 and lvol_swap using lvremove as we previously configured these LV as device swap to reclaim free space in vg00??

Thanks in advance

Minhaz


7 REPLIES 7
Michal Kapalka (mikap)
Honored Contributor

Re: How to remove swap swap space

hi,

yes you could but,

you need specify a default dump+swap space.

mikap
Aneesh Mohan
Honored Contributor

Re: How to remove swap swap space

Yes Minhaz , you can remove after the reboot with fstab commented.

Also double check you primary swap space using lvlnboot -v for safer side.I belive you are intend to remove the primary swap

Thanks,
Aneesh
Richard Hepworth
Esteemed Contributor

Re: How to remove swap swap space

Minhaz,

If you are running HP-UX 11.31 you can install the swapoff enhancement which will remove the need for you to reboot the system.

You can get swapoff here:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SwapoffEnh

regards,

Richard
Md. Minhaz Khan
Super Advisor

Re: How to remove swap swap space

Dear Michal

>>you need specify a default dump+swap space<<

From the above line you meant we need at least
one swap+dump device which we usually see
using "lvlnboot -v" command and this dump+device device usually /dev/vg00/lvol2.

Except(dump+device device usually /dev/vg00/lvol2) we can remove other lv that was previously configured as device swap??

Thanks
Minhaz
Venkatesh BL
Honored Contributor

Re: How to remove swap swap space

Yes, you can remove the additional swap space.
Michal Kapalka (mikap)
Honored Contributor

Re: How to remove swap swap space

Hi Minhaz,

ok you can remove it after comment the entries in /etc/fstab

Dump will go to lvol2.

mikap
Md. Minhaz Khan
Super Advisor

Re: How to remove swap swap space

Thanks a lot to everybody for helping me.

Thanks
Minhaz