From owner-freebsd-questions@freebsd.org Wed Aug 16 12:13:25 2017 Return-Path: Delivered-To: freebsd-questions@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 EF677DD837E; Wed, 16 Aug 2017 12:13:25 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.dweimer.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C418380C03; Wed, 16 Aug 2017 12:13:25 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from www.dweimer.net (opnsense.dweimer.local [10.9.5.1]) (authenticated bits=0) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPSA id v7GCDND8090769 (version=TLSv1.2 cipher=DHE-RSA-CHACHA20-POLY1305 bits=256 verify=NO); Wed, 16 Aug 2017 07:13:23 -0500 (CDT) (envelope-from dweimer@dweimer.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dweimer.net; s=2017.01.31; t=1502885604; bh=LGatc+v/H+08Wt1ofViqeMLPnWvQoWB+xX6hICdGdlc=; h=Date:From:To:Cc:Subject:Reply-To:In-Reply-To:References; b=Vcw5YQAnqDt/ClOeXhWF7mJ5+JuiUiiMryadnoXYoN9oD7td2bj9JnE+vadHCtFY5 uOFZc0IzinjvDldQPPTb8om5mEV0XYREX7ErgH3MeVg9QDmeIpCJfT86uF3dIHCEvL MOZqF6Ao733bSmalTaIzzpBPKWYl5JIkaeUCqM0gamPZv8SQv+ysfdkY/NwwQce9tk YlDnX89xkOUWhrZ1jRJmlleRDqxy5OLUTCozALdpehAQMUmZ7oln6F7F55OLLmNjnt 7M6BPhSUEJbTJkEq0PtW0WOP11PYhv0SzCVJwnADfyuPUkYU6jodz5IvdfLVulkb7H R/f2XTiZPlW+w== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 16 Aug 2017 07:13:18 -0500 From: "Dean E. Weimer" To: Johan Helsingius Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: ZFS and free space Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: References: <126aaff1-58af-f7d5-b47e-c7d894b45606@gmail.com> <20170816105759.GA16608@vps.markoturk.info> Message-ID: <8aa7a9097f9145db160ace4363c8c3e2@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.3.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2017 12:13:26 -0000 On 2017-08-16 7:02 am, Johan Helsingius wrote: > Marko, > >> What is the output of >> $ zfs list -o name,mountpoint,mounted,used,refer,ratio,compress > > NAME MOUNTPOINT MOUNTED USED REFER RATIO > COMPRESS > zroot /zroot yes 10.2T 140K 1.07x > lz4 > zroot/ROOT none no 3.01G 140K 2.61x > lz4 > zroot/ROOT/default / yes 3.01G 3.01G 2.61x > lz4 > zroot/home /home/storage yes 5.98T 5.98T 1.06x > lz4 > zroot/tmp /tmp yes 163K 163K 1.01x > lz4 > zroot/usr /usr no 4.17T 140K 1.09x > lz4 > zroot/usr/home /usr/home yes 4.17T 4.17T 1.09x > lz4 > zroot/usr/ports /usr/ports yes 1.26G 1.26G 2.19x > lz4 > zroot/usr/src /usr/src yes 140K 140K 1.00x > lz4 > zroot/var /var no 1.43M 140K 4.82x > lz4 > zroot/var/audit /var/audit yes 140K 140K 1.00x > lz4 > zroot/var/crash /var/crash yes 140K 140K 1.05x > lz4 > zroot/var/log /var/log yes 767K 767K 5.61x > lz4 > zroot/var/mail /var/mail yes 140K 140K 1.00x > lz4 > zroot/var/tmp /var/tmp yes 140K 140K 1.00x > lz4 > > So I guess it is zroot/usr (/usr) that isn't mounted for > some reason but holds a bunch of stuff! > > Julf zroot/usr contains the datasets under it even if not mounted, its used to pass inherited information to the data sets under it. Its the symbolic link issue, they are hiding data. you have two symbolic links mentioned earlier: # file /home /home: symbolic link to usr/home # ls -id /usr/home/storage/ /home/storage 18 /home/storage 18 /usr/home/storage/ the zroot/home is mounted to /home/storage and zroot/usr/home is mounted to /usr/home There is something funny going on here, use: du -shx /home/* the -x will keep it from showing a different file system If it still shows /usr/home/storage as 4.2T then the zroot/home data set has a hidden storage folder If it changes size the zroot/usr/home dataset has a hidden storage folder that you are not seeing -- Thanks, Dean E. Weimer http://www.dweimer.net/