This discussion is archived
2 Replies Latest reply: Jun 11, 2012 11:06 AM by cindys RSS

Mirroring a ZFS stripe volume

931950 Newbie
Currently Being Moderated
I have azpool made up of 2 SAN luns.

I'd like to mirror a single larger LUN onto the pool the remove the stripe set of LUNS.
I could swear I did this once in the past.

Can this be done:

# zpool status zpool_amdsqluat
pool: zpool_amdsqluat
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
zpool_amdsqluat ONLINE 0 0 0
c3t600A0B800075F5FF00004E864F1D1F20d0 ONLINE 0 0 0
c3t600A0B800075F5FF00004E884F1D1F56d0 ONLINE 0 0 0

errors: No known data errors

# zpool attach -f zpool_amdsqluat c3t600A0B800049C92700000FE34BA3A878d0
missing <new_device> specification
usage:
attach [-f] <pool> <device> <new-device>

What's the actual "device" that I'm connecting the "new-device" (LUN) to?
  • 1. Re: Mirroring a ZFS stripe volume
    942840 Newbie
    Currently Being Moderated
    first check if new device is visible to O/S

    #echo|format | grep -i c3t600A0B800049C92700000FE34BA3A878d0

    now add this Lun as mirror in zpool

    # zpool attach zpool_amdsqluat c3t600A0B800049C92700000FE34BA3A878d0
  • 2. Re: Mirroring a ZFS stripe volume
    cindys Pro
    Currently Being Moderated
    Its not exactly clear what you are trying to do but a couple of tips:

    1. When you attach, you have to provide an existing pool device from which to attach
    the new device, which is what the error is describing, here:

    <device> <new-device>

    2. To me, if you want to replace the existing smaller LUNs with a larger LUN and continue
    with a mirrored configuration, you'll need two larger LUNs. If you want to replace the two
    smaller LUNs with one larger LUN, then that would be doable, but you would no longer
    have a mirrored configuration.

    Thanks,

    Cindy

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points