From nobody Wed Oct 18 13:50:52 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 4S9XLR4Whqz4x3c8 for ; Wed, 18 Oct 2023 13:50:55 +0000 (UTC) (envelope-from void@f-m.fm) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 4S9XLQ6lxQz3DXW for ; Wed, 18 Oct 2023 13:50:54 +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="ib9/eYpL"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=XMAarx7C; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 66.111.4.26 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 563605C01E6 for ; Wed, 18 Oct 2023 09:50:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 18 Oct 2023 09:50:54 -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=1697637054; x=1697723454; bh=L5 xUZyiYNiFRHv+asVDo9TIYn2HBrimRpmMTOXinWYg=; b=ib9/eYpLHechvmuzRa h497O5jnhdXDZxueR4gD7BwLnsljhNQFDImTOKGCZv7ZT+Pl/WVTERjK3HOaHxfZ ZZ17ftBR9qU3Neb0k+jmnhkqvP53KkbqB7D7wML8YZi4NAmo/AuJxdf0J3Jx/OL2 Y0+EK5JesuQrZdDSOGLlI4syRsB1pwSaVRjeohq/EvDbXrJd3KNU446N8nsX1mOF equMMdtZxLL1WJOsyI5tCTDs8R9Tnhe0BPuDZihcG782gb+PYZ914zamYsOvAzTr uRGc+uF4XVtq/tbnzM7rKGL5Bvb5YQB1XrtfeX7Tg0F/gs1H8d/7OU15jM/Oxp2z VlMA== 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=1697637054; x=1697723454; bh=L5xUZyiYNiFRH v+asVDo9TIYn2HBrimRpmMTOXinWYg=; b=XMAarx7C3FGdNtgBtfzT/5O8RFlfc auMHYkQGtziddHLobe+p4EJlt4wBapo84cHPcv/eJGeOWlvWEVQ+isy1ypCrWrhe FYRlJ0SIjbxgr9ZLbtUzAXCAds5Fwjk4TGQ9iK6IVzLz6b4PzF+Cp8Yc9LTmNSlr j1Ab+pc1ErK9SXYC6N/Rc0VmftAurNTj11DcosqEpsA6iaxbr7aNBO31+tiTjV88 NFcniALOyHgG8eJ609PZe4WXw+olteLpj8XNB7QTGWJSr8+yC5xsxtdXZz1XLzV/ daI9/rXVem2hFoHE0sDRMNZwxgDOU38HzeoZ8fRg7BZ0hUNvutqRoMiFw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeeggdeijecutefuodetggdotefrodftvf 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 09:50:53 -0400 (EDT) Date: Wed, 18 Oct 2023 14:50:52 +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: <1733602178.6691.1697636557003@localhost> 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: <1733602178.6691.1697636557003@localhost> 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)[-0.997]; 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.26:c]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.26:from]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.26: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: 4S9XLQ6lxQz3DXW On Wed, Oct 18, 2023 at 03:42:37PM +0200, Ronald Klop wrote: >You can test how much it will compress your linuxvm.img. > >$ [/tmp] ls -l ./bla.txt >-rw------- 1 ronald wheel 5242880 Oct 18 15:39 ./bla.txt > >$ [/tmp] lz4 -c ./bla.txt | wc -c > 20604 > > >So do "lz4 -c linuxvm.img | wc -c" and it will print about the size of the zvol you need. thanks for that. I'm concerned about wrecking the linux vm's filesystem internally in this process though. I know it's easier to expand than contract; what i don't know is the detail >NB: What keeps you from just trying to write it to the zvol and see if it works? downtime & space considerations on the system. And curious if people have tried similar, and if they can recall the results. Searching hasn't come up with a near-enough matching context. --