Mike Gerdts wrote:
On Fri, Jan 22, 2010 at 1:00 PM, John Hoogerdijk
<john.hoogerd...@sun.com> wrote:
Is there a way to zero out unused blocks in a pool?  I'm looking for ways to
shrink the size of an opensolaris virtualbox VM and
using the compact subcommand will remove zero'd sectors.

I've long suspected that you should be able to just use mkfile or "dd
if=/dev/zero ..." to create a file that consumes most of the free
space then delete that file.  Certainly it is not an ideal solution,
but seems quite likely to be effective.
I tried this with mkfile - no joy.

jmh


_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to