From owner-freebsd-fs@FreeBSD.ORG Tue Apr 24 12:51:45 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 2D940106564A for ; Tue, 24 Apr 2012 12:51:45 +0000 (UTC) (envelope-from mailing-list@legios.org) Received: from mail.legios.org (ppp59-167-179-75.static.internode.on.net [59.167.179.75]) by mx1.freebsd.org (Postfix) with ESMTP id BAAD08FC16 for ; Tue, 24 Apr 2012 12:51:44 +0000 (UTC) Received: from localhost (unknown [192.168.0.40]) by mail.legios.org (Postfix) with ESMTP id 6806831C72A; Tue, 24 Apr 2012 22:46:06 +1000 (EST) Received: from mail.legios.org ([192.168.0.40]) by localhost (mail.legios.org [192.168.0.40]) (maiad, port 10024) with ESMTP id 79400-06; Tue, 24 Apr 2012 22:46:05 +1000 (EST) Received: from mark.legios.org (unknown [192.168.0.201]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.legios.org (Postfix) with ESMTPS id 603F131C70D; Tue, 24 Apr 2012 22:46:05 +1000 (EST) Date: Tue, 24 Apr 2012 22:46:03 +1000 From: Mark Gladman To: freebsd-fs@freebsd.org Message-ID: <20120424224603.485bc6b8@mark.legios.org> In-Reply-To: <20120424153219.26321@relay.ibs.dn.ua> References: <20120424153219.26321@relay.ibs.dn.ua> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Cc: 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:51:45 -0000 On Tue, 24 Apr 2012 15:32:19 +0300 Zeus Panchenko wrote: > hi all, >=20 > may somebody advice, plese? >=20 > is there way to rename an existent zfs pool? >=20 > lets say we have created pool with: >=20 > zpool create -f not-well-thought-out-pool-name /dev/gpt/disk0 >=20 > and after some time we'd like to have it named as > very-well-thought-out-pool-name >=20 > so, is it possible at all? >=20 It should be possible with zpool import. =46rom the man page: zpool import [-o mntopts] [-o property=3Dvalue] ... [-d dir | -c cachefile] [-D] [-f] [-m] [-N] [-R root] [-F [-n]] 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. Cheers, Mark