From owner-freebsd-fs@freebsd.org Mon May 14 16:17:52 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B6CEDF826C for ; Mon, 14 May 2018 16:17:52 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from mail.inparadise.se (h-112-105.A444.priv.bahnhof.se [158.174.112.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2D9F83599 for ; Mon, 14 May 2018 16:17:50 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id 4BD1741B64; Mon, 14 May 2018 18:10:06 +0200 (CEST) Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id bAw6x8dggXkV; Mon, 14 May 2018 18:10:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id 3A46641BC2; Mon, 14 May 2018 18:10:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.inparadise.se 3A46641BC2 X-Virus-Scanned: amavisd-new at inparadise.se Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6EWP-e4pKz0V; Mon, 14 May 2018 18:10:03 +0200 (CEST) Received: from nexus6p.inparadise.se (nexus6p.inparadise.se [172.16.1.122]) by mail.inparadise.se (Postfix) with ESMTPSA id 0840041B64; Mon, 14 May 2018 18:10:03 +0200 (CEST) Date: Mon, 14 May 2018 18:10:01 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Releasing deleted blocks from a sparse ZVOL To: freebsd-fs@freebsd.org, Paul Esson , "freebsd-fs@freebsd.org" From: =?ISO-8859-1?Q?Karli_Sj=F6berg?= Message-ID: X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2018 16:17:52 -0000 Paul Esson skrev: (14 maj 2018 17:35:21 CEST) >Hi Folks, > >I'm attempting to use a sparse ZVOL from a FreeBSD 11=2E1-RELEASE host as >a data disk for a bhyve FreeBSD 11=2E1-RELEASE guest that in turn uses >this device as the source for a ZFS filesystem=2E When I delete data >from the filesystem on the guest this is reflected in its used space, >but not in the ZVOL on the host=2E I've read suggestions that the use of >a block driver that supports TRIM or SCSi unmap is crucial such as >virtio-scsi, but from what I can tell my vm-bhyve implementation is >using virtio - certainly the disk1_type parameter in the configuration >file has a value of "virtio-blk"=2E Hey! Can't help you with changing the driver, I'll just state the obvious that = since it's called SCSI unmap, of course you need virtio-scsi in order for i= t to work:) Good luck with it! /K > >Can anyone confirm this is indeed the issue and whether it is possible >to switch to the relevant driver? Or am I barking up the wrong tree >altogether? > >Host ZFS Filesystem > >NAME PROPERTY VALUE SOURCE >dc1-hn-01 type filesystem - >dc1-hn-01 creation Mon Apr 23 14:35 2018 - >dc1-hn-01 used 36=2E7G - >dc1-hn-01 available 78=2E2T - >dc1-hn-01 referenced 201K - >dc1-hn-01 compressratio 1=2E00x - >dc1-hn-01 mounted yes - >dc1-hn-01 quota none default >dc1-hn-01 reservation none default >dc1-hn-01 recordsize 128K default >dc1-hn-01 mountpoint /export/data/dc1-hn-01 local >dc1-hn-01 sharenfs off default >dc1-hn-01 checksum on default >dc1-hn-01 compression off default >dc1-hn-01 atime on default >dc1-hn-01 devices on default >dc1-hn-01 exec on default >dc1-hn-01 setuid on default >dc1-hn-01 readonly off default >dc1-hn-01 jailed off default >dc1-hn-01 snapdir hidden default >dc1-hn-01 aclmode discard default >dc1-hn-01 aclinherit restricted default >dc1-hn-01 canmount on default >dc1-hn-01 xattr off temporary >dc1-hn-01 copies 1 default >dc1-hn-01 version 5 - >dc1-hn-01 utf8only off - >dc1-hn-01 normalization none - >dc1-hn-01 casesensitivity sensitive - >dc1-hn-01 vscan off default >dc1-hn-01 nbmand off default >dc1-hn-01 sharesmb off default >dc1-hn-01 refquota none default >dc1-hn-01 refreservation none default >dc1-hn-01 primarycache all default >dc1-hn-01 secondarycache all default >dc1-hn-01 usedbysnapshots 0 - >dc1-hn-01 usedbydataset 201K - >dc1-hn-01 usedbychildren 36=2E7G - >dc1-hn-01 usedbyrefreservation 0 - >dc1-hn-01 logbias latency default >dc1-hn-01 dedup off default >dc1-hn-01 mlslabel - >dc1-hn-01 sync standard default >dc1-hn-01 refcompressratio 1=2E00x - >dc1-hn-01 written 201K - >dc1-hn-01 logicalused 4=2E12G - >dc1-hn-01 logicalreferenced 36=2E5K - >dc1-hn-01 volmode default default >dc1-hn-01 filesystem_limit none default >dc1-hn-01 snapshot_limit none default >dc1-hn-01 filesystem_count none default >dc1-hn-01 snapshot_count none default >dc1-hn-01 redundant_metadata all default > > >Host ZFS volume - used by vm-bhyve guest > >NAME PROPERTY VALUE =20 > SOURCE >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 type volume =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 creation Wed May 2 >14:06 2018 - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 used 4=2E70G = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 available 78=2E2T = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 referenced 4=2E70G = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 compressratio 1=2E00x = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 reservation none =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 volsize 28T =20 > local >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 volblocksize 8K =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 checksum on =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 compression off =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 readonly off =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 copies 1 =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 refreservation none =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 primarycache all =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 secondarycache all =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 usedbysnapshots 0 =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 usedbydataset 4=2E70G = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 usedbychildren 0 =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 usedbyrefreservation 0 =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 logbias latency =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 dedup off =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 mlslabel =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 sync standard =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 refcompressratio 1=2E00x = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 written 4=2E70G = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 logicalused 2=2E06G = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 logicalreferenced 2=2E06G = =20 > - >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 volmode dev =20 > local >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 snapshot_limit none =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 snapshot_count none =20 > default >dc1-hn-01/vm/dc1-olbp-sn-11/disk1 redundant_metadata all =20 > default > >Guest ZFS Filesystem > >NAME PROPERTY VALUE SOURCE >dc1-sn-11 type filesystem - >dc1-sn-11 creation Wed May 2 15:49 2018 - >dc1-sn-11 used 752K - >dc1-sn-11 available 26=2E9T - >dc1-sn-11 referenced 176K - >dc1-sn-11 compressratio 1=2E00x - >dc1-sn-11 mounted yes - >dc1-sn-11 quota none default >dc1-sn-11 reservation none default >dc1-sn-11 recordsize 128K default >dc1-sn-11 mountpoint /export/data/dc1-sn-11 local >dc1-sn-11 sharenfs off default >dc1-sn-11 checksum on default >dc1-sn-11 compression off default >dc1-sn-11 atime on default >dc1-sn-11 devices on default >dc1-sn-11 exec on default >dc1-sn-11 setuid on default >dc1-sn-11 readonly off default >dc1-sn-11 jailed off default >dc1-sn-11 snapdir hidden default >dc1-sn-11 aclmode discard default >dc1-sn-11 aclinherit restricted default >dc1-sn-11 canmount on default >dc1-sn-11 xattr off temporary >dc1-sn-11 copies 1 default >dc1-sn-11 version 5 - >dc1-sn-11 utf8only off - >dc1-sn-11 normalization none - >dc1-sn-11 casesensitivity sensitive - >dc1-sn-11 vscan off default >dc1-sn-11 nbmand off default >dc1-sn-11 sharesmb off default >dc1-sn-11 refquota none default >dc1-sn-11 refreservation none default >dc1-sn-11 primarycache all default >dc1-sn-11 secondarycache all default >dc1-sn-11 usedbysnapshots 0 - >dc1-sn-11 usedbydataset 176K - >dc1-sn-11 usedbychildren 576K - >dc1-sn-11 usedbyrefreservation 0 - >dc1-sn-11 logbias latency default >dc1-sn-11 dedup off default >dc1-sn-11 mlslabel - >dc1-sn-11 sync standard default >dc1-sn-11 refcompressratio 1=2E00x - >dc1-sn-11 written 176K - >dc1-sn-11 logicalused 153K - >dc1-sn-11 logicalreferenced 55K - >dc1-sn-11 volmode default default >dc1-sn-11 filesystem_limit none default >dc1-sn-11 snapshot_limit none default >dc1-sn-11 filesystem_count none default >dc1-sn-11 snapshot_count none default >dc1-sn-11 redundant_metadata all default > > >Regards, > >Paul Esson | Redstor Limited >e paul=2Eesson@redstor=2Ecom > > > >_______________________________________________ >freebsd-fs@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-fs >To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd=2Eorg" --=20 Skickat fr=C3=A5n min Android-enhet med K-9 Mail=2E Urs=C3=A4kta min f=C3= =A5ordighet=2E