From owner-freebsd-questions@freebsd.org Fri Jul 10 21:48:42 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94510997035 for ; Fri, 10 Jul 2015 21:48:42 +0000 (UTC) (envelope-from quartz@sneakertech.com) Received: from douhisi.pair.com (douhisi.pair.com [209.68.5.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 74A511DB5 for ; Fri, 10 Jul 2015 21:48:42 +0000 (UTC) (envelope-from quartz@sneakertech.com) Received: from [10.2.2.1] (pool-173-48-121-235.bstnma.fios.verizon.net [173.48.121.235]) by douhisi.pair.com (Postfix) with ESMTPSA id 955483F8CD; Fri, 10 Jul 2015 17:48:34 -0400 (EDT) Message-ID: <55A03DB2.3020407@sneakertech.com> Date: Fri, 10 Jul 2015 17:48:34 -0400 From: Quartz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Aleksandr Miroslav CC: freebsd-questions@freebsd.org Subject: Re: ZFS: zdev names don't match devices References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2015 21:48:42 -0000 >Did I screw > up my zfs setup? No. This is a quirk of the way the 10.x installer/ZFS works. There are a handful of different ways to identify a disk on FreeBSD besides the device ID, including UUIDs and gpt labels and such. Device IDs will change if you ever add/remove/reorder the physical drives, so the installer uses the other methods to be safer. I don't know why it uses a mix instead of doing the same thing for each drive though. >Why do the vdevs have these names? > How do I map these vdev names back to my disks? I think you're confused about what a vdev is. "vdev" is shorthand for 'virtual device'. Disks (or partitions, or files) are grouped into a vdev, and the vdevs are then striped together to form your pool. A vdev doesn't have a "name", just a type (ie; mirror/raid/etc). The block devices that the vdevs are composed of are what can have names.