1833187 Members
3009 Online
110051 Solutions
New Discussion

about removing swap

 
SOLVED
Go to solution
surendranath
Advisor

about removing swap

I have created file sytem swap on one of the file sytems and enabled it. Now, I want to remove that swap space from the file system without any data loss?

hqlabbu2:> swapinfo -f
Kb Kb Kb PCT Kb Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
fs 8192 0 8192 0% 8192 0 1 /suren/paging
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: about removing swap

If you did not add this to /etc/fstab so it is automatically activated at boot time, then just reboot.

If it is in /etc/fstab, then remove the line and reboot.

You cannot deactivate swap without rebooting the server.
surendranath
Advisor

Re: about removing swap

Will reboot. After reboot can I use the 8MB space which I allocated?
Patrick Wallek
Honored Contributor
Solution

Re: about removing swap

Yes.

After the reboot just verify that 'swapinfo' no longer shows your file system swap.
surendranath
Advisor

Re: about removing swap

got solution.