>
> zpool create dpool c1t0d0 c1t1d0 c1t2d0

yep

> And then later, when the other cable is installed:
>
> zpool attach dpool c1t0d0 c2t0d0
> zpool attach dpool c1t1d0 c2t1d0
> zpool attach dpool c1t2d0 c2t2d0

That is sort of the way I do things also :

# zpool status
  pool: fibre0
 state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on older software versions.
 scrub: resilver completed after 1h35m with 0 errors on Tue Mar 24
18:23:20 2009
config:

        NAME         STATE     READ WRITE CKSUM
        fibre0       ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t16d0  ONLINE       0     0     0
            c5t0d0   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c5t1d0   ONLINE       0     0     0
            c2t17d0  ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c5t2d0   ONLINE       0     0     0
            c2t18d0  ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t20d0  ONLINE       0     0     0
            c5t4d0   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t21d0  ONLINE       0     0     0
            c5t6d0   ONLINE       0     0     0
        spares
          c2t22d0    AVAIL

errors: No known data errors

You noticed that the man page is not too clear on that eh?

zpool attach [-f] pool device new_device

         Attaches new_device to an  existing  zpool  device.  The
         existing device cannot be part of a raidz configuration.
         If device is not currently part of a mirrored configura-
         tion,  device  automatically  transforms  into a two-way
         mirror of device and new_device. If device is part of  a
         two-way mirror, attaching new_device creates a three-way
         mirror, and so on. In either case, new_device begins  to
         resilver immediately.

so yeah, you have it.

Want to go for bonus points? Try to read into that man page to figure out
how to add a hot spare *after* you are all mirrored up.



-- 
Dennis Clarke

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

Reply via email to