From owner-freebsd-fs@FreeBSD.ORG Sat Jun 20 19:42:41 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 476981065674; Sat, 20 Jun 2009 19:42:41 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 9C1F08FC27; Sat, 20 Jun 2009 19:42:38 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1081221ywe.13 for ; Sat, 20 Jun 2009 12:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XMrfkyvxV8RJwpTP3HHmxaDWqnVSz0r0cI+w1G9MkLg=; b=FYgNe4koU7QNNcd5I+Jbh8RypUOC4Vkh1H5+3Gw2NvVKvewqyYhu+/J8aCMdyyyUlR 31dUV6AdbsmLKAdDYpQASE8sE+h/pg3ntYWPcGTAETqjWc0+cd5NbxJ/Zcz9NbZBM5bL cq7AEpQxiuThB6RX16Oi/VEKXYM2HXfuNZElw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=loYpMkBhUZRK0DiWHowKVswqGGNRwyuB8eckmtiLLWnpYBghpWE3MF2IX61csKRUxM ds8WBCAtzDM+OPsaW24rS7olBsRXIWAQzinHdGGRLJiuxIN20l/2uyQ3qTw3dnPsSCZM lWLKf5yKy0YEux8hZuy9YGYAusT3klg6lHxgw= MIME-Version: 1.0 Received: by 10.100.141.15 with SMTP id o15mr5719029and.20.1245526957800; Sat, 20 Jun 2009 12:42:37 -0700 (PDT) In-Reply-To: <3c1674c90906201232x63ddee19yf91aeac30f3401bb@mail.gmail.com> References: <1245519413.26909.60.camel@phoenix.blechhirn.net> <3c1674c90906201050w15e4cd5dpae76cd70d64b4e92@mail.gmail.com> <1245525965.26909.69.camel@phoenix.blechhirn.net> <3c1674c90906201232x63ddee19yf91aeac30f3401bb@mail.gmail.com> Date: Sat, 20 Jun 2009 22:42:37 +0300 Message-ID: From: Dan Naumov To: Kip Macy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2009 19:42:42 -0000 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 dele= te >>> > files, with error 'No space left on the device'. >>> > >>> > >>> > >>> > [root@template-8_CURRENT /test/data2]# df -h >>> > Filesystem =A0 =A0 Size =A0 =A0Used =A0 Avail Capacity =A0Mounted on >>> > /dev/ad0s1a =A0 =A08.7G =A0 =A05.2G =A0 =A02.8G =A0 =A065% =A0 =A0/ >>> > devfs =A0 =A0 =A0 =A0 =A01.0K =A0 =A01.0K =A0 =A0 =A00B =A0 100% =A0 = =A0/dev >>> > test =A0 =A0 =A0 =A0 =A0 =A0 0B =A0 =A0 =A00B =A0 =A0 =A00B =A0 100% = =A0 =A0/test >>> > test/data1 =A0 =A0 1.6G =A0 =A01.6G =A0 =A0 =A00B =A0 100% =A0 =A0/te= st/data1 >>> > test/data2 =A0 =A0 341M =A0 =A0341M =A0 =A0 =A00B =A0 100% =A0 =A0/te= st/data2 >>> > [root@template-8_CURRENT /test/data2]# zfs list >>> > NAME =A0 =A0 =A0 =A0 USED =A0AVAIL =A0REFER =A0MOUNTPOINT >>> > test =A0 =A0 =A0 =A01.96G =A0 =A0 =A00 =A026.6K =A0/test >>> > test/data1 =A01.62G =A0 =A0 =A00 =A01.62G =A0/test/data1 >>> > test/data2 =A0 341M =A0 =A0 =A00 =A0 341M =A0/test/data2 >>> > [root@template-8_CURRENT /test/data2]# ls -l data1 |tail -n 20 =A0 = =A0 =A0 =A0 =A0<-- there are quite a lot of files, so I truncated ;-)) >>> > -rw-r--r-- =A01 root =A0wheel =A0 =A0 =A03072 Jun 20 17:13 2009062016= 5743 >>> > -rw-r--r-- =A01 root =A0wheel =A0 9771008 Jun 20 17:11 20090620165803 >>> > -rw-r--r-- =A01 root =A0wheel =A0 =A0624640 Jun 20 17:12 200906201658= 09 >>> > -rw-r--r-- =A01 root =A0wheel =A0 1777664 Jun 20 17:14 20090620165810 >>> > -rw-r--r-- =A01 root =A0wheel =A0 4059136 Jun 20 17:15 20090620165817 >>> > -rw-r--r-- =A01 root =A0wheel =A023778304 Jun 20 17:13 20090620165925 >>> > -rw-r--r-- =A01 root =A0wheel =A020318208 Jun 20 17:13 20090620165952 >>> > -rw-r--r-- =A01 root =A0wheel =A028394496 Jun 20 17:10 20090620170013 >>> > -rw-r--r-- =A01 root =A0wheel =A023698432 Jun 20 17:12 20090620170021 >>> > -rw-r--r-- =A01 root =A0wheel =A026476544 Jun 20 17:19 20090620170100 >>> > -rw-r--r-- =A01 root =A0wheel =A019904512 Jun 20 17:15 20090620170132 >>> > -rw-r--r-- =A01 root =A0wheel =A023815168 Jun 20 17:14 20090620170142 >>> > -rw-r--r-- =A01 root =A0wheel =A0 6683648 Jun 20 17:11 20090620170225 >>> > -rw-r--r-- =A01 root =A0wheel =A019619840 Jun 20 17:11 20090620170322 >>> > -rw-r--r-- =A01 root =A0wheel =A013902848 Jun 20 17:13 20090620170331 >>> > -rw-r--r-- =A01 root =A0wheel =A028981248 Jun 20 17:13 20090620170346 >>> > -rw-r--r-- =A01 root =A0wheel =A018287616 Jun 20 17:11 20090620170355 >>> > -rw-r--r-- =A01 root =A0wheel =A016762880 Jun 20 17:16 20090620170405 >>> > -rw-r--r-- =A01 root =A0wheel =A026966016 Jun 20 17:10 20090620170429 >>> > -rw-r--r-- =A01 root =A0wheel =A0 5252096 Jun 20 17:14 20090620170502 >>> > [root@template-8_CURRENT /test/data2]# =A0rm -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. > > =A0 =A0Edmund 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" >