From owner-freebsd-fs@FreeBSD.ORG Fri Jun 12 22:15:25 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 1F9F41065670 for ; Fri, 12 Jun 2009 22:15:25 +0000 (UTC) (envelope-from bp@barryp.org) Received: from itasca.hexavalent.net (itasca.hexavalent.net [67.207.138.180]) by mx1.freebsd.org (Postfix) with ESMTP id EB8E68FC08 for ; Fri, 12 Jun 2009 22:15:24 +0000 (UTC) (envelope-from bp@barryp.org) Received: from eden.barryp.org (host-145-114-107-208.midco.net [208.107.114.145]) by itasca.hexavalent.net (Postfix) with ESMTPS id 62CE723C56D for ; Fri, 12 Jun 2009 16:56:19 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=barryp.org; s=itasca; t=1244843779; bh=/TnaygMAgWtA4YkhKfNWIWODLUFsEJGdDv5zxXxH6es=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=VuNhoIB7a9oP D9muIpRglUjPVf2HKL/XLMoyY/7x0OsbxZUDfYT/aN/XIOijd8uTGdv5lhkoBu7fjm4 tVfdy75aqmHeGm0SBkQIRXD+sep2divdxfGthoD1kCM87riHpiFbo+ABFmFPnr8JYJQ KdkZ73V0KeQI6J1FDrGq7fiQk= Received: from geo.med.und.nodak.edu ([134.129.166.11]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67 (FreeBSD)) (envelope-from ) id 1MFEjS-000BIE-6W; Fri, 12 Jun 2009 16:56:18 -0500 Message-ID: <4A32CF01.4010004@barryp.org> Date: Fri, 12 Jun 2009 16:56:17 -0500 From: Barry Pederson User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: Peter Jones References: <86ljnxyy01.fsf@pmade.com> In-Reply-To: <86ljnxyy01.fsf@pmade.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org 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: Fri, 12 Jun 2009 22:15:25 -0000 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 -------- # zpool status pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz2 ONLINE 0 0 0 label/15_01 ONLINE 0 0 0 label/15_02 ONLINE 0 0 0 label/15_03 ONLINE 0 0 0 label/15_04 ONLINE 0 0 0 label/15_05 ONLINE 0 0 0 label/15_06 ONLINE 0 0 0 label/15_07a ONLINE 0 0 0 label/15_08 ONLINE 0 0 0 errors: No known data errors ------ Barry