From owner-freebsd-fs@freebsd.org Wed Feb 17 07:04:06 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 36FABAAA744 for ; Wed, 17 Feb 2016 07:04:06 +0000 (UTC) (envelope-from namaedayo00@gmail.com) Received: from mail-yw0-x234.google.com (mail-yw0-x234.google.com [IPv6:2607:f8b0:4002:c05::234]) (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 EFDE0FA9 for ; Wed, 17 Feb 2016 07:04:05 +0000 (UTC) (envelope-from namaedayo00@gmail.com) Received: by mail-yw0-x234.google.com with SMTP id e63so6312014ywc.3 for ; Tue, 16 Feb 2016 23:04:05 -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; bh=CcRtjv9zBEeYk1VW3/6siBB+0KuSPsA23HK2lFdJs5s=; b=hrlso37EuRKPvYOHbM6bA0oXJoQSybntQPhnMDabEF6j1+O3O8m8AWHIZG0mgLOXbq f2tdFpTDnYJuUWBXzBs1MoSw1EolUjbbEsAxO3EZhk2/DcEpxfVrzDj3PB/AmbWa4Y/0 a9sg1DF8Pd6eBNpfBy3K6LV0mXZNEBvfGPr8qv2Cepk96s/hx7UlVLNIr/Wu4MHr2nAK j5QihmfmPJ3LBWAxeP3pSpktjXkfO3153CSRD4SI7zMZHfklw+MTHXjgoMBJGq4Kn2lE GdNVb/X9MO7PX1Qy6ZNqHminIiDQzKjlfs/1ug/XYIA988HcPYIYkxz3P6nl+hw/UKGV TOeg== 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; bh=CcRtjv9zBEeYk1VW3/6siBB+0KuSPsA23HK2lFdJs5s=; b=YgcUwAAiQatLDH+MDC/wUwCxK1GsR0pGskqbly98dG4qZYjewfs+tiwDiUdf8POWlg FefSGPEcT77yQBrUzpA/AwG/bnzGnBL5R1BCSEAKjKirovolmcr7/XmAqf5lPqfmnFGb el+4WEfHoYp1R6hGIkICxNHbZx2gXuxTYCLxrUcBoTMwkFT1XMKKLBQTCHC5EwXgabd/ MZpbsONY18EDr0fMvqPspdO2f6yzLPjj4r4CTCQElwh0s1K4H2L7uiqhr9r/qLiG/lSV xV0G6GZpRg/NE4Hf+D/zBU06WHv1T/TH5IyQuvFI6eIgxOrnXyub+TAxHU8tm+lP5B6a 1h3g== X-Gm-Message-State: AG10YOSN6Fq2Fem5CIs9JU7UlV689SBdCqMfo4rLUPmoJepU3K0YfoxFpDqfdZ/tj27ALzP/sX87g92DfKiwGA== X-Received: by 10.13.195.196 with SMTP id f187mr15697148ywd.196.1455692645166; Tue, 16 Feb 2016 23:04:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.202.2 with HTTP; Tue, 16 Feb 2016 23:03:45 -0800 (PST) From: namaedayo Date: Wed, 17 Feb 2016 16:03:45 +0900 Message-ID: Subject: Re: Free space on ZFS is not reported correctly(?) [Resolved] To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Wed, 17 Feb 2016 07:04:06 -0000 Thank you for reply. I can't thank you enough! Adam Nowacki wrote: > By default zvols have refreservation property set to zvol size. You can > set it to 'none' to make unused zvol disk space available to other datasets. dedup is enabled for "zpool0/test-dedup" in experimental purposes. I have knowledge of the risk of dedup. It has received the advice many times in the kind people. If ZFS to LZMA2 compression is implemented I'm glad. kpneal wrote: > Using dedup takes a surprisingly large amount of memory. Unless you only have a small amount of data to dedup you probably shouldn't have dedup turned on with only 32GB of memory. [root@namaedayo-hp ~]# zfs get refreservation zpool0/namae-iSCSI NAME PROPERTY VALUE SOURCE zpool0/namae-iSCSI refreservation 82.5G local # zfs set refreservation=none zpool0/InnoDB # zfs set refreservation=none zpool0/FreeBSD-10-1_i386-icc # zfs set refreservation=none zpool0/FreeBSD-10-1_i386-icc_zfs # zfs set refreservation=none zpool0/Ubuntu-14-04_server # zfs set refreservation=none zpool0/Ubuntu_Desktop # zfs set refreservation=none zpool0/namae-iSCSI # zfs set refreservation=none zpool0/fedora-21-i686-LXDE # zfs set refreservation=none zpool0/Ubuntu_Desktop $ zfs list NAME USED AVAIL REFER MOUNTPOINT zpool0 4.73T 580G 216K /zpool0 zpool0/FreeBSD-Buckup 169G 580G 169G /zpool0/FreeBSD-Buckup zpool0/FreeBSD-Root 864G 580G 811G / zpool0/Ubuntu-14-04_server 21.9G 580G 21.9G - zpool0/Ubuntu_Desktop 7.18G 580G 7.18G - zpool0/Ubuntu_Desktop-i386 135G 650G 48.9G - zpool0/freebsd-swap 66.0G 630G 16.1G - zpool0/namae-iSCSI 59.3G 580G 59.3G - zpool0/namaedayo_work 351G 580G 346G /zpool0/namaedayo_work zpool0/test-dedup 53.8G 580G 53.8G /zpool0/test-dedup zpool0/test-lz4 47.8G 580G 47.8G /zpool0/test-lz4 $ df -h Filesystem Size Used Avail Capacity Mounted on zpool0/FreeBSD-Root 1.4T 811G 580G 58% / 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