From owner-freebsd-stable@FreeBSD.ORG Fri Aug 13 15:19:23 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95FB21065695 for ; Fri, 13 Aug 2010 15:19:23 +0000 (UTC) (envelope-from andimayer82@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6F71D8FC15 for ; Fri, 13 Aug 2010 15:19:23 +0000 (UTC) Received: by pxi17 with SMTP id 17so1009914pxi.13 for ; Fri, 13 Aug 2010 08:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=S16qWiyUOW1KmF5Ni6xybJj/GQpHAynusv5uaXI1sg0=; b=TwjFXCCNzt7v8wwhQ4oMGnPUb1zYV0Jb3jWGdjZh1ptOojH01O92BheBlUyGlEGrel PqxYXMhYZwf2RILf7cKBktMQjsm/J69JMiT0N9uw+M1beR+xj35527gmLTJDcBM9xM4Q rUZizn8eikl4V4Us793iqbIyQnlUU2Jn+hBmU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=F0dwdDkFJN8b5/M9DN4VS8/IYo2o9q0rFJ4GDFqiyE8JpjRN8zrhlXYU7QnykTz7zZ gl5Nj3wtZIhccWvYcXGWm9GUqkT4TIggTZ5R7ZJ7R0kqTIp8KAm823HUzc18GU9wEZyZ XbpFcB+CrQx2Bd3txU4ldzcJA9vN8ubB2z1tQ= MIME-Version: 1.0 Received: by 10.142.161.12 with SMTP id j12mr1389213wfe.82.1281711084682; Fri, 13 Aug 2010 07:51:24 -0700 (PDT) Received: by 10.220.190.203 with HTTP; Fri, 13 Aug 2010 07:51:24 -0700 (PDT) Date: Fri, 13 Aug 2010 16:51:24 +0200 Message-ID: From: Andreas Mayer To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: zfs destroy snapshot doesn't free space X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 15:19:23 -0000 Hi, I have a problem with my ZFS storage: some application filled a certain directory in /var completely up with data and the server runs a script which takes a snapshot every night. So, ~650 GB of the available 700 GB were filled up. Then I destroyed the last two snapshots (each referencing about 300 GB) and the files on the live system so that now there are no snapshots for /var and "du -hs /var" reports a size of 2 GB. However, zfs still reports that 623G are referenced: # zfs list rpool/var NAME USED AVAIL REFER MOUNTPOINT rpool/var 623G 48.4G 623G /var # zfs get all rpool/var ... rpool/var usedbysnapshots 0 - rpool/var usedbydataset 623G - rpool/var usedbychildren 0 - rpool/var usedbyrefreservation 0 - ... If I take a snapshot again, this snapshot also references 623G. What can I do to reclaim this space? I have to do this before I can set a quota (I have set quotas for all other file systems now :) ). -- Best regards, Andreas