From owner-freebsd-fs@FreeBSD.ORG Fri Apr 13 13:11:08 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2E78C106567E for ; Fri, 13 Apr 2012 13:11:08 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 53F8E8FC12 for ; Fri, 13 Apr 2012 13:11:06 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3105538bkc.13 for ; Fri, 13 Apr 2012 06:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=8a3+FSZSmiUrREBGkCZ/yreDd8uDtst2dim4AjwIlTU=; b=t2HZn29G8jWnNeZpo22VtwOl2dx4a93UsePwwgadCck2HikJ52y3eQTOJHyDmHZOaN FXAHQ/2l9gMEoe6d+nPVQg06Fl/lf/Xpte+O0iySV1H4DjWzviZvHjJyeSxOEvgs1I7x dzaqZRZR7gOOzAS3v9ZC0rtd2RW3Y1ULC7wbYhzwg9+EZ4HIiPGm+3wuM8JQULlOPI9n MPhUTwD5k1IG4KGAR6awy2Qi2FUQKqaT9gItAJX1Vadu7CfJJ73mx7QmnHKJiKJUNYwf EWJLtGJZAD70Ol2laetLb2w40c2ZqBmkS4xoTX01aWz0gT8MP8gNG6DqYvCUlgtnjEXV vZuA== Received: by 10.205.129.4 with SMTP id hg4mr501530bkc.16.1334322665120; Fri, 13 Apr 2012 06:11:05 -0700 (PDT) Received: from green.tandem.local (223-39-132-95.pool.ukrtel.net. [95.132.39.223]) by mx.google.com with ESMTPS id u16sm16493857bkf.10.2012.04.13.06.11.03 (version=SSLv3 cipher=OTHER); Fri, 13 Apr 2012 06:11:04 -0700 (PDT) Message-ID: <4F8825E5.3040809@gmail.com> Date: Fri, 13 Apr 2012 16:11:01 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:11.0) Gecko/20120315 Firefox/11.0 SeaMonkey/2.8 MIME-Version: 1.0 To: Mark Schouten References: <1334319673.4f881a39b32a8@www.hyperdesktop.nl> In-Reply-To: <1334319673.4f881a39b32a8@www.hyperdesktop.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-fs@freebsd.org" Subject: Re: ZFS and disk usage 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: Fri, 13 Apr 2012 13:11:08 -0000 Mark Schouten wrote: > Hi, > > I'm having some issues with a FreeBSD box using ZFS to serve iscsi to other boxes. > > [root@storage ~]# zpool list > NAME SIZE USED AVAIL CAP HEALTH ALTROOT > storage 1.77T 431G 1.34T 23% ONLINE - > > As you can see, the zpool is at only 23% of it's capacity. However, if you get a list of filesystems with "zfs list", you see that there is only 138GB free space left. > [root@storage ~]# zfs list > NAME USED AVAIL REFER MOUNTPOINT > storage 1.60T 138G 431G /storage > storage/ZFS_FS_1 20G 158G 16K - > storage/ZFS_FS_2 20G 158G 16K - > storage/ZFS_FS_3 100G 238G 16K - > storage/ZFS_FS_4 20G 158G 16K - > storage/ZFS_FS_5 1G 139G 16K - > storage/ZFS_FS_6 400G 538G 16K - > storage/ZFS_FS_7 20G 158G 16K - > storage/ZFS_FS_8 400G 538G 16K - > storage/ZFS_FS_9 20G 158G 16K - > storage/ZFS_FS_10 20G 158G 16K - > storage/ZFS_FS_11 20G 158G 16K - > storage/ZFS_FS_12 150G 288G 16K - > storage/ZFS_FS_13 20G 158G 16K - > > These are fiesystems that are created with the following command. > zfs create -V ${size}GB ${ZFS_ROOT}/${diskname} `zfs create -V` withous `-s` creates reserved volume that eats all needed space immediately. Technically zfs pool is filled only for 23%, but logically you have only 138G left unassigned. -- Sphinx of black quartz judge my vow.