Re-sparse a file-backed IO device + zfs
Adam Vande More
amvandemore at gmail.com
Wed Dec 14 00:34:08 UTC 2016
On Mon, Dec 12, 2016 at 7:20 PM, javocado <javocado at gmail.com> wrote:
> Hi,
>
> I'm setting up a bhyve wherein:
>
> host # truncate -s 1T vol.file
> host # du -ah vol.file
> 200K vol.file
>
> host # /usr/sbin/bhyve ... -s 4,ahci-hd,vol.file ...
>
> Then inside the bhyve I create a zpool (ada0 = vol.file):
>
> bhyve # zpool create -O devices=off -O atime=off -O compression=on -m
> /mnt/data1 data1 ada0
>
I think there used to be a utility called sparsify.
--
Adam
More information about the freebsd-fs
mailing list