From owner-freebsd-fs@FreeBSD.ORG Fri Sep 23 09:38:58 2011 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 E03D11065675 for ; Fri, 23 Sep 2011 09:38:58 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail13.syd.optusnet.com.au (mail13.syd.optusnet.com.au [211.29.132.194]) by mx1.freebsd.org (Postfix) with ESMTP id 579078FC13 for ; Fri, 23 Sep 2011 09:38:57 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail13.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p8N9cfwL020756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 Sep 2011 19:38:43 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.5/8.14.4) with ESMTP id p8N9cfxF017033; Fri, 23 Sep 2011 19:38:41 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.5/8.14.4/Submit) id p8N9cesg017032; Fri, 23 Sep 2011 19:38:40 +1000 (EST) (envelope-from peter) Date: Fri, 23 Sep 2011 19:38:40 +1000 From: Peter Jeremy To: Martin Cracauer Message-ID: <20110923093840.GB16726@server.vk2pj.dyndns.org> References: <20110922185506.GA5281@cons.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jq0ap7NbKX2Kqbes" Content-Disposition: inline In-Reply-To: <20110922185506.GA5281@cons.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: Another Zpool management thing 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: Fri, 23 Sep 2011 09:38:59 -0000 --jq0ap7NbKX2Kqbes Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Sep-22 14:55:06 -0400, Martin Cracauer wrote: >I dd-copied a whole drive that had several slices, one of which holds >a single-disk ZFS in it (nothing mounted at the time of course). At >this time both disks are in the machine. =2E.. >Is there any way to reference a pool by it's /dev/ entry so that I can >rename the new copy? Not AFAIK. > Destroying it would be fine, too, as long as it >doesn't affect the original one. You can do this by zeroing the first and last 1MB of the unwanted ZFS partition - that's where ZFS stores its labels. --=20 Peter Jeremy --jq0ap7NbKX2Kqbes Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk58U6AACgkQ/opHv/APuIci/gCfS3DUaREJXL6CxCPhfBZ7joIi WYsAoI/gYSqa/WGaEIxiQ5ep2e+HKFUd =G9MU -----END PGP SIGNATURE----- --jq0ap7NbKX2Kqbes--