From owner-freebsd-geom@FreeBSD.ORG Wed Dec 27 17:29:32 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 BD23B16A40F for ; Wed, 27 Dec 2006 17:29:32 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from ferengi.borderworlds.dk (ferengi.borderworlds.dk [80.166.152.7]) by mx1.freebsd.org (Postfix) with ESMTP id 6A7E313C46D for ; Wed, 27 Dec 2006 17:29:32 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from dominion.borderworlds.dk (dominion.borderworlds.dk [10.1.0.10]) by ferengi.borderworlds.dk (Postfix) with ESMTP id 46A77B80C for ; Wed, 27 Dec 2006 18:29:31 +0100 (CET) Received: by dominion.borderworlds.dk (Postfix, from userid 2000) id C6FE88C7; Wed, 27 Dec 2006 18:29:30 +0100 (CET) To: "R. B. Riddick" References: <359629.81860.qm@web30308.mail.mud.yahoo.com> From: Christian Laursen Date: Wed, 27 Dec 2006 18:29:30 +0100 In-Reply-To: <359629.81860.qm@web30308.mail.mud.yahoo.com> (R. B. Riddick's message of "Wed, 27 Dec 2006 07:45:54 -0800 (PST)") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-geom@freebsd.org 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 17:29:32 -0000 "R. B. Riddick" writes: > --- 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"? No, -a and -n enables and disables autosynchronization. I want autosynchronization but with a delay. > 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... That would probably work too. -- Christian Laursen