Hi, I wonder if is possible to configure the gmirror rebuild speed. Neither I've found any related info in the net nor the man pages. -- I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain. Bene Gesserit Litany Against Fear.
On Thu, Apr 22, 2010 at 09:19:29AM +0200, Jordi Espasa Clofent wrote:> I wonder if is possible to configure the gmirror rebuild speed. > Neither I've found any related info in the net nor the man pages.To make it slower, I assume? When is that a good idea? Cheers, -- Andrew
Hello, On Thu, Apr 22, 2010 at 06:59:54PM +1000, Andrew Reilly wrote:> To make it slower, I assume? When is that a good idea?When the rebuild is bringing your production system to a crawl and you are willing to face the tradeoff - hopefully because you have an additional backup for the worst case. Best regards, Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J?rgen Egeling AG Mannheim 108285
Jordi Espasa Clofent wrote:> Hi, > > I wonder if is possible to configure the gmirror rebuild speed. > Neither I've found any related info in the net nor the man pages. >This doesn't do exactly what you want, but might address your problem, anyway: try "renice +20 [gmirror PID]", where "[gmirror PID]" is the PID of the system process handling your mirror (ps auxw | grep g_mirror). I know that back when ZFS code ran in separate processes back in RELENG_7, renicing the zpa_zio* and spa_scrub_thread processes made the system a lot more responsive during a scrub. -Boris