From owner-freebsd-current@FreeBSD.ORG Fri Aug 6 19:07:56 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73F3D16A4CF; Fri, 6 Aug 2004 19:07:56 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00E4143D5A; Fri, 6 Aug 2004 19:07:56 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i76J7mY5090211; Fri, 6 Aug 2004 14:07:48 -0500 (CDT) (envelope-from dan) Date: Fri, 6 Aug 2004 14:07:48 -0500 From: Dan Nelson To: Sam Lawrance Message-ID: <20040806190748.GA11465@dan.emsphone.com> References: <1091792300.749.14.camel@dirk.no.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1091792300.749.14.camel@dirk.no.domain> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: Pawel Jakub Dawidek cc: current@freebsd.org Subject: Re: geom stripe/concat metadata suggestion X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 19:07:56 -0000 In the last episode (Aug 06), Sam Lawrance said: > Would it be a good idea to store the device name, or something > similar, in the metadata? > > For example, if I have a disk divided like this: > > |--------------ad0--------------| > |-------------ad0s1-------------| > |----ad0s1g-----|-----ad0s1d----| > > The metadata is written into the last sector, so when the > stripe/concat classes are tasting they can't work out whether it > belongs to ad0s1d, ad0s1 or ad0. > > I've had problems creating stripes and concats with this configuration. Does the metadata store the device size? If so, then only ad0 and ad0s1 match, and it doesn't really matter which ends up being used. I'd be wary of embedding the device name because of shifting names if you add or shuffle disks around. -- Dan Nelson dnelson@allantgroup.com