From owner-freebsd-stable@FreeBSD.ORG Sat Jul 4 23:39:02 2009 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 8B312106568E for ; Sat, 4 Jul 2009 23:39:02 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 1589B8FC0A for ; Sat, 4 Jul 2009 23:39:01 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: by bwz9 with SMTP id 9so521550bwz.43 for ; Sat, 04 Jul 2009 16:39:01 -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=nGfK4TKWhAXWFZp1hKfE+MvIGPJ+S/imxNsHMEMDBS8=; b=Jjs1KA0GVNJeGMY82Oh8VgpVLSd2nPKYGx0q9xD2c7LgZ6k/cs/AOsm1CohebjltZ1 bM+bl/hZ+k2McO8G5PE/90KjYmp57Bt0soN7zJbB6ZmjOOuuK63jXW3XPZXHEzQoDapw pBVYTTfTa/yBGXJdM2SCgqQs5RXfTxelTQq7E= 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=taDBaGisaXZXHDc9y6gzEmfFexvrfBwM5w6eS3J6VkwhvsPrl3JwlsIpYpB3dJ3myy 1XkIOZza+QhHyZSDN41R0G65IdqoAHAmCpt2tRi1pXUugRl+onUt3r6IDjt5Ui28J6vU StV6b+kq5QwokGSJPrRQeHOuStvGB90VVGXcY= MIME-Version: 1.0 Received: by 10.204.103.129 with SMTP id k1mr2884498bko.22.1246748958551; Sat, 04 Jul 2009 16:09:18 -0700 (PDT) In-Reply-To: References: Date: Sun, 5 Jul 2009 01:09:18 +0200 Message-ID: <14989d6e0907041609q62257ecdn6b80fd3b99b40df8@mail.gmail.com> From: Christian Walther To: Dan Naumov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-STABLE Mailing List Subject: Re: ZFS and df weirdness 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: Sat, 04 Jul 2009 23:39:02 -0000 Hi Dan, basically the "size" in df shows the current free space plus the used space of the specific filesystem. This makes sense: Since per default all disk space is shared, and thus can be used by all filesystems, all filesystems need to report it as free space. Well, and used space has to be added to the complete size, of course. In your setup, there are 1.5TB available, but DATA uses 292GB (rounded to 300GB). Both value add up to 1.8TB, giving the overall size of your pool. (There is another rounding error because of your other filesystems, but they are rather small.) If you, say, add 400GB to tank/home/jago your df would look something like this: > tank/DATA 1.4T 292G 1.1T 16% /DATA > tank/home/jago 1.1T 400G 1.1T 0% /home/jago It needs some time to get used to the way df displays data. IMO things are getting easier when one remembers that the OS actually treats every Z Filesystem like an individual device. And BTW: The real fun starts when you add reservation and quotas to some of your filesystems. ;-) HTH Christian