From owner-freebsd-fs@FreeBSD.ORG Wed Nov 19 21:12:58 2008 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 060D41065674 for ; Wed, 19 Nov 2008 21:12:58 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045082.chello.pl [87.206.45.82]) by mx1.freebsd.org (Postfix) with ESMTP id 4A4698FC0C for ; Wed, 19 Nov 2008 21:12:57 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C9F8245685; Wed, 19 Nov 2008 22:12:54 +0100 (CET) Received: from localhost (ghf58.internetdsl.tpnet.pl [83.12.187.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id DAE4A45683; Wed, 19 Nov 2008 22:12:49 +0100 (CET) Date: Wed, 19 Nov 2008 22:12:47 +0100 From: Pawel Jakub Dawidek To: Jeremy Chadwick Message-ID: <20081119211227.GA2553@garage.freebsd.pl> References: <49240A80.5010106@dannysplace.net> <20081119125138.GA86942@icarus.home.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline In-Reply-To: <20081119125138.GA86942@icarus.home.lan> 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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS Drive change best practice. 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: Wed, 19 Nov 2008 21:12:58 -0000 --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 19, 2008 at 04:51:38AM -0800, Jeremy Chadwick wrote: > On Wed, Nov 19, 2008 at 10:45:52PM +1000, Danny Carroll wrote: > > I need to migrate my ZFS drives from one bus to another. As such they > > will be getting new device names. > >=20 > > I am pretty sure that if I do this with an export/import then it will > > just get the job done. > >=20 > > Does anyone know if there I need to take anything special into > > consideration, like perhaps maintaining the order of the drives? >=20 > Drive order does not matter, and drive label (e.g. adX or daX) does > not matter; "zpool import -a" will figure it out. >=20 > HOWEVER, there is a problem where ZFS can list the same drive label > twice or more in the members list. Take a look at the last part of my > Wiki here -- you'll see two members with the same name. This was > induced by moving cables between two different controllers: >=20 > http://wiki.freebsd.org/JeremyChadwick/ZFS_disk_upgrade_gone_bad >=20 > I sent mail to pjd@ about this, but didn't receive a response (which is > understandable given how busy he is). I have no idea if the latest ZFS > commit on CURRENT fixes this problem. >=20 > Just something to keep in mind. Sorry about lack of response. The situation should improve with recent ZFS, although at the end I decided to give up on disks IDs, as they only work with ATA disks and nobody implemented this functionality for SCSI disks. After some more tests I'll commit changes that make ZFS to always depend on metadata only. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFJJIFOForvXbEpPzQRAm6EAJ46SAyDN/xmm30uFsU2UUk7SxcMXwCfcnT5 BRcPuhWh7puRHPI+mc2VCwg= =61rx -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs--