From owner-freebsd-fs@FreeBSD.ORG Mon Apr 16 08:35:15 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 6D82C106566B for ; Mon, 16 Apr 2012 08:35:15 +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 E77AA8FC0A for ; Mon, 16 Apr 2012 08:35:14 +0000 (UTC) Received: from [2a03:7900:2:0:31:3:104:46] (port=43096 helo=go.tuxis.net) by smtp.tuxis.nl with esmtp (Exim 4.71) (envelope-from ) id 1SJhOz-0001IB-Rl for freebsd-fs@freebsd.org; Mon, 16 Apr 2012 10:35:13 +0200 Received: from localhost (localhost [127.0.0.1]) by go.tuxis.net (Postfix) with ESMTP id C49A220C96 for ; Mon, 16 Apr 2012 10:35:41 +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 M4FuoZnKrbkI for ; Mon, 16 Apr 2012 10:35:39 +0200 (CEST) Received: from www.hyperdesktop.nl (unknown [IPv6:::1]) by go.tuxis.net (Postfix) with ESMTP id 330BA20C94 for ; Mon, 16 Apr 2012 10:35:39 +0200 (CEST) Message-ID: <1334565339.4f8bd9db1134e@www.hyperdesktop.nl> Date: Mon, 16 Apr 2012 10:35:39 +0200 From: Mark Schouten To: Volodymyr Kostyrko 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 In-Reply-To: <4F88553B.5030005@gmail.com> References: <4F88553B.5030005@gmail.com> X-Mailer: Group-Office 3.7.42 X-Priority: 3 (Normal) 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: Mon, 16 Apr 2012 08:35:15 -0000 Hi, Op Vrijdag, 13-04-2012 om 18:32 schreef Volodymyr Kostyrk= o: > After reinventing calculator I'm just puzzled and shamed. This = looks=20 > strange. >=20 > Indeed not just a single byte from th= is files should count directly for=20 > the main filesystem. > = > Just curious, what `ls -la /storage/' and `ls -la /storage/.zfs/s= *` show? [root@storage ~]# zfs list -o name,used,referenced,use= dbychildren,usedbydataset,usedbysnapshots,available,mountpoint,quota,res= erv,refquota,refreserv "$@" | sed -r "s/none/ -/g" NAME = USED REFER USEDCHILD USEDDS USEDSNAP AVAIL= MOUNTPOINT QUOTA RESERV REFQUOTA REFRESERV storage = 1.60T 431G 1.18T 431G 0 138G /s= torage - - - - storage/av.https-ict.nl= .OS 20G 16K 0 16K 0 158G - = - - - 20G storage/bestandonline.https= -ict.nl.OS 20G 16K 0 16K 0 158G - = - - - 20G storage/crm.fastbenelux.DATA = 100G 16K 0 16K 0 238G - = - - - 100G storage/crm.fastbenelux.OS = 20G 16K 0 16K 0 158G - - = - - 20G storage/default.do.not.remove = 1G 16K 0 16K 0 139G - - = - - 1G storage/mail.https-ict.nl.DATA 400= G 16K 0 16K 0 538G - - - = - 400G storage/mail.https-ict.nl.OS 20G = 16K 0 16K 0 158G - - - = - 20G storage/webserver.https-ict.nl.DATA 400G 16K= 0 16K 0 538G - - - = - 400G storage/webserver.https-ict.nl.OS 20G 16K = 0 16K 0 158G - - - - = 20G storage/webserver2.https-ict.nl.DATA 20G 16K = 0 16K 0 158G - - - - = 20G storage/webserver2.https-ict.nl.OS 20G 16K 0 = 16K 0 158G - - - - 20G= storage/xlmail.xladsl.nl.DATA 150G 16K 0 = 16K 0 288G - - - - 150G= storage/xlmail.xladsl.nl.os 20G 16K 0 = 16K 0 158G - - - - 20G= [root@storage /storage]# ls -al=20 total 452101743 d= rwxr-xr-x 2 root wheel 18 Mar 24 17:42 . drwxr-xr-x 2= 0 root wheel 512 May 10 2011 .. -rw-r--r-- 1 root whee= l 21474836480 Apr 16 12:40 av.https-ict.nl.OS -rw-r--r-- 1 root = wheel 155692564480 Mar 24 17:42 bestandonline.https-ict.nl.DATA -rw= -r--r-- 1 root wheel 21474836480 Apr 5 12:19 bestandonline.https-i= ct.nl.OS -rw-r--r-- 1 root wheel 107374182400 Apr 16 12:40 crm.f= astbenelux.DATA -rw-r--r-- 1 root wheel 21474836480 Apr 16 12:39= crm.fastbenelux.OS -rw-r--r-- 1 root wheel 1073741824 Apr 5 1= 2:19 default.do.not.remove -rw-r--r-- 1 root wheel 10737418240 = May 12 2011 documentatievm.https-ict.nl -rw-r--r-- 1 root wheel = 429496729600 Apr 15 02:07 mail.https-ict.nl.DATA -rw-r--r-- 1 roo= t wheel 21474836480 Apr 16 12:40 mail.https-ict.nl.OS -rw-r--r-- = 1 root wheel 16106127360 May 16 2011 testvm1.https-ict.nl -rw-r= --r-- 1 root wheel 429496729600 Apr 16 12:40 webserver.https-ict.nl.= DATA -rw-r--r-- 1 root wheel 21474836480 Apr 16 12:40 webserver= .https-ict.nl.OS -rw-r--r-- 1 root wheel 21474836480 Apr 5 12:= 19 webserver2.https-ict.nl.DATA -rw-r--r-- 1 root wheel 21474836= 480 Apr 16 12:40 webserver2.https-ict.nl.OS -rw-r--r-- 1 root whee= l 161061273600 Apr 16 12:40 xlmail.xladsl.nl.DATA -rw-r--r-- 1 ro= ot wheel 21474836480 Apr 16 12:40 xlmail.xladsl.nl.os [root@= storage /storage]# ls -la /storage/.zfs/s*=20 /storage/.zfs/shares:= total 2 dr-xr-xr-x 2 root wheel 2 May 10 2011 . dr-xr-x= r-x 4 root wheel 4 May 10 2011 .. /storage/.zfs/snapsho= t: total 0 dr-xr-xr-x 2 root wheel 2 May 10 2011 . dr-xr= -xr-x 4 root wheel 4 May 10 2011 .. It definitly look= s like the reserved space for the zvols is counted in /storage, but the = written data is counted for /storage as well, instead of the zvols..= Will an upgrade fix this? --=20 Dit bericht is ve= rzonden via https://www.hyperdesktop.nl/. Alles, overal! Mark S= chouten | Tuxis Internet Engineering KvK: 09218193 | http://www.tu= xis.nl/ T: 0318 200208 | info@tuxis.nl M: 06 53463918 | mark@tuxi= s.nl