From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 16:42:15 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AA7A2E63 for ; Tue, 22 Apr 2014 16:42:15 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 867421DAE for ; Tue, 22 Apr 2014 16:42:15 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s3MGgE6j093846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Apr 2014 09:42:15 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s3MGgEfg093845; Tue, 22 Apr 2014 09:42:14 -0700 (PDT) (envelope-from jmg) Date: Tue, 22 Apr 2014 09:42:14 -0700 From: John-Mark Gurney To: Andrey Fesenko Subject: Re: ZFS bug or feature Message-ID: <20140422164214.GB43976@funkthat.com> Mail-Followup-To: Andrey Fesenko , Tom Evans , freebsd-current References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Tue, 22 Apr 2014 09:42:15 -0700 (PDT) Cc: Tom Evans , freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2014 16:42:15 -0000 Andrey Fesenko wrote this message on Tue, Apr 22, 2014 at 20:35 +0400: > On Tue, Apr 22, 2014 at 8:23 PM, Tom Evans wrote: > > > > I'm confused, what is the bug or feature? Has it added the disk with > > the wrong label? You can correct that with an zpool export x220pool / > > zpool import -d /dev/diskid x220pool > > > > gpart see only one disk ada0 (OCZ), if believe camcontrol ada0 > (Corsair) - OCZ (ada1) why zpool status see two disk and not error > > x220pool - root file system I'm would not like to break it It sees both disks... It's just that it used the diskid for your OCZ via diskid instead of the normal method.... Per your original email: # camcontrol devlist at scbus0 target 0 lun 0 (ada0,pass0) at scbus1 target 0 lun 0 (ada1,pass1) # zpool status [...] NAME STATE READ WRITE CKSUM x220pool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 diskid/DISK-OCZ-J8928HU1G10KR9XMs1a ONLINE 0 0 0 ^^^^^^^^^^^ OCZ ^^^^^^^^^^^^^^^^^^^ ada0s1a ONLINE 0 0 0 # gpart show => 63 468862065 ada0 MBR (224G) 63 234441585 1 freebsd (112G) 234441648 234420480 2 freebsd (112G) => 0 234441585 ada0s1 BSD (112G) 0 234441585 1 freebsd-zfs (112G) => 63 234441585 diskid/DISK-OCZ-J8928HU1G10KR9XM MBR (112G) ^^^^^^^^^^^ OCZ ^^^^^^^^^^^^^^^^ 63 234441585 1 freebsd [active] (112G) => 0 234441585 diskid/DISK-OCZ-J8928HU1G10KR9XMs1 BSD (112G) ^^^^^^^^^^^ OCZ ^^^^^^^^^^^^^^^^^^ 0 234441585 1 freebsd-zfs (112G) It's just named a bit differently... and the other poster showed how you can work around the diskid thing, though there is a kernel option to disable diskid's (which would solve the ZFS on root problem) for all devices.. search the archives as you're not the first one to raise this issue... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."