[Note: This discussion started in another thread

    Subject: about backup and mirrored pools

but the subject has been significantly changed so started a new
thread]

Bob Friesenhahn <bfrie...@simple.dallas.tx.us> writes:

> Luckily, since you are using mirrors, you can easily migrate disks
> from your existing extra pools to the coalesced pool.  Just make sure
> to scrub first in order to have confidence that there won't be data
> loss.

Reading some of the info at the migration documentation:

 
http://docs.huihoo.com/opensolaris/solaris-zfs-administration-guide/html/ch04s06.html

I'm getting a little (read horribly) confused how to go about doing
something like creating a single zpool of 3 sets of currently mirrored
disks that for each pair, constitute a zpool themselves.

So, I have rpool z2 z3. Each has 2 disks setup in mirror
configuration.

 zpool list
  NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
  rpool   466G   377G  88.7G    80%  1.00x  ONLINE  -
  z2      464G   365G  99.1G    78%  1.00x  ONLINE  -
  z3      696G   130G   566G    18%  1.00x  ONLINE  -

(`zpool status' on all pools is inlined at the end of this post)

Whats confusing me is how to do this when all elements of the new
zpool are already in use as zpools themselves, especially since one of
them is rpool.

`export' apparently at least tries to unmount the pool so taking them
out of service, but I guess whats bugging me is how to create a zpool
when the drives you plan to use are already zpools.

I'd like the existing mirrored sets to become the vdevs (I hope that's
the right term) making up the new zpool.  So not sure how to create
the new pool.

My only experience so far has been creating zpools from empty
hard drives I'd installed for that purpose.

Apparently some kind of usage of export/import will get this done.
But the docs at the above address are leaving me too unprepared to
attempt it without some first hand guidance from someone who has done
it.  Especially regarding rpool.

Can you create a zpool with no drives/vdevs and then `import' each of the
current pools into it, letting them become the vdevs?

When I export rpool it will be unmounted I guess, so does that have to
be done from a livecd?

In the case I'm describing I guess rpool will be the only pool when
its completed.  Is that a sensible thing to do?

Or would it make more sense to leave rpool alone and make a single
zpool of the other two mirrored pairs?

-------        ---------       ---=---       ---------      -------- 
  pool: rpool
 state: ONLINE
 scrub: scrub completed after 4h36m with 0 errors on Sat Apr 10 07:40:12 2010
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            c3d0s0  ONLINE       0     0     0
            c3d1s0  ONLINE       0     0     0

errors: No known data errors

  pool: z2
 state: ONLINE
 scrub: scrub completed after 3h44m with 0 errors on Fri Apr  9 06:48:10 2010
config:

        NAME        STATE     READ WRITE CKSUM
        z2          ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            c4d0    ONLINE       0     0     0
            c4d1    ONLINE       0     0     0

errors: No known data errors

  pool: z3
 state: ONLINE
 scrub: scrub completed after 0h54m with 0 errors on Thu Apr  8 03:58:45 2010
config:

        NAME        STATE     READ WRITE CKSUM
        z3          ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            c5d0    ONLINE       0     0     0  60.5K repaired
            c6d0    ONLINE       0     0     0

errors: No known data errors

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

Reply via email to