Hi,
the simplest way, export & import are your friends !
$ *zpool status -v*
pool: oldpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
oldpool ONLINE 0 0 0
c0d1 ONLINE 0 0 0
c1d0 ONLINE 0 0 0
c1d1 ONLINE 0 0 0
Now just $ *zpool export oldpool* and import with the new name $ *zpool
import oldpool newpool*
every device in the pool is transfered to the new pool, no need of -d.
$ *zpool status -v*
pool: newpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
newpool ONLINE 0 0 0
c0d1 ONLINE 0 0 0
c1d0 ONLINE 0 0 0
c1d1 ONLINE 0 0 0
errors: No known data errors
kind regards,
Moutacim
Bob Friesenhahn schrieb:> On Thu, 14 May 2009, Peter Wilk wrote:
>> I am dealing with a 15K domain with the storage disks residing on an
>> EMC CX700 CLARiiON SAN. When I created the ZPOOL, I only had the
>> disk names themselves. We are using PowerPath and Operations support
>> now wants me to use the emcpower device names, instead of the actual
>> disk names.
>> My questions are: 1. Is there a best practices for switching the
>> names of the devices in the ZPOOL without destroying the data already
>> contained in the ZFS File system?
>
> Provided that you have a way to block the devices you don''t want
used,
> I think that this should be a simple matter of ''zpool
export'' followed
> by ''zpool import''. Zpool import will scan the available
devices
> looking for importable pools. According to the documentation for
> ''zpool import'' a numeric identifier may be used to select
a pool to
> import. I don''t know if this allows you to select between sets of
> devices leading to the same pool. If the devices are in different
> /dev directories, then you can specify which directory of devices to
> use with the -d option.
>
> Bob
> --
> Bob Friesenhahn
> bfriesen at simple.dallas.tx.us,
> http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
--
Moutacim LACHHAB
Service Engineer
Software Technical Services Center Sun Microsystems Inc.
Email moutacim.lachhab at Sun.COM <mailto:moutacim.lachhab at sun.com>
+33(0)134030594 x31457
For knowledge and support: http://sunsolve.sun.com