removing swap space...only by reboot? A bug?

Rob Lahaye lahaye at snu.ac.kr
Mon Sep 8 12:30:54 UTC 2003


Ceri Davies wrote:
> On Mon, Sep 08, 2003 at 05:28:54PM +0900, Rob Lahaye wrote:
> 
>>"man swapon" says:
>>
>>BUGS
>>     There is no way to stop paging and swapping on a device.  It is 
>>     therefore
>>     not possible to dismount swap devices which are mounted during system
>>     operation.
>>
>>Is that still a bug?
> 
> 
> That depends on which version you are running.
> If you have 4.x or 5.0 then you're out of luck, but a recent -current has
> the swapctl command which does what you want.

Thanks. So I'm out-of-luck with 4.8 :).

I wonder if a brief note on this could go at the end of the "adding swap space"
section in the handbook. Something like

Removing swap space:
	for OSversion <= 5.0 only reboot can do
        otherwise swapctl command does it on a running system.

Regards,
Rob.



More information about the freebsd-doc mailing list