Date: Tue, 24 Apr 2012 14:45:44 +0200 From: Marco van Tol <marco@tols.org> To: freebsd-fs@freebsd.org Subject: Re: is there way to rename an existing zfs pool? Message-ID: <20120424124544.GA84516@tolstoy.tols.org> In-Reply-To: <20120424153219.26321@relay.ibs.dn.ua> References: <20120424153219.26321@relay.ibs.dn.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120424124544.GA84516>