Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Sep 2003 21:30:49 +0900
From:      Rob Lahaye <lahaye@snu.ac.kr>
To:        freebsd-questions@FreeBSD.org, freebsd-doc@FreeBSD.org
Subject:   Re: removing swap space...only by reboot? A bug?
Message-ID:  <3F5C7679.1080100@snu.ac.kr>
In-Reply-To: <20030908092115.GD364@submonkey.net>
References:  <3F5C3DC6.2010809@snu.ac.kr> <20030908092115.GD364@submonkey.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F5C7679.1080100>