From owner-freebsd-arch@FreeBSD.ORG Fri Jul 7 16:57:36 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E40616A4DE; Fri, 7 Jul 2006 16:57:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FB6B43D46; Fri, 7 Jul 2006 16:57:35 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k67GvXOJ018749; Fri, 7 Jul 2006 12:57:34 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Pawel Jakub Dawidek Date: Fri, 7 Jul 2006 12:57:25 -0400 User-Agent: KMail/1.9.1 References: <20060627.120424.-1625880159.imp@bsdimp.com> <200606281036.08090.jhb@freebsd.org> <20060707082024.GC11794@garage.freebsd.pl> In-Reply-To: <20060707082024.GC11794@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607071257.26394.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 07 Jul 2006 12:57:34 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1589/Fri Jul 7 10:37:51 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Poul-Henning Kamp , gurney_j@resnet.uoregon.edu, freebsd-arch@freebsd.org Subject: Re: Accessing disks via their serial numbers. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 16:57:36 -0000 On Friday 07 July 2006 04:20, Pawel Jakub Dawidek wrote: > On Wed, Jun 28, 2006 at 10:36:07AM -0400, John Baldwin wrote: > > On Tuesday 27 June 2006 16:11, Pawel Jakub Dawidek wrote: > > > On Tue, Jun 27, 2006 at 06:43:19PM +0000, Poul-Henning Kamp wrote: > > > I wrote this twice already in this thread, but let me write it again. > > > File systems are not the whole world. For example. I've a disk ad0. > > > I configured gbde(4) on top of it. I create file system on top of > > > ad0.bde. Now, let's assume I implemented shrinkfs(8) as you suggested, > > > how can I shrink gbde(4) provider? > > > > If you want a label you should label it before gbde(4). This is similar to > > the fact that you can't retroactively add a gmirror under the gbde slice > > either. > > That's right. And this is how I do it. Unfortunately this is not always > the case. First of all, sysinstall doesn't have support for configuring > things like gbde/gmirror (which of course can be changed) or you may > simply not expect that you will need labels on your disks when you > install the system... If you want to label a filesystem that should be part of the filesystem's metadata. If you want to label a region of the disk it seems sensible that one has to label it before putting other stuff into it. Either that or the label's belong in the geom that manages the region you are trying to label (i.e. geom_mbr would manage labels for mbr slices). -- John Baldwin