From owner-freebsd-fs@FreeBSD.ORG Fri Apr 13 12:20:53 2012 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 D9ADF1065672 for ; Fri, 13 Apr 2012 12:20:53 +0000 (UTC) (envelope-from mark@tuxis.nl) Received: from smtp.tuxis.nl (smtp.tuxis.nl [IPv6:2a03:7900:2:0:31:3:104:34]) by mx1.freebsd.org (Postfix) with ESMTP id 461EB8FC20 for ; Fri, 13 Apr 2012 12:20:53 +0000 (UTC) Received: from [2a03:7900:2:0:31:3:104:46] (port=34803 helo=go.tuxis.net) by smtp.tuxis.nl with esmtp (Exim 4.71) (envelope-from ) id 1SIfUi-0004tS-7w for freebsd-fs@freebsd.org; Fri, 13 Apr 2012 14:20:52 +0200 Received: from localhost (localhost [127.0.0.1]) by go.tuxis.net (Postfix) with ESMTP id 27E1B20581 for ; Fri, 13 Apr 2012 14:21:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at www.hyperdesktop.nl Received: from go.tuxis.net ([127.0.0.1]) by localhost (go.tuxis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vmCIJvr5LuS1 for ; Fri, 13 Apr 2012 14:21:13 +0200 (CEST) Received: from www.hyperdesktop.nl (unknown [IPv6:::1]) by go.tuxis.net (Postfix) with ESMTP id C65BF2057F for ; Fri, 13 Apr 2012 14:21:13 +0200 (CEST) Message-ID: <1334319673.4f881a39b32a8@www.hyperdesktop.nl> Date: Fri, 13 Apr 2012 14:21:13 +0200 From: Mark Schouten To: "freebsd-fs@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced by Group-Office 3.7.42 X-Mailer: Group-Office 3.7.42 X-Priority: 3 (Normal) Subject: 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 12:20:53 -0000 Hi, I'm having some issues with a FreeBSD box using ZFS to se= rve iscsi to other boxes. [root@storage ~]# zpool list N= AME SIZE USED AVAIL CAP HEALTH ALTROOT storage 1.77T = 431G 1.34T 23% ONLINE - As you can see, the zpool is at o= nly 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.60= T 138G 431G /storage storage/ZFS_FS_1 2= 0G 158G 16K - storage/ZFS_FS_2 20G 15= 8G 16K -=20 storage/ZFS_FS_3 100G 238G = 16K -=20 storage/ZFS_FS_4 20G 158G 16K = -=20 storage/ZFS_FS_5 1G 139G 16K -= =20 storage/ZFS_FS_6 400G 538G 16K - = storage/ZFS_FS_7 20G 158G 16K -=20 s= torage/ZFS_FS_8 400G 538G 16K -=20 storag= e/ZFS_FS_9 20G 158G 16K -=20 storage/ZFS= _FS_10 20G 158G 16K -=20 storage/ZFS_FS_11= 20G 158G 16K -=20 storage/ZFS_FS_12 = 150G 288G 16K -=20 storage/ZFS_FS_13 = 20G 158G 16K -=20 These are fiesystems that= are created with the following command. zfs create -V ${size}GB ${Z= FS_ROOT}/${diskname} Now, it seems that zpool only counts the d= ata that is actually written on the disk, and that zfs counts both the s= um of the individual filesystems *and* the data actually written on disk= . If I was to create a new filesystem of 138GB, the filesystem would be = full, eventhough that that's not the case. This seems weird, but= I'm not sure if it's me doing something wrong, or if its a bug. Please = enlighten me, thanks. Some more info: [root@sto= rage ~]# uname -a FreeBSD storage.storage 8.2-RELEASE FreeBSD 8.2-RE= LEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/u= sr/obj/usr/src/sys/GENERIC amd64 [root@storage ~]# zpool get a= ll storage NAME PROPERTY VALUE SOURCE storage s= ize 1.77T - storage used 431G -= storage available 1.34T - storage capacity 2= 3% - storage altroot - default storage= health ONLINE - storage guid 1090519474454= 5589060 default storage version 15 default sto= rage bootfs - default storage delegation on = default storage autoreplace off default sto= rage cachefile - default storage failmode wai= t default storage listsnapshots off default= [root@storage ~]# zfs get all storage NAME PROPERTY= VALUE SOURCE storage type = filesystem - storage creation Tue Ma= y 10 11:59 2011 - storage used 1.60T = - storage available 138G - s= torage referenced 431G - storage comp= ressratio 1.00x - storage mounted = yes - storage quota none = default storage reservation none = default storage recordsize 128K = default storage mountpoint /storage d= efault storage sharenfs off default= storage checksum on default s= torage compression off default storage= atime on default storage devi= ces on default storage exec = on default storage setuid = on default storage readonly = off default storage jailed off = default storage snapdir hidden = default storage aclmode groupmask = default storage aclinherit restricted d= efault storage canmount on default= storage shareiscsi off default s= torage xattr off temporary stora= ge copies 1 default storage ve= rsion 4 - storage utf8only = off - storage normalization none= - storage casesensitivity sensitive = - storage vscan off defau= lt storage nbmand off default= storage sharesmb off default s= torage refquota none default storage= refreservation none default storage prim= arycache all default storage secondaryc= ache all default storage usedbysnapshots = 0 - storage usedbydataset 431G = - storage usedbychildren 1.18T = - storage usedbyrefreservation 0 = - --=20 Dit bericht is verzonden via https://www.hyperdes= ktop.nl/. Alles, overal! Mark Schouten | Tuxis Internet Engine= ering KvK: 09218193 | http://www.tuxis.nl/ T: 0318 200208 | info= @tuxis.nl M: 06 53463918 | mark@tuxis.nl