From owner-freebsd-questions@FreeBSD.ORG Sun Oct 8 17:46:48 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 25BAB16A407 for ; Sun, 8 Oct 2006 17:46:48 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98A2D43D45 for ; Sun, 8 Oct 2006 17:46:47 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GWcjJ-000Crt-KJ; Sun, 08 Oct 2006 18:46:25 +0100 Date: Sun, 8 Oct 2006 18:46:25 +0100 From: Ceri Davies To: Honest Qiao Message-ID: <20061008174625.GA23251@submonkey.net> Mail-Followup-To: Ceri Davies , Honest Qiao , freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Ceri Davies Cc: freebsd-questions@freebsd.org 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: Sun, 08 Oct 2006 17:46:48 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 04, 2006 at 01:55:36PM +0000, Honest Qiao wrote: > Environment: FreeBSD www141.igogo8.com 6.1-PRERELEASE FreeBSD=20 > 6.1-PRERELEASE #0: Fri May 12 12:12:17 CST 2006=20 > HonestQiao@www141.igogo8.com:/usr/src/sys/i386/compile/iGOGO8-PAE i386=20 >=20 > Description:=20 > Several months ago , I read the follow article, and add a 12G swapfile.= =20 > The article url is=20 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-spa= ce.html=20 >=20 > The swapfile is /usr/swap0 , and I have a swap mount which size is 2G.=20 > top show:=20 > Swap: 14G Total, 14G Free=20 >=20 > Today , I use swapoff /usr/swap0 to disable swapfile , and then rm=20 > /usr/swap0.=20 > /usr/swap0 was deleted, but its disk space can't release.=20 > Now, top show:=20 > Swap: 2048M Total, 2048M Free=20 >=20 > www141# df -hi=20 > Filesystem Size Used Avail Capacity iused ifree %iused Mounted on=20 > /dev/amrd0s1a 248M 41M 187M 18% 1609 31413 5% /=20 > devfs 1.0K 1.0K 0B 100% 0 0 100% /dev=20 > /dev/amrd0s1f 19G 965M 17G 5% 1737 2636085 0% /db=20 > /dev/amrd0s1g 19G 12G 5.6G 69% 769803 1868019 29% /home=20 > /dev/amrd0s1d 248M 43M 185M 19% 585 32437 2% /tmp=20 > /dev/amrd0s1h 25G 19G 3.4G 85% 354372 3013562 11% /usr=20 > /dev/amrd0s1e 248M 65M 163M 29% 6430 26592 19% /var=20 How long did you wait? softupdates could introduce a short delay in the statistics above updating. Failing that, you will need to remove the device with mdconfig. Use "geom md list" to try to identify the correct md device, then remove it. Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFKTlxocfcwTS3JF8RAlAnAKC6gy+sAbzfoTxrUhKuS3F7XY120wCfbQZi KtIpoKTFP3dfTZC7ydTg5Wk= =zksu -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--