Since the rpool is created by default as a single drive and also it is different from additional pools in that it cannot be an EFI file system then the "attach" option is how you add the mirror as discussed in earlier e-mail. The additional pool consists of 5 mirrored pairs constructed how you stated below. The OS rpool is different from non OS pools.

xxx:/var/tmp ->zpool status
  pool: rpool
 state: ONLINE
 scrub: scrub completed after 0h13m with 0 errors on Sun Jul 11 00:18:28 2010
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c1t0d0s0  ONLINE       0     0     0
            c1t1d0s0  ONLINE       0     0     0

errors: No known data errors

  pool: pool
 state: ONLINE
 scrub: scrub completed after 2h20m with 0 errors on Sun Jul 11 02:20:17 2010
config:

        NAME        STATE     READ WRITE CKSUM
        pool        ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c5t4d5  ONLINE       0     0     0
            c2t4d5  ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c3t1d4  ONLINE       0     0     0
            c4t1d4  ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c5t4d3  ONLINE       0     0     0
            c2t4d0  ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c5t4d1  ONLINE       0     0     0
            c2t4d2  ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c3t1d2  ONLINE       0     0     0
            c4t1d3  ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c3t1d0  ONLINE       0     0     0
            c4t1d1  ONLINE       0     0     0

errors: No known data errors


Cia Watson wrote, On 07/12/10 18:46:
I'm not a master, but... I've spent a good deal of time in the last few weeks 
(particularly this past weekend) trying to figure out ZFS. I actually think I 
have a pretty good handle on it, though not a lot of real practice yet. :-)

The previous suggestion to attach the 2nd drive seems to me that it would just 
increase the size of the pool but not necessarily create a mirror. Of course 
what the man pages say and how things work 'in real life' may be a bit 
different. And part of it may depend on how much data you have, etc. So from 
the man page on zpool I just grepped mirror, and here's a couple of examples:

The following command creates a pool with two mirrors, where each mirror 
contains two disks.
        # zpool create tank mirror c0t0d0 c0t1d0 mirror c0t2d0 c0t3d0

The following command adds two mirrored disks  to  the  pool
        # zpool add tank mirror c1t0d0 c1t1d0

And this looks like it creates a single mirror with a spare:
# zpool create tank mirror c0t0d0 c0t1d0 spare c0t2d0

_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to