1833777 Members
1994 Online
110063 Solutions
New Discussion

how to close swap space

 
Yu Zhen
Occasional Advisor

how to close swap space

I just added a logical volume for swap space,how can I disable this swap space from being activated at system startup and just activate it as I wish
4 REPLIES 4
Printaporn_1
Esteemed Contributor

Re: how to close swap space

Hi,
just comment out entry for addition swap in /etc/fstab
but make sure that the primary swap still there.
and when you want to use that swap using swapon command.
enjoy any little thing in my life
Vincenzo Restuccia
Honored Contributor

Re: how to close swap space

In /etc/fstab add:
/dev/vg00/lvol13 ... swap pri=2 0 0
swapon -a
swapinfo
Vincenzo Restuccia
Honored Contributor

Re: how to close swap space

Hi again:
comment out entry and reboot
John Bolene
Honored Contributor

Re: how to close swap space

You can activate swap on the fly, but you cannot deactivate it on the fly, a reboot is needed.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com