From owner-freebsd-fs@FreeBSD.ORG Sat Jun 20 19:55:12 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C93EB1065670; Sat, 20 Jun 2009 19:55:12 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: from mail-bw0-f215.google.com (mail-bw0-f215.google.com [209.85.218.215]) by mx1.freebsd.org (Postfix) with ESMTP id 0D3508FC13; Sat, 20 Jun 2009 19:55:11 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: by bwz11 with SMTP id 11so208641bwz.43 for ; Sat, 20 Jun 2009 12:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=bG1f9j1ItBN9Wo/8Vj+HvPgW+sb3czwIcRp5PieVRpQ=; b=v63R9f/1f/Ll0VLYc+sEKpmhgZy3iYlKN3qId1cOq5BKwnKmR3AbXxbxUe53wk7CZv dXYsd3cAxEQME8HUwU38rlKJV6+92o0xlThyC+MTAj6GkFF82ZjYLL+ygiLObNn/zfyo Zz+ft361hX8Nnr/BterH5uK6Jjk+4QuScpGQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; b=IdpeYg5ySbZjMtzUjLI8IMGSRPwDxcjqYJS4lADIbSU5xQImC4mwR16vqVP8K7GLyW CRWmUhMzg8i3gZ5OCK+rrRa8iamQL4BRWi28sRMy4SW15sBdXuf3sq7N/12V+s10ybZQ u88v1Zjns1CviEeIhEeq1DMlwkcHW2AXxBYjY= Received: by 10.204.57.138 with SMTP id c10mr4106402bkh.56.1245527710836; Sat, 20 Jun 2009 12:55:10 -0700 (PDT) Received: from ?88.128.7.206? ([88.128.7.206]) by mx.google.com with ESMTPS id p17sm8664808fka.42.2009.06.20.12.55.07 (version=SSLv3 cipher=RC4-MD5); Sat, 20 Jun 2009 12:55:10 -0700 (PDT) From: Mister Olli To: Dan Naumov In-Reply-To: References: <1245519413.26909.60.camel@phoenix.blechhirn.net> <3c1674c90906201050w15e4cd5dpae76cd70d64b4e92@mail.gmail.com> <1245525965.26909.69.camel@phoenix.blechhirn.net> <3c1674c90906201232x63ddee19yf91aeac30f3401bb@mail.gmail.com> Content-Type: text/plain Date: Sat, 20 Jun 2009 21:55:00 +0200 Message-Id: <1245527700.26909.86.camel@phoenix.blechhirn.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: Unable to delete files on ZFS volume X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mister.olli@googlemail.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2009 19:55:13 -0000 Hi, sounds like a great idea, I'm gonna try that as soon as Kip Macy does not need further informations. The reason I filled up the pool was that I just got ZFS to work and started playing around to see how stable it works. As I wanna deploy it on my home FS (which has no heavy usage) it tried to simulate some work on the FS and came up with the bash loops (as described in my other mail). Filling up the pool happend 'accidentally'. btw I'm pretty much impressed how good it works. From the readings I assumed the first crash within minutes. Great job. Regards, --- Mr. Olli On Sat, 2009-06-20 at 22:42 +0300, Dan Naumov wrote: > Hi. > > As Kip pointed out, this is a known issue with write allocate > filesystems in general (not just ZFS). This is one of the several > reasons why SUN recommends you do not completely fill up a zpool (they > actually recommend to stay at or below 80% utilization). I have a > workaround for you, however: > > Pick a file you don't need on the filled up ZFS volume. "Empty" the > file contents in a way of your chosing. This should give you some disk > space needed to use "rm" and further empty up your filesystem and > allow for normal operation. This is a bit ugly, but it works. > > - Sincerely, > Dan Naumov > > > > > >>> On Sat, Jun 20, 2009 at 10:36 AM, Mister Olli wrote: > >>> > Hi, > >>> > > >>> > after filling up a ZFS volume until the last byte, I'm unable to delete > >>> > files, with error 'No space left on the device'. > >>> > > >>> > > >>> > > >>> > [root@template-8_CURRENT /test/data2]# df -h > >>> > Filesystem Size Used Avail Capacity Mounted on > >>> > /dev/ad0s1a 8.7G 5.2G 2.8G 65% / > >>> > devfs 1.0K 1.0K 0B 100% /dev > >>> > test 0B 0B 0B 100% /test > >>> > test/data1 1.6G 1.6G 0B 100% /test/data1 > >>> > test/data2 341M 341M 0B 100% /test/data2 > >>> > [root@template-8_CURRENT /test/data2]# zfs list > >>> > NAME USED AVAIL REFER MOUNTPOINT > >>> > test 1.96G 0 26.6K /test > >>> > test/data1 1.62G 0 1.62G /test/data1 > >>> > test/data2 341M 0 341M /test/data2 > >>> > [root@template-8_CURRENT /test/data2]# ls -l data1 |tail -n 20 <-- there are quite a lot of files, so I truncated ;-)) > >>> > -rw-r--r-- 1 root wheel 3072 Jun 20 17:13 20090620165743 > >>> > -rw-r--r-- 1 root wheel 9771008 Jun 20 17:11 20090620165803 > >>> > -rw-r--r-- 1 root wheel 624640 Jun 20 17:12 20090620165809 > >>> > -rw-r--r-- 1 root wheel 1777664 Jun 20 17:14 20090620165810 > >>> > -rw-r--r-- 1 root wheel 4059136 Jun 20 17:15 20090620165817 > >>> > -rw-r--r-- 1 root wheel 23778304 Jun 20 17:13 20090620165925 > >>> > -rw-r--r-- 1 root wheel 20318208 Jun 20 17:13 20090620165952 > >>> > -rw-r--r-- 1 root wheel 28394496 Jun 20 17:10 20090620170013 > >>> > -rw-r--r-- 1 root wheel 23698432 Jun 20 17:12 20090620170021 > >>> > -rw-r--r-- 1 root wheel 26476544 Jun 20 17:19 20090620170100 > >>> > -rw-r--r-- 1 root wheel 19904512 Jun 20 17:15 20090620170132 > >>> > -rw-r--r-- 1 root wheel 23815168 Jun 20 17:14 20090620170142 > >>> > -rw-r--r-- 1 root wheel 6683648 Jun 20 17:11 20090620170225 > >>> > -rw-r--r-- 1 root wheel 19619840 Jun 20 17:11 20090620170322 > >>> > -rw-r--r-- 1 root wheel 13902848 Jun 20 17:13 20090620170331 > >>> > -rw-r--r-- 1 root wheel 28981248 Jun 20 17:13 20090620170346 > >>> > -rw-r--r-- 1 root wheel 18287616 Jun 20 17:11 20090620170355 > >>> > -rw-r--r-- 1 root wheel 16762880 Jun 20 17:16 20090620170405 > >>> > -rw-r--r-- 1 root wheel 26966016 Jun 20 17:10 20090620170429 > >>> > -rw-r--r-- 1 root wheel 5252096 Jun 20 17:14 20090620170502 > >>> > [root@template-8_CURRENT /test/data2]# rm -rf data1 > >>> > rm: data1/20090620141524: No space left on device > >>> > rm: data1/20090620025202: No space left on device > >>> > rm: data1/20090620014926: No space left on device > >>> > rm: data1/20090620075405: No space left on device > >>> > rm: data1/20090620155124: No space left on device > >>> > rm: data1/20090620105723: No space left on device > >>> > rm: data1/20090620170100: No space left on device > >>> > rm: data1/20090620040149: No space left on device > >>> > rm: data1/20090620002512: No space left on device > >>> > rm: data1/20090620052315: No space left on device > >>> > rm: data1/20090620083750: No space left on device > >>> > rm: data1/20090620063831: No space left on device > >>> > rm: data1/20090620155029: No space left on device > >>> > rm: data1/20090619234313: No space left on device > >>> > rm: data1/20090620115346: No space left on device > >>> > rm: data1/20090620075508: No space left on device > >>> > rm: data1/20090620145541: No space left on device > >>> > rm: data1/20090620093335: No space left on device > >>> > rm: data1/20090620101846: No space left on device > >>> > rm: data1/20090620132456: No space left on device > >>> > rm: data1/20090620040044: No space left on device > >>> > rm: data1/20090620091401: No space left on device > >>> > rm: data1/20090620162251: No space left on device > >>> > rm: data1/20090619220813: No space left on device > >>> > rm: data1/20090620010643: No space left on device > >>> > rm: data1/20090620052218: No space left on device > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > Regards, > >>> > --- > >>> > Mr. Olli > >>> > > >>> > _______________________________________________ > >>> > freebsd-current@freebsd.org mailing list > >>> > http://lists.freebsd.org/mailman/listinfo/freebsd-current > >>> > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >>> > > >>> > >>> > >>> > >> > >> > > > > > > > > -- > > When bad men combine, the good must associate; else they will fall one > > by one, an unpitied sacrifice in a contemptible struggle. > > > > Edmund Burke > > _______________________________________________ > > freebsd-fs@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > >