From owner-freebsd-fs@FreeBSD.ORG Thu Sep 22 18:55:08 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 4D20B106566B for ; Thu, 22 Sep 2011 18:55:08 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE818FC17 for ; Thu, 22 Sep 2011 18:55:07 +0000 (UTC) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by koef.zs64.net (8.14.5/8.14.4) with ESMTP id p8MIt6wZ009045 for ; Thu, 22 Sep 2011 20:55:06 +0200 (CEST) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.5/8.14.4/Submit) id p8MIt6lG009044 for freebsd-fs@freebsd.org; Thu, 22 Sep 2011 14:55:06 -0400 (EDT) (envelope-from cracauer) Date: Thu, 22 Sep 2011 14:55:06 -0400 From: Martin Cracauer To: freebsd-fs@freebsd.org Message-ID: <20110922185506.GA5281@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: 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: Thu, 22 Sep 2011 18:55:08 -0000 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. Naturally, `zfs list` shows the name of the pool once. `zfs import` reports nothing. `zpool status ` shows that the currently recognized physical location of this pool is the new disk. This isn't what I want, I would like to mount the original from the old location. Is there any way to reference a pool by it's /dev/ entry so that I can rename the new copy? Destroying it would be fine, too, as long as it doesn't affect the original one. The zfs list (Sun's) mentioned a PR 6280547 for a `zpool rename` but this doesn't seem to have been implemented. FreeBSD-9 code as of yesterday. I know I can easily work around this by using the drive on a different machine while this drive is alone, but out of curiosity I'd like to know. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/