From owner-freebsd-geom@FreeBSD.ORG Tue Jul 6 18:13:27 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1358016A4CE for ; Tue, 6 Jul 2004 18:13:27 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id B184243D55 for ; Tue, 6 Jul 2004 18:13:26 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 13914ACAEE; Tue, 6 Jul 2004 20:13:25 +0200 (CEST) Date: Tue, 6 Jul 2004 20:13:25 +0200 From: Pawel Jakub Dawidek To: John-Mark Gurney Message-ID: <20040706181325.GM12007@darkness.comp.waw.pl> References: <20040706113242.GK12007@darkness.comp.waw.pl> <20040706175554.GP57659@funkthat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IkUYAkBqujFk6FKo" Content-Disposition: inline In-Reply-To: <20040706175554.GP57659@funkthat.com> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: geom@FreeBSD.org Subject: Re: GEOM and retaste. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 18:13:27 -0000 --IkUYAkBqujFk6FKo Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 06, 2004 at 10:55:54AM -0700, John-Mark Gurney wrote: +> Pawel Jakub Dawidek wrote this message on Tue, Jul 06, 2004 at 13:32 +02= 00: +> > I'm still fighting with 'stop' command for geom_mirror class. +> > It should works, just like in my other class: turn off the given +> > geom/provider/device. +> > But for geom_mirror, I need to open all disks with r1w1e1 perms, +> > so when I call 'stop' command and I close those disks, they are +> > retasted and mirror is created once again. +> > I don't want to touch metadata to mark all disks as inactve, because +> > after kld module is unloaded and loaded again I want this mirror +> > to be setup automatically. +> >=20 +> > Any ideas? +>=20 +> Add state to the geom_mirror class to know what mirrors are disabled... +> then when they appear, you just ignore them... and make sure the +> memory used by the state table is destroyed upon unload... and then +> reload, they'll be back... Imagine that box have few years of uptime and there were many mirrors enabled/disabled... +> I can't think of any other way since geom itself doesn't know enough +> information about the class to prevent you from tasting the devices +> (and possibly coming up with only part of the mirror)... But it does know that I was the one who made the last close of provider (then retaste event is send) and it could pass some flag to taste function to tell me about it. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --IkUYAkBqujFk6FKo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA6uvFForvXbEpPzQRAuktAJ9/4gQwlisb1VCSp8+cbQeDxyiMywCcDVZK MDWcV0UekvuT1Doqzhx+MB4= =9obG -----END PGP SIGNATURE----- --IkUYAkBqujFk6FKo--