is there way to rename an existing zfs pool?
Marco van Tol
marco at tols.org
Tue Apr 24 12:45:51 UTC 2012
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"
More information about the freebsd-fs
mailing list