From owner-freebsd-fs@freebsd.org Tue Feb 16 07:08:16 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC5F6AA94C1 for ; Tue, 16 Feb 2016 07:08:16 +0000 (UTC) (envelope-from namaedayo00@gmail.com) Received: from mail-yw0-x236.google.com (mail-yw0-x236.google.com [IPv6:2607:f8b0:4002:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 758051166 for ; Tue, 16 Feb 2016 07:08:16 +0000 (UTC) (envelope-from namaedayo00@gmail.com) Received: by mail-yw0-x236.google.com with SMTP id u200so132536322ywf.0 for ; Mon, 15 Feb 2016 23:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=5Z7BZYbxuJvhubUObZGL0y4CkF/J8B4q8NOgixcBw+0=; b=bJ/e6DZ3PWRqyAF5w36AT8Jg+YLF014WZBa3J+19yK4IZtF1kdQRFlMAmFhyq1Y3iu IcbGHgSMKrBkAALVnnBP+QWIXWIY0OReg8c6KGNZUPf8JtW0PgGLS28mgjb+yxxUFGym GEW5TO+ZFegEMDfEooUyOLl/RIknQhcSjthHMJJU9cadqMiZUvLckL2s7/D2FkP2V3yC oU7ox3dWVyXkNhVqDVPK0/O0nN3DX1MCapqMCiJ01LO73z+94W69swSVXMrbKY0rgjeG LHEsB/EUqu65cqYxOfR1VbwDszLWgew+h1gAQUuWakfpqMwTiCKUe5edDzHAsg7n1XPu TaaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=5Z7BZYbxuJvhubUObZGL0y4CkF/J8B4q8NOgixcBw+0=; b=OdxKt1jAlm73KL/DmFmXwSStFiJj9doFZN3cGwcljnrzCYDF6a7PK15tuRQPYjiY2V rnHSlIqXpmBh3+yjlKWcPAZ1grcFj2AG/Zql1mjVlbuPDIeD5ZJ8OX8OJlyaxa8bOTcv Jxg1U+U/o/dCsLxdazFntQXiv8uUME9HPWHPUF4Nx1lGQgUnaNM2ybib2d+TJNWeiR1x zJheVaqbFPmxwPgLy5wEmatnNGdt+C4Tho2kXHecX2/7sDSWUVmc5jCVzdTu3C3ToXy1 7Gaeqep70PYPzWfiN7D24tbcfbxrSVPyb1jSBEhc9hEvdKUjqzE4kRCyZEDmhilp4PuT 9nWg== X-Gm-Message-State: AG10YOT/2yqxbUQGLWoSGFwyNxS/vzT5cBsK6cOV7+YXEYadWMySnQDoSZChu/MwgvPRuhed/poLiQ/GJTaapA== X-Received: by 10.13.217.129 with SMTP id b123mr12302777ywe.297.1455606495457; Mon, 15 Feb 2016 23:08:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.202.2 with HTTP; Mon, 15 Feb 2016 23:07:56 -0800 (PST) From: namaedayo Date: Tue, 16 Feb 2016 16:07:56 +0900 Message-ID: Subject: Free space on ZFS is not reported correctly(?) To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 07:08:16 -0000 I=E2=80=99m Japanese. My English ability is not native level, So if I say something wrong, please don=E2=80=99t be offended. The clumsy is sorry because it is generated by Google translation. Free space on ZFS is not reported correctly. There is a "zpool list -v" in sufficient disk space, but dataset other than zvol can not use it. Chassis : HP Prolient ML110 G7 CPU : Xeon E3-1220 Memory : 32GB ECC HDD : TOSHIBA DT01ACA300 x4 SSD : Intel SSD DC S3500 80GB ZIL 8GB, L2ARC 16GB (L2ARC has been temporarily manually disabled by D2764) $ uname -a FreeBSD namaedayo-hp.local 10.2-RELEASE-p8 FreeBSD 10.2-RELEASE-p8 #14 r292713: Fri Dec 25 11:49:13 JST 2015 root@namaedayo-hp.local:/usr/obj/usr/src/sys/NAMAEDAYO amd64 $ zpool list -v NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALT= ROOT zpool0 5.44T 4.58T 881G - 23% 84% 2.08x ONLINE - mirror 2.72T 2.29T 441G - 24% 84% ada0p2 - - - - - - ada2p2 - - - - - - mirror 2.72T 2.29T 441G - 23% 84% ada1p2 - - - - - - ada3p2 - - - - - - ada4p2 7.94G 1.51M 7.94G - 33% 0% $ zfs list NAME USED AVAIL REFER MOUNTPOINT zpool0 5.25T 45.3G 216K /zp= ool0 zpool0/FreeBSD-Buckup 169G 45.3G 169G /zpool0/FreeBSD-Buckup zpool0/FreeBSD-Root 862G 45.3G 810G / zpool0/Ubuntu-14-04_server 206G 230G 21.9G - zpool0/Ubuntu_Desktop 82.5G 121G 7.18G - zpool0/Ubuntu_Desktop-i386 135G 115G 48.9G - zpool0/freebsd-swap 66.0G 95.2G 16.1G - zpool0/namae-iSCSI 82.5G 68.5G 59.3G - zpool0/namaedayo_work 351G 45.3G 346G /zpool0/namaedayo_work zpool0/test-dedup 53.8G 45.3G 53.8G /zpool0/test-dedup zpool0/test-lz4 47.8G 45.3G 47.8G /zpool0/test-lz4 (Omitted because too much) $ df -h Filesystem Size Used Avail Capacity Mounted on zpool0/FreeBSD-Root 855G 810G 45G 95% / devfs 1.0K 1.0K 0B 100% /dev linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc linsysfs 4.0K 4.0K 0B 100% /compat/linux/sys fdescfs 1.0K 1.0K 0B 100% /dev/fd procfs 4.0K 4.0K 0B 100% /proc zpool0/FreeBSD-Buckup 214G 169G 45G 79% /zpool0/FreeBSD-Buckup zpool0/namaedayo_work 391G 346G 45G 88% /zpool0/namaedayo_work zpool0/test-dedup 99G 54G 45G 54% /zpool0/test-dedup zpool0/test-lz4 93G 48G 45G 51% /zpool0/test-lz4 (Omitted because too much) $ gpart show =3D> 34 5860533101 ada0 GPT (2.7T) 34 6 - free - (3.0K) 40 128 1 freebsd-boot (64K) 168 5860532960 2 freebsd-zfs (2.7T) 5860533128 7 - free - (3.5K) =3D> 34 5860533101 ada1 GPT (2.7T) 34 6 - free - (3.0K) 40 128 1 freebsd-boot (64K) 168 5860532960 2 freebsd-zfs (2.7T) 5860533128 7 - free - (3.5K) =3D> 34 5860533101 ada2 GPT (2.7T) 34 6 - free - (3.0K) 40 128 1 freebsd-boot (64K) 168 5860532960 2 freebsd-zfs (2.7T) 5860533128 7 - free - (3.5K) =3D> 34 5860533101 ada3 GPT (2.7T) 34 6 - free - (3.0K) 40 128 1 freebsd-boot (64K) 168 5860532960 2 freebsd-zfs (2.7T) 5860533128 7 - free - (3.5K) =3D> 34 156301421 ada4 GPT (75G) 34 6 - free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064 16777216 2 freebsd-zfs (8.0G) 16778280 33554432 3 freebsd-zfs (16G) 50332712 105968743 - free - (51G) # zdb -C zpool0 | grep 'ashift' ashift: 12 $ zfs get compressratio zpool0 NAME PROPERTY VALUE SOURCE zpool0 compressratio 1.13x - $ zpool status pool: zpool0 state: ONLINE scan: resilvered 1.78T in 3h27m with 0 errors on Tue Jul 15 10:11:44 2014 config: NAME STATE READ WRITE CKSUM zpool0 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada0p2 ONLINE 0 0 0 ada2p2 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 ada1p2 ONLINE 0 0 0 ada3p2 ONLINE 0 0 0 logs ada4p2 ONLINE 0 0 0 errors: No known data errors