From owner-freebsd-questions@FreeBSD.ORG Wed Oct 4 14:48:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87FB116A407 for ; Wed, 4 Oct 2006 14:48:39 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 360EE43D79 for ; Wed, 4 Oct 2006 14:48:37 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k94EmYEY006100; Wed, 4 Oct 2006 17:48:34 +0300 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Wed, 4 Oct 2006 17:44:50 +0300 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610041744.50978.nvass@teledomenet.gr> Cc: Honest Qiao Subject: Re: FreeBSD 6.1-PRERELEASE : rm swapfile after swapoff can't release the disk space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Oct 2006 14:48:39 -0000 On Wednesday 04 October 2006 16:55, Honest Qiao wrote: > Description: > Several months ago , I read the follow article, and add a 12G swapfile. > The article url is > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space >.html > > The swapfile is /usr/swap0 , and I have a swap mount which size is 2G. > top show: > Swap: 14G Total, 14G Free > > Today , I use swapoff /usr/swap0 to disable swapfile , and then rm > /usr/swap0. > /usr/swap0 was deleted, but its disk space can't release. Only the filename(/usr/swap0) is deleted and that's because there are references to it. mdconfig -l to see which /dev/md[0-9] is attached to the file mdconfig -d -u unit to delete the md [snip]