From nobody Thu Oct 19 02:03:31 2023 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S9rbs2b15z4xpBF for ; Thu, 19 Oct 2023 02:03:37 +0000 (UTC) (envelope-from void@f-m.fm) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4S9rbr1qNhz3cRm for ; Thu, 19 Oct 2023 02:03:36 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm3 header.b=lJXkGH65; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=UxZoKdC8; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 66.111.4.28 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 121415C01E4 for ; Wed, 18 Oct 2023 22:03:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 18 Oct 2023 22:03:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1697681015; x=1697767415; bh=H2 McK63KYFAryu8oH1lNCojkfAlIPgnQh6PQZtn/9uc=; b=lJXkGH65ZkMRwvk1iH dNaEh7R18GtKT8bkdcbsfVMX3pHcV9utb+84ELqogHwYsJvQEKa8utW9Qj7r5+NJ kHbIXN5RW/zw5OtdVu6n71EUzFMBsNIeno/IiluYmhaFYeQ3DGsP3rp/sUn3ux6Q SzbeoFkgmbFs8G8M0JDbN+eviKE/VdTy+t6awdi938/YjLTn3m6mB4+L3KqT24/R OWPtzl4SPkv57qy4idOuJwAXsciSsmdfJU4eFM1bQ9+XE7Qi3u13k6oI1YP1pC29 xkQEaEgftxiucRc/9gfyNpgQ6gMV5GirAbw4SNF8JP31OqsrXIBzg8Bor16FVuIy bKoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1697681015; x=1697767415; bh=H2McK63KYFAry u8oH1lNCojkfAlIPgnQh6PQZtn/9uc=; b=UxZoKdC85KIRN9j6RfpANsrjcEKqs M4hX4/yUBHCFWRppAnHEVBIKTbADgv9IOB4N/LGtbR67zN06FpPlNqOqSP3tq2q1 esEDgc1i/6WAIlw/xFHpN6nVeFKaDhSGgLQCSzReinn2Y5pdFWKsm9tagc5lUJd4 WXSAEhbHhehFGdemjVElfp9+4KcmFEoIpi0hyfFD0Cwh3qgZZ0BTSPZBCzK7bWJn sPCVTmxqssyNVn98i1OJVtdF4ukJ7Ex4JWScwsNDA5ig05kl/Ss+H55unKg8j8D2 V73kWdVhPhZVwkRc5/MGwyi2NtZBrs5Gxv7IH2MPr+38tB2vyg/HdSV9A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeehgdehfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpehvohhiugcuoehvohhiugesfhdqmhdrfhhmqeenucggtffrrght thgvrhhnpeekleduvdelhfeileefgffghfffkedtheellefgudfgvdegkeejjedutdehhe fgueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehv ohhiugesfhdqmhdrfhhm X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 18 Oct 2023 22:03:34 -0400 (EDT) Date: Thu, 19 Oct 2023 03:03:31 +0100 From: void To: freebsd-fs@freebsd.org Subject: Re: free space considerations writing bhyve image to a zvol Message-ID: Mail-Followup-To: freebsd-fs@freebsd.org References: <202310181605.39IG5vYv007076@higson.cam.lispworks.com> List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <202310181605.39IG5vYv007076@higson.cam.lispworks.com> X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.70 / 15.00]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm3,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.28:from]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4S9rbr1qNhz3cRm On Wed, Oct 18, 2023 at 05:05:57PM +0100, Martin Simmons wrote: >How did you measure this external size? The truncate command will create a >file taking 0 bytes of space initially. You need to use du linuxvm.img on the >host to see how much is being used at the moment. ls -lah on the host >> If i write the vm to a 1.6Tb zvol with compression set (lz4), >> would it be feasible to expect the vm to work? >> >> I expect it might break the vm's filesystem internally, >> now, thinking about it. > >If the writing succeeds then I don't see how it would affect the vm's >filesystem, because that just sees the same data regardless of how it is >actually stored by the host. > >More interesting is what will happen if the vm's filesystem becomes fuller and >the compressed size exceeds 1.6Tb. The host will report an error, but I don't >know if the vm will handle it gracefully (it might see it as the equivalent of >a disk write error). yeah, thats my concern. I think I'll play safe and first make a 2Tb zvol space on the new host then dd the linuxvm.img to it thanks --