From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 21:13:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DC381065670 for ; Tue, 28 Oct 2008 21:13:01 +0000 (UTC) (envelope-from chris@smartt.com) Received: from nov.smartt.com (nov.smartt.com [69.31.173.253]) by mx1.freebsd.org (Postfix) with ESMTP id 345168FC0C for ; Tue, 28 Oct 2008 21:13:01 +0000 (UTC) (envelope-from chris@smartt.com) Received: from [69.31.174.220] ([69.31.174.220]) (authenticated bits=0) by nov.smartt.com (8.13.8/8.13.5) with ESMTP id m9SLCxL6004704; Tue, 28 Oct 2008 14:12:59 -0700 Message-ID: <4907805C.3080705@smartt.com> Date: Tue, 28 Oct 2008 14:13:00 -0700 From: Chris St Denis User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Stefan Moro References: <2961fef0810280953g48b5ea28y8aebf58bd8e8afb7@mail.gmail.com> In-Reply-To: <2961fef0810280953g48b5ea28y8aebf58bd8e8afb7@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on nov.smartt.com Cc: freebsd-questions@freebsd.org Subject: Re: A gmirror question. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 21:13:01 -0000 Stefan Moro wrote: > Hi! > > I've got a question regarding the way that gmirror identifies what > "components" (if that is the right term) are included in a mirror. > > I recently created a mirror over two disks, ad2 and ad4. After some > bios changes (activating PATA) these devices were changed to ad6 and > ad10 respectively. > The "magic" thing (which probably isn't so magic =) ) here is that > after reboot, gmirror still managed to identify the mirror, now using > ad6 and ad10. > > If I have understood things correctly, gmirror stores all relevant > information about the mirror in the last sector on the provider. > > So I guess one possible solution is that gmirror ,during startup, > scans all disks/slices for this magic sector and then "starts" the > mirror. > But if this is the case, how does gmirror know that it should use (in > my example above) ad10 and not ad4 as the additional disk in the > mirror. > Or does gmirror use something else than the /dev entries to address disks?? > > I'm just curious how gmirror does this. > > > BR Stefan > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > I don't know the technical details of the internal working of gmirror, but it likely uses the volume serial number or other such identifier.