From owner-freebsd-fs@FreeBSD.ORG Wed Jun 17 20:48:10 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBCE0106564A for ; Wed, 17 Jun 2009 20:48:10 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 778FD8FC13 for ; Wed, 17 Jun 2009 20:48:10 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MH23E-0006ld-TN for freebsd-fs@freebsd.org; Wed, 17 Jun 2009 20:48:08 +0000 Received: from 67.177.235.141 ([67.177.235.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2009 20:48:08 +0000 Received: from mlists by 67.177.235.141 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2009 20:48:08 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Peter Jones Date: Wed, 17 Jun 2009 14:47:54 -0600 Lines: 26 Message-ID: <8663eu8u4l.fsf@pmade.com> References: <86ljnxyy01.fsf@pmade.com> <4A32CF01.4010004@barryp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 67.177.235.141 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (darwin) Cancel-Lock: sha1:/5puGy6nLNtcIyGIbcThL8JEBdk= Sender: news Subject: Re: Logical Disk to Physical Drive Mapping X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 20:48:11 -0000 Barry Pederson writes: > Peter Jones wrote: >> Given the situation where you have several identical physical drives, >> what is the best way to turn logical labels such as da5 into a physical >> identifier like "the drive in slot 4"? >> >> It looks like I could use dmesg, some assumptions, and glabel to label >> the logical disks. However, I plan to use ZFS and as far as I can tell >> glabel doesn't support ZFS. >> >> What is the de facto way of doing this? I'll be using FreeBSD-CURRENT >> for this, btw. > > I've glabeled disks and then added them to ZFS pools, seems to work > fine. Here's a raidz2 setup of 8 identical glabeled drives on 7.2 I'm not exactly sure how file system labels differ from disk labels, but the man page suggests that they both write meta-data to the last sector of the disk. Wouldn't that indicate that once ZFS wrote to the last sector of the disk you'd loose that meta-data? -- Peter Jones, http://pmade.com pmade inc. Louisville, CO US