ZFS fragmentation

General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

ZFS fragmentation

Postby samspeed » 19 Oct 2010, 20:41

Anyone know how to defrag a ZFS pool? In about 6 months of working, speed with pool decreased by 5 times. I use copy from one pool to another for defragmentation by now. But it's a bad method because it needs to free some TB of HDD space.
Junior Member
Posts: 13
Joined: 22 Dec 2009, 19:51

Postby Savagedlight » 19 Oct 2010, 23:19

The following was posted as a reply to the question "Is it possible to defragment a zfs pool?"
phoenix wrote:Not currently. The "block pointer rewrite" feature is what's needed for this (online defragmenting) and a host of other features (migrating between vdev types, removing vdevs from the pool, etc).

It's under development and people are actively working on it, but it's not yet available as part of any ZFS release.
User avatar
Posts: 345
Joined: 06 Jan 2010, 21:17
Location: Norway

Postby jem » 20 Oct 2010, 10:51

Try to keep your pool usage below 80% for decent performance. It's in the ZFS Best Practices guide:

Keep pool space under 80% utilization to maintain pool performance. Currently, pool performance can degrade when a pool is very full and file systems are updated frequently, such as on a busy mail server. Full pools might cause a performance penalty, but no other issues. If the primary workload is immutable files (write once, never remove), then you can keep a pool in the 95-98% utilization range. Keep in mind that even with mostly static content in the 95-98% range, write, read, and resilvering performance might suffer.
Posts: 342
Joined: 23 Oct 2009, 11:24

Postby mururoa » 27 Oct 2010, 15:27

Oh oh, memories of vms disks defragmentation ;)
That was first disk to tape, 2nd on 1st, 3rd on 2nd, 4th ... then 1st to 2nd and tape to first.
Took all the night !
Junior Member
Posts: 90
Joined: 26 Oct 2009, 15:13

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest