Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2010 00:00:03 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Using GTP and glabel for ZFS arrays
Message-ID:  <AANLkTi=y%2BUJE9rgt-X3Wj6zHTCUfu67QnaDBzayb=a-5@mail.gmail.com>
In-Reply-To: <AANLkTi=fMR1pQj11qCqMWwCM9nsovsm_PVh7%2BJeWF0ED@mail.gmail.com>
References:  <4C47B57F.5020309@langille.org> <4C48E695.6030602@langille.org> <718046944.20100723032259@nitronet.pl> <4C4A42D5.7080805@langille.org> <AANLkTi=fMR1pQj11qCqMWwCM9nsovsm_PVh7%2BJeWF0ED@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 23, 2010 at 9:25 PM, Freddie Cash <fjwcash@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=y%2BUJE9rgt-X3Wj6zHTCUfu67QnaDBzayb=a-5>