Procedure to move from striped mirror to single mirror

Discussion in 'Solaris, Nexenta, OpenIndiana, and napp-it' started by crazyj, Nov 28, 2018.

  1. crazyj

    crazyj Member

    Joined:
    Nov 19, 2015
    Messages:
    49
    Likes Received:
    1
    I've currently 4x 500GB drives in a striped mirror. I'm wanting to move these over to 2x 4TB disks since I'm running short on room. What's the procedure to accomplish this? I have extra slots, so all disks reside in the server currently. Is it possible to mirror to the 4TB, then remove the 500GB disks?
     
    #1
    T_Minus likes this.
  2. ttabbal

    ttabbal Active Member

    Joined:
    Mar 10, 2016
    Messages:
    708
    Likes Received:
    186
    Create a new pool using the 4TB mirror. zfs send/recv to copy the data. Unmount the old pool and pull the drives as backups or use them for whatever your plan is.

    Note that it needs to be a new pool. If you add them to the existing pool, you will have to reformat everything to undo it. You can rename the pool later if desired.
     
    #2
  3. crazyj

    crazyj Member

    Joined:
    Nov 19, 2015
    Messages:
    49
    Likes Received:
    1
    And is this handled anywhere in the GUI, or am I needing to do command line?
     
    #3
  4. ttabbal

    ttabbal Active Member

    Joined:
    Mar 10, 2016
    Messages:
    708
    Likes Received:
    186
    You should ask @gea that. I haven't used napp-it in a while so I'm not sure. I would think you could at least do the pool management stuff from the GUI, but I'm a CLI guy myself.
     
    #4
  5. gea

    gea Well-Known Member

    Joined:
    Dec 31, 2010
    Messages:
    2,097
    Likes Received:
    674
    Can all be done in napp-it
    Create a new pool from a mirror, then create a replication job to transfer filesystems from your raid-10 to the new mirror. Then export both pools and import the mirror under the former poolname of the raid-10.

    If you want to preserve the exact same pool layout:
    As a replication always creates a filesystem below another filesystem you cannot replicate the whole pool but must for example replicate single filesystems ex oldpool/filesystem -> newpool to get newpool/filesystem. If you replicate the whole pool recursively you get newpool/oldpool/filesystem.
     
    #5
  6. crazyj

    crazyj Member

    Joined:
    Nov 19, 2015
    Messages:
    49
    Likes Received:
    1
    Is the end result the same? I did a send/receive and haven’t double checked data but I assume it all went to plan.
     
    #6
  7. gea

    gea Well-Known Member

    Joined:
    Dec 31, 2010
    Messages:
    2,097
    Likes Received:
    674
    yes
     
    #7
Similar Threads: Procedure move
Forum Title Date
Solaris, Nexenta, OpenIndiana, and napp-it Safest Update Procedure? Aug 18, 2012
Solaris, Nexenta, OpenIndiana, and napp-it NAPP-IT - Moving whole pool - DATAMOVER or no? May 29, 2019
Solaris, Nexenta, OpenIndiana, and napp-it hot remove disks / enclosures Jul 5, 2017
Solaris, Nexenta, OpenIndiana, and napp-it Move home server from AiO ESXi to ? I want lofs! Mar 1, 2017
Solaris, Nexenta, OpenIndiana, and napp-it What is the easiest way to move share to another pool? Oct 16, 2016

Share This Page