You add a load-sharing mirror to the load-sharing set by initializing the load-sharing mirror. Clients cannot access the added load-sharing mirror until you initialize it.
Before you begin
You must have done the following tasks before you can initialize a load-sharing mirror and add it to the set of load-sharing mirrors:
- Have a set of load-sharing mirrors to which you want to add. That is, you have already created the set of load-sharing mirrors by creating destination volumes, SnapMirror relationships, and initializing those relationships using the snapmirror initialize-ls-set command.
- Created the destination volume of the load-sharing mirror you want to add by specifying the DP type option of the volume create command.
About this task
Initializing a load-sharing mirror creates a baseline copy of the source volume's data that is equivalent to the most up-to-date copies on the other load-sharing mirrors in the set.
- Use the snapmirror initialize command with the -type LS option to initialize the volume that you are adding to the load-sharing set.
Note: Do not use the snapmirror initialize-ls-set command. The snapmirror initialize-ls-set command is for initializing volumes for an entire set of load-sharing mirrors, not for initializing an individual volume.
The following example adds a load-sharing mirror named dept_eng_ls_mirror4 to a set of load-sharing mirrors of a source volume named dept_eng. The source volume and load-sharing mirrors are on the Storage Virtual Machine (SVM)
cluster1::> snapmirror initialize -source-path node://vs0/dept_eng
-destination-path //vs0/dept_eng_ls_mirror4 -type LS
[Job 187] Job is queued: snapmirror initialize of destination //vs0/dept_eng_ls_
After this initial copy, Data ONTAP sees the new load-sharing mirror as part of the set of load-sharing mirrors and will update the set when a scheduled update or manual update of the set occurs.