Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2023 14:50:52 +0100
From:      void <void@f-m.fm>
To:        freebsd-fs@freebsd.org
Subject:   Re: free space considerations writing bhyve image to a zvol
Message-ID:  <ZS_ivB48NWpD1D8s@int21h>
In-Reply-To: <1733602178.6691.1697636557003@localhost>
References:  <ZS_WZD-JlHEo_Em5@int21h> <1733602178.6691.1697636557003@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZS_ivB48NWpD1D8s>