Table of ContentsView in Frames

Creating load-sharing mirror relationships

Before you can replicate data from the source FlexVol volume to the load-sharing mirror destination volumes, you must create the mirror relationships by using the snapmirror create command.

Steps

  1. Use the snapmirror create command with the -type LS parameter to create a load-sharing mirror relationship between the source volume and a destination volume.
    Example
    The following command creates a load-sharing mirror relationship between the source root volume vs1_root for Vserver vs1 and the load-sharing destination volume vs1_m1, and specifies the default hourly update schedule, which is a NetApp best practice if you do not have an existing schedule. If you do have an existing schedule configured, then you can specify that instead.
    cluster1::> snapmirror create -source-path //vs1/vs1_root 
    -destination-path //vs1/vs1_m1 -type LS -schedule hourly
    [Job 171] Job is queued: snapmirror create the relationship with destination //vs1/vs1_m1
    [Job 171] Job succeeded: SnapMirror: done
    
    When you create a relationship for a load-sharing mirror, the attributes for that load-sharing mirror (throttles, update schedules, and so on) are shared by all of the load-sharing mirrors that share the same source volume.
  2. Repeat Step 1 to add a load-sharing mirror relationship to the destination volume on each node in the cluster.
    Example
    The following command creates load-sharing mirror relationships between the Vserver root volume vs1_root and the destination volumes vs1_m2, vs1_m3, and vs1_m4. The -schedule parameter does not need to be used again, because Data ONTAP automatically applies the same schedule to the set of all load-sharing mirrors that share the same source volume.
    cluster1::> snapmirror create -source-path //vs1/vs1_root 
    -destination-path //vs1/vs1_m2 -type LS 
    [Job 172] Job is queued: snapmirror create the relationship with destination //vs1_m2
    [Job 172] Job succeeded: SnapMirror: done
    
    cluster1::> snapmirror create -source-path //vs1/vs1_root 
    -destination-path //vs1/vs1_m3 -type LS 
    [Job 173] Job is queued: snapmirror create the relationship with destination //vs1_m3
    [Job 173] Job succeeded: SnapMirror: done
    
    cluster1::> snapmirror create -source-path //vs1/vs1_root 
    -destination-path //vs1/vs1_m4 -type LS 
    [Job 174] Job is queued: snapmirror create the relationship with destination //vs1_m4
    [Job 174] Job succeeded: SnapMirror: done