Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2020 16:23:09 +0200
From:      infoomatic <infoomatic@gmx.at>
To:        freebsd-questions@freebsd.org, freebsd-virtualization@freebsd.org
Subject:   Re: zfs compression of a volume
Message-ID:  <b6fd49b9-ad72-2bba-1dce-3246c422e68b@gmx.at>
In-Reply-To: <20200715140444.GA72748@bastion.zyxst.net>
References:  <20200715140444.GA72748@bastion.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Compression starts when you activate it, so all data added will be
compressed.

In order to have the data compressed that was on the volume before
compression was set, you have to save the data again on that volume,
e.g. copy the data away with dd and then dd it again to the volume. A
better solution would probably be to create another volume with
compression and use zfs snapshots to send the data to the new volume.


On 15.07.20 16:04, tech-lists wrote:

> Hi,
>
> If a zfs-backed bhyve instance is created, and compression is not set,
> if the
> instance is turned off, then compression set on the host for the
> volume (and
> then the bhyve instance is started), is the instance compressed in its
> entirety at that time, or just data subsequently added to it?
>
> thanks,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6fd49b9-ad72-2bba-1dce-3246c422e68b>