Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2023 03:03:31 +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:  <ZTCGI7uXIhyNqrhb@int21h>
In-Reply-To: <202310181605.39IG5vYv007076@higson.cam.lispworks.com>
References:  <ZS_WZD-JlHEo_Em5@int21h> <202310181605.39IG5vYv007076@higson.cam.lispworks.com>

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



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