From owner-freebsd-geom@FreeBSD.ORG Tue Jul 6 17:55:56 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 5BE3A16A4CE for ; Tue, 6 Jul 2004 17:55:56 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E8E543D2D for ; Tue, 6 Jul 2004 17:55:56 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 21572 invoked from network); 6 Jul 2004 17:55:55 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Jul 2004 17:55:55 -0000 Received: from hydrogen.funkthat.com (pqbqjy@localhost.funkthat.com [127.0.0.1])i66HttHX014843; Tue, 6 Jul 2004 10:55:55 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i66HttsR014841; Tue, 6 Jul 2004 10:55:55 -0700 (PDT) Date: Tue, 6 Jul 2004 10:55:54 -0700 From: John-Mark Gurney To: Pawel Jakub Dawidek Message-ID: <20040706175554.GP57659@funkthat.com> References: <20040706113242.GK12007@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040706113242.GK12007@darkness.comp.waw.pl> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: geom@FreeBSD.org Subject: Re: GEOM and retaste. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney 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 17:55:56 -0000 Pawel Jakub Dawidek wrote this message on Tue, Jul 06, 2004 at 13:32 +0200: > 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. > > Any ideas? 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... 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)... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."