From owner-freebsd-fs@freebsd.org Mon May 27 09:56:09 2019 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 A0A8115BEB6B for ; Mon, 27 May 2019 09:56:09 +0000 (UTC) (envelope-from nutsbastogne@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 982048CD58 for ; Mon, 27 May 2019 09:56:08 +0000 (UTC) (envelope-from nutsbastogne@gmail.com) Received: by mail-ed1-x535.google.com with SMTP id w33so22510461edb.10 for ; Mon, 27 May 2019 02:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pp1FSK5GHJs/RXL+1qWKci3tLFfwrYRlDNEJswdorbo=; b=X1iK8xyyMZO7PjZBvBgE8EVND0+vFhT7MafTZROZeX3AZcAuXrkGtUa3y2JYddULko c+/m/rfrSX4hj+2j9T8JUwI5OW9sbfVV8TfViq/U4x03Vv/kh9iptcp+mzEMQWjtZMq5 DUzUqFLcvtecP9q7XIx/LfDgQF45h+usDU0VaqTL8yNRe6pnk2ncfqMc1J9w/zfmXe5P nKiWqMzfgfxBdIeQP/HmpZ4esyfMS7nF9dgqtTM/CN2Sb1oJ0nGyR7UwwIZxDAO0iaLO 3hPwZHECFMBxOddSoHC+iEaue14PijKxVolOsi5GcIU8rp7kM1XXPVqgG3F4XXZt9qhO zYtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pp1FSK5GHJs/RXL+1qWKci3tLFfwrYRlDNEJswdorbo=; b=Z/ZC9ArQvE30y8bGIvxtvmDo+tcYVVgVe4CNUnOO3VdfZ1QUrhHnUHz4eKUIak6Gn7 IZHqTDscuRJPRzj+QeeRYcxB1q6Zo4c8vTUM677rWEMaedP/EHNMH22GJ4QaiDdf1YrU msvL86vCMEh/dfwbNkZkoYv0tcUIT891HJT1Mw7J2vSU86YZP2ZqrNe7xFS8yAQUL/F5 KHEBEln9HCetFGYUWkZvAQcYO0/dga0lKtbaxnRTEyX8MTQ9MWBrUS3jDZcxnFuHKRJO 1aiAx646k+8l75PNgnUzUn9Pms7mfibEdKvPTT8fiP1h869Lega5I1oJow8tI9eQSote cqAg== X-Gm-Message-State: APjAAAUf3YfLIlh0uXJ7DV542A4CnfxaqEUAslxaFk8Cf+W/Wuzf/l8Q J/5JkWFUd2ZRkgAz9TGo/uu4Ld/hrZQ9Nr7pl1lygK3c X-Google-Smtp-Source: APXvYqxN5QJmvZbVovr4mURx6Ym6C0sVOFfzNKWIHR6VeRwU7Gygp8vHSUoUXzUJeeBPfDLaxRJtkI60QjxqncZj4Ms= X-Received: by 2002:a50:91e3:: with SMTP id h32mr27735786eda.103.1558950967403; Mon, 27 May 2019 02:56:07 -0700 (PDT) MIME-Version: 1.0 From: Nuts Bastogne Date: Mon, 27 May 2019 11:55:56 +0200 Message-ID: Subject: ZFS space consumption To: freebsd-fs@freebsd.org X-Rspamd-Queue-Id: 982048CD58 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=X1iK8xyy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of nutsbastogne@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=nutsbastogne@gmail.com X-Spamd-Result: default: False [-6.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[5.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; IP_SCORE(-2.77)[ip: (-9.28), ipnet: 2a00:1450::/32(-2.19), asn: 15169(-2.29), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.92)[-0.924,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2019 09:56:10 -0000 Hi All, I'm confused about the zfs consumption of space. I'm using ZFS to create clone from a sysprep and use it as a zvol for vm connected via iscsi. The zvol has a size of 256GB. But several dataset have a space comsuption bigger than the size of the zvol. I thought this could be happen when we use snapshot but this is not my case. here information from one zvol impacted : type volume volsize 256G used 483G referenced 507G copies 1 refreservation none compression lz4 usedbydataset 483G written 483G logicalused 238G logicalreferenced 251G logicalused and logicalreferenced are correct, so the vm didnt see a disk bigger than 256GB. As used, usedbydataset, referenced properties don't include metadata neither snapshot i dont'know what it could be. After some research on the web some people had the same issue du to the blocksize of their disk and had to change the ashift to 12. but this is our configuration already. disk : (from diskinfo -v) SSD 512 # sectorsize 3840755982336 # mediasize in bytes (3.5T) 7501476528 # mediasize in sectors 4096 # stripesize volblocksize = 16k ashift = 12 What i can check to go deeper on this issue ? or this is just a normal behavior du to my configuration ?