Speeding up resilvering

Matthew Seaman matthew at FreeBSD.org
Wed Jul 8 13:51:06 UTC 2015


Hi,

I've a zpool which is taking an inordinately long time to resilver and
replace a device.  It had only got to about 8% completion after a day,
implying over a week to resilver about 6TB data.

Now, I've applied the resilver performance tuning sysctls from
https://wiki.freebsd.org/ZFSTuningGuide:

vfs.zfs.scrub_delay=0
vfs.zfs.top_maxinflight=128
vfs.zfs.resilver_min_time_ms=5000
vfs.zfs.resilver_delay=0

but it doesn't seem to have made a great deal of difference.  Most of
the benefit there would apparently come from reducing scrub_delay or
resilver_delay -- but this system is only booted to single user mode, so
the drives are otherwise idle and the resilver should have automatically
switched to running full throttle anyhow.

Given the machine is not going to be doing anything else other than
resilvering for the time being, is there any more aggressive tuning or
tricks to get it to go faster that people would recommend?

	Cheers,

	Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20150708/93f6f215/attachment.bin>


More information about the freebsd-fs mailing list