From owner-freebsd-geom@FreeBSD.ORG Thu Sep 4 15:59:11 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98382106566C for ; Thu, 4 Sep 2008 15:59:11 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 591B28FC13 for ; Thu, 4 Sep 2008 15:59:11 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KbHEk-0006ke-0s for freebsd-geom@freebsd.org; Thu, 04 Sep 2008 16:59:10 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KbHEj-0004UJ-W8 for freebsd-geom@freebsd.org; Thu, 04 Sep 2008 16:59:09 +0100 To: freebsd-geom@freebsd.org Message-Id: From: Pete French Date: Thu, 04 Sep 2008 16:59:09 +0100 Subject: Could someone take a look at a small patch to gmirror ? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 15:59:11 -0000 Hi, I was told on -stable that I might get more luck here regarding a patch I wrote to gmirror a while ago. It simply adds a new balacing algorithm called 'prefer-low' which does the reverse to 'prefer' - i.e. will always read from the disc with the lowest priority, not the highest. I also moved the default priority to the centre of the range, so that drives can be added to a mirror with a lower or higher priority than the original. I submitted this as PR in May here: http://www.freebsd.org/cgi/query-pr.cgi?pr=123630 I have been using this patch live on our database servers since then and it works fine. I have stress tested it as much as I can, and was hoping that someone else might like to take a look, give a bit of testing and commit it. The patch includes manpage changes as well as code changes, it was written relative to stable at the time, but patches against 7.1 prerelease cleanly as well. I was hopinh it might make it into 7.1, but maybe it is a bit too late for that. Anyway, I hope someone can take a look thanks, -pete.