From owner-freebsd-geom@FreeBSD.ORG Wed Dec 27 16:12:34 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B14816A415 for ; Wed, 27 Dec 2006 16:12:34 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30308.mail.mud.yahoo.com (web30308.mail.mud.yahoo.com [209.191.69.70]) by mx1.freebsd.org (Postfix) with SMTP id 5FB3713C48F for ; Wed, 27 Dec 2006 16:12:34 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 81898 invoked by uid 60001); 27 Dec 2006 15:45:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=yygvyuXnP7SWhzPYCez1WPguAsR1rEjkw4GIKaaj8BqDHyQrFjKgwHUFhPNsGpP1qrxDFpYms1ix34rCHKh5WPtpJBt52QHt8Xwr92qJWaeO39V/6Vmjnnw/p1AVb/nRwJujAtRa0EqVwjTowDjeABQMe3nR+UzI+DEl1aDT2zs=; X-YMail-OSG: v3fhJUgVM1lVmWQ_ibqNOMGAMdCL87p.VoZuR6wXls9jSom8WKPAEjd9lowHjLeIlZ7KbOPUQe7EdTNBxAE3Iq5y2bhwf.UhJy54uLF158_sTIdbZjzhWAZZRC1n1WxZMMF3vbVtSG5owYU- Received: from [85.212.15.42] by web30308.mail.mud.yahoo.com via HTTP; Wed, 27 Dec 2006 07:45:54 PST Date: Wed, 27 Dec 2006 07:45:54 -0800 (PST) From: "R. B. Riddick" To: Christian Laursen , freebsd-geom@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <359629.81860.qm@web30308.mail.mud.yahoo.com> Cc: Subject: Re: geom_mirror delayed synchronizing question 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: Wed, 27 Dec 2006 16:12:34 -0000 --- Christian Laursen wrote: > What is missing is automatic synchronization after running this > command. If I manualle run "gmirror rebuild name prov" on the stale > arrays, synchronization starts, but I need this to happen > automatically. > > The small changes I have made so far: > http://borderworlds.dk/~xi/gmirror.diff > > Any hints on how to write the code to find the relevant mirrors and > initiate the rebuild would be much appreciated. > Wasnt that feature already implemented? "graid5 configure -a" and "... -n"? I would be glad if it was possible for gmirror to detect an idle gmirror-device... If it is idle, requests r issued more frequent and if the device experiences concurrent requests (e. g. from fsck), gmirror does no or hardly any sync requests... But this strategy could lead to a very very lengthly rebuild process on a very busy server, which contracts a RAID0-like risk of (complete) device failure... Maybe this "nice feature" should be implemented somehow intelligently? Maybe phases of rebuild and phases where concurrent user-land requests r executed? E. g.: 10 second undisturbed user-land (if there r any pending requests) and then 1 second gmirror's rebuild requests... -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com