From owner-freebsd-fs@FreeBSD.ORG Tue Apr 24 12:45:51 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7362A106566B for ; Tue, 24 Apr 2012 12:45:51 +0000 (UTC) (envelope-from marco@tolstoy.tols.org) Received: from tolstoy.tols.org (tolstoy.tols.org [IPv6:2a02:898:0:20::57:1]) by mx1.freebsd.org (Postfix) with ESMTP id 0CF558FC14 for ; Tue, 24 Apr 2012 12:45:50 +0000 (UTC) Received: from tolstoy.tols.org (localhost [127.0.0.1]) by tolstoy.tols.org (8.14.5/8.14.5) with ESMTP id q3OCjiKV088325 for ; Tue, 24 Apr 2012 12:45:44 GMT (envelope-from marco@tolstoy.tols.org) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.4 at tolstoy.tols.org Received: (from marco@localhost) by tolstoy.tols.org (8.14.5/8.14.5/Submit) id q3OCjiqC088324 for freebsd-fs@freebsd.org; Tue, 24 Apr 2012 14:45:44 +0200 (CEST) (envelope-from marco) Date: Tue, 24 Apr 2012 14:45:44 +0200 From: Marco van Tol To: freebsd-fs@freebsd.org Message-ID: <20120424124544.GA84516@tolstoy.tols.org> Mail-Followup-To: freebsd-fs@freebsd.org References: <20120424153219.26321@relay.ibs.dn.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120424153219.26321@relay.ibs.dn.ua> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tolstoy.tols.org Subject: Re: is there way to rename an existing zfs pool? 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: Tue, 24 Apr 2012 12:45:51 -0000 On Tue, Apr 24, 2012 at 03:32:19PM +0300, Zeus Panchenko wrote: > hi all, > > may somebody advice, plese? > > is there way to rename an existent zfs pool? > > lets say we have created pool with: > > zpool create -f not-well-thought-out-pool-name /dev/gpt/disk0 > > and after some time we'd like to have it named as > very-well-thought-out-pool-name > > so, is it possible at all? >From zpool(1M): zpool import [-o mntopts] [ -o property=value] ... [-d dir | -c cachefile] [-D] [-f] [-R root] pool | id [newpool] Imports a specific pool. A pool can be identified by its name or the numeric identifier. If newpool is specified, the pool is imported using the name newpool. Otherwise, it is imported with the same name as its exported name. So basically, export and then import with a new name. Read the entire chapter from the man page to be aware of the side effects. :-) Marco -- The ones who know don't care anymore, and the ones who care don't know - Nicolas Cage in "Lord of War"