Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2018 00:18:25 +0100
From:      Mark Martinec <Mark.Martinec+freebsd@ijs.si>
To:        freebsd-fs@freebsd.org
Subject:   Reducing ZFS fragmentation by copying to larger disk
Message-ID:  <c2e1f7bd61bd080737e4b887e248d82a@ijs.si>

next in thread | raw e-mail | index | archive | help
Having a ZFS filesystem with two 4 TB disks in a mirror that
is 85 % full and apparently pretty much fragmented (scrubs
or a resilver takes excessively long time), I intend to move
its contents to a new pair of disks twice the size.

My question is what method to use so that in the end the copy will
be less fragmented:

1. attach new disks to a ZFS mirror and let them resilver, then
    remove the old disks (Would the copied content be any less
    fragmented, or perhaps would the added free space just
    relieve some of the problem?)

2. use zfs send / receive to make a copy
    (is this any better than method #1 ?)

3. use rsync to make a copy (losing snapshots, and would likely
    take much longer)


Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c2e1f7bd61bd080737e4b887e248d82a>