From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 09:55:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3F908D2 for ; Sat, 2 Aug 2014 09:55:20 +0000 (UTC) Received: from mailrelay010.isp.belgacom.be (mailrelay010.isp.belgacom.be [195.238.6.177]) by mx1.freebsd.org (Postfix) with ESMTP id 729F72A2F for ; Sat, 2 Aug 2014 09:55:20 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al0GAFa03FNR8my9/2dsb2JhbABagw2BKdNjAYEDF3eEBAEFOhwYCxALGAklDyoeBgoJG4grAcZwF49MB4RLAQScBIJAkiCDTzsv Received: from 189.108-242-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.242.108.189]) by relay.skynet.be with ESMTP; 02 Aug 2014 11:55:12 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id s729tBUT001021; Sat, 2 Aug 2014 11:55:11 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Sat, 2 Aug 2014 11:55:11 +0200 From: Tijl Coosemans To: Nils Effenberger Subject: Re: huge difference between du and df - no open file descriptors Message-ID: <20140802115511.5f72aad6@kalimero.tijl.coosemans.org> In-Reply-To: <20140731112926.217da976@azubix.tec.work> References: <20140730142609.1ac2bdc9@azubix.tec.work> <20140730173224.76007499@azubix.tec.work> <20140731112926.217da976@azubix.tec.work> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2014 09:55:20 -0000 On Thu, 31 Jul 2014 11:29:26 +0200 Nils Effenberger wrote: > On Wed, 30 Jul 2014 17:32:24 +0200 > Nils Effenberger wrote: >> Then I tried to create another (big) file which lead to the >> following: >> >> >> root@zhoernchen:~ # dd if=/dev/zero of=/root/test bs=1024 >> count=3500000 >> >> /: write failed, filesystem is full >> dd: /root/test: No space left on device >> 38849+0 records in >> 38848+0 records out >> 39780352 bytes transferred in 0.422187 secs (94224517 bytes/sec) >> root@zhoernchen:~ # df -h >> Filesystem Size Used Avail Capacity Mounted on >> /dev/mirror/root 4.8G 4.8G -395M 109% / >> devfs 1.0K 1.0K 0B 100% /dev >> root@zhoernchen:~ # rm test >> root@zhoernchen:~ # df -h >> Filesystem Size Used Avail Capacity Mounted on >> /dev/mirror/root 4.8G 4.8G -395M 109% / >> devfs 1.0K 1.0K 0B 100% /dev >> >> (Note that I deleted the 'test' file without effect.) >> >> du(1) still shows 2.2G: >> >> root@zhoernchen:~ # du -shx / >> 2.2G / >> >> When I now try to create files I get ENOSPC :( > > After running fsck over the mirror, which salvaged a few things df(1) > was showing the right values again but the issue remained: > > UFS doesn't release disk space after I delete files. If you haven't found a solution yet, try the freebsd-fs mailing list.