Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2009 16:56:17 -0500
From:      Barry Pederson <bp@barryp.org>
To:        Peter Jones <mlists@pmade.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Logical Disk to Physical Drive Mapping
Message-ID:  <4A32CF01.4010004@barryp.org>
In-Reply-To: <86ljnxyy01.fsf@pmade.com>
References:  <86ljnxyy01.fsf@pmade.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A32CF01.4010004>