From owner-freebsd-geom@FreeBSD.ORG Fri Jul 10 19:39:02 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF895106566B for ; Fri, 10 Jul 2009 19:39:02 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206192061.chello.pl [87.206.192.61]) by mx1.freebsd.org (Postfix) with ESMTP id E5F948FC08 for ; Fri, 10 Jul 2009 19:39:00 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 283CD45E86; Fri, 10 Jul 2009 21:38:59 +0200 (CEST) Received: from localhost (chello087206192061.chello.pl [87.206.192.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 6AAA545C99; Fri, 10 Jul 2009 21:38:53 +0200 (CEST) Date: Fri, 10 Jul 2009 21:39:05 +0200 From: Pawel Jakub Dawidek To: Marcel Moolenaar Message-ID: <20090710193905.GA1463@garage.freebsd.pl> References: <20090709200102.GA2438@garage.freebsd.pl> <20090709222420.GE2438@garage.freebsd.pl> <0903FECF-3D0D-430E-9E93-C6DC00CA1BC5@mac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <0903FECF-3D0D-430E-9E93-C6DC00CA1BC5@mac.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: glabel and real disk IDs X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2009 19:39:02 -0000 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 10, 2009 at 09:37:30AM -0700, Marcel Moolenaar wrote: >=20 > On Jul 9, 2009, at 3:24 PM, Pawel Jakub Dawidek wrote: > >>I see ZFS getting confused when disks are shuffled around. > >>The confusion is the result of having device paths stored > >>in the ZFS label match the device name of some other vdev > >>that part of the same pool. > >> > >>Replacing a device with itself doesn't help, because ZFS > >>complains that the vdev is part of an active pool in that > >>case. It seems that only labels will work here... > > > >Solaris is using device names stored in ZFS label and if this is not =20 > >the > >drive it was looking for, it is doing ID-to-path translation to find =20 > >new > >path name. On FreeBSD on the other hand (after upgrade to v13) I =20 > >gave up > >doing similar thing because disk IDs weren't available from all disk > >device drivers (I implemented it for ATA and I received no help with > >other drivers). Currently the idea is to just go through all GEOM > >providers looking for proper ZFS metadata (think of it as manual > >tasting), so even if device name changes, ZFS should be able to locate > >it. If there are still problems locating the disk, there simply =20 > >might be > >a bug in the code of some sort. >=20 > Disks are found correctly, it's just that ZFS' internal > state is messed up. It uses both the device special file > name and the stored vdev path and as such can end up with > multiple VDEVs of the same name. As such, some VDEVs are > marked as corrupted/faulted. >=20 > I can reproduce it if you're interested. I am, but I'm leaving tomorrow and I'll be out of e-mail probably for the next two weeks. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFKV5jZForvXbEpPzQRAr03AJsF921Ea0XXYQCq9gCcoyD+AD/9RACfUfgI 81nNqiHAL+q5drV81T47IZ0= =s6SN -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--