From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 22:52:46 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 E09CF1065670 for ; Tue, 28 Oct 2008 22:52:46 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id AF0C98FC12 for ; Tue, 28 Oct 2008 22:52:46 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id C5E46AFCF5D; Tue, 28 Oct 2008 14:52:45 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 28 Oct 2008 23:52:44 +0100 User-Agent: KMail/1.9.7 References: <2961fef0810280953g48b5ea28y8aebf58bd8e8afb7@mail.gmail.com> In-Reply-To: <2961fef0810280953g48b5ea28y8aebf58bd8e8afb7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810282352.44764.fbsd.questions@rachie.is-a-geek.net> Cc: Stefan Moro 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 22:52:47 -0000 On Tuesday 28 October 2008 17:53:20 Stefan Moro wrote: > 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. It doesn't care about the device name. Geom modules that are loaded into the kernel, register a 'taste' function, with the geom(4) subsystem, that tastes if a provider is something they want to work with. Effectively, this taste function reads the last sector and checks if it has gmirror metadata. The geom system is the 'magician', which basically hands all providers to the loaded modules. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.