is there way to rename an existing zfs pool?

Mark Gladman mailing-list at legios.org
Tue Apr 24 12:51:45 UTC 2012


On Tue, 24 Apr 2012 15:32:19 +0300
Zeus Panchenko <zeus at ibs.dn.ua> 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?
> 

It should be possible with zpool import.

From the man page:
zpool import [-o mntopts] [-o property=value] ... [-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


More information about the freebsd-fs mailing list