Using GTP and glabel for ZFS arrays

Adam Vande More amvandemore at gmail.com
Sat Jul 24 05:00:04 UTC 2010


On Fri, Jul 23, 2010 at 9:25 PM, Freddie Cash <fjwcash at gmail.com> wrote:

> It's theoretical as I have not investigated how to create sparse files
> on FreeBSD, nor have I done this.  It's based on several posts to the
> zfs-discuss mailing list where several people have done this on
> OpenSolaris.
>

Easiest way to create sparse eg 20 GB assuming test.img doesn't exist
already


truncate -s 20g test.img
ls -sk test.img
1 test.img

The other standard dd method works fine too, trucate just makes it easy.

-- 
Adam Vande More


More information about the freebsd-stable mailing list