Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2012 22:46:03 +1000
From:      Mark Gladman <mailing-list@legios.org>
To:        freebsd-fs@freebsd.org
Subject:   Re: is there way to rename an existing zfs pool?
Message-ID:  <20120424224603.485bc6b8@mark.legios.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, 24 Apr 2012 15:32:19 +0300
Zeus Panchenko <zeus@ibs.dn.ua> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120424224603.485bc6b8>