On Fri, 1 Jun 2007, Krzys wrote:

> bash-3.00# zpool replace mypool c1t2d0 emcpower0a
> bash-3.00# zpool status
>    pool: mypool
>   state: ONLINE
> status: One or more devices is currently being resilvered.  The pool will
>          continue to function, possibly in a degraded state.
> action: Wait for the resilver to complete.
>   scrub: resilver in progress, 0.00% done, 17h50m to go
> config:
>
>          NAME            STATE     READ WRITE CKSUM
>          mypool          ONLINE       0     0     0
>            replacing     ONLINE       0     0     0
>              c1t2d0      ONLINE       0     0     0
>              emcpower0a  ONLINE       0     0     0

I don't think this is what you want.  Notice that it is in the process of
replacing c1t2d0 with emcpower0a.  Once the replacing operation is
complete, c1t2d0 will be removed from the configuration.

You've got two options.  Let's say your current mirror is c1t2d0 and
c1t3d0, and you want to replace c1t3d0 with emcpower0a.

Option one: perform a direct replace:

        # zpool replace mypool c1t3d0 emcpower0a

Option two: remove c1t3d0 and add in emcpower0a:

        # zpool detach mypool c1t3d0
        # zpool attach mypool c1t2d0 emcpower0a

Do not mix these two options, as you showed in your email.  Do not perform
a 'detach' followed by a 'replace'.  This is mixing your options and you
will end up with a config you were not expecting.


Regards,
markm
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to