You must use the snapmirror initialize command to perform a complete (baseline) transfer of information whenever you start up a SnapMirror source-destination relationship for the first time. This process is known as initializing a destination.
Qtree quotas apply to qtrees in a SnapMirror relationship. If a destination qtree is limited to 100 GB, transfers from a source greater than 100 GB will fail until the source drops to less than 100 GB or the qtree quota is increased on the destination.
User quotas also apply to SnapMirror destination qtrees; however, a SnapMirror qtree update will not fail if user quotas are exceeded.
The following are guidelines for qtrees in a SnapMirror relationship:
You can also initialize a destination volume from tape using the snapmirror store command on the source volume and the snapmirror retrieve command on the destination volume. See Using SnapMirror to copy a volume to local tape and Initializing a SnapMirror destination via local tape for more information. The snapmirror store and snapmirror retrieve functions are valid only for volumes, not for qtrees in a SnapMirror relationship.
To initialize a SnapMirror destination, complete the following steps.
Note
If your source volumes contain directories that are accessed by CIFS clients, ensure that those directories are in Unicode format before carrying out the initial SnapMirror replication of that volume. See Ensuring accessible destinations when using CIFS.
Using the following command, SnapMirror transfers a complete copy of the source volume (vol0 on systemA) to the destination volume (vol2 on systemB):
systemB> snapmirror initialize -S systemA:vol0 systemB:vol2
Using the following command, SnapMirror transfers a complete copy of the qtree source (qtree4 on vol1 on systemA) to the destination qtree (qtree4bak on vol1on systemB):
systemB> snapmirror initialize -S systemA:/vol/vol1/qtree4 systemB:/vol/vol1/qtree4bak
Non-qtree data is any data on a system that is not contained in its qtrees. Non-qtree data can include:
To use SnapMirror to replicate non-qtree data from a source to a destination, complete the following step.
Using the following command, SnapMirror transfers to the destination qtree (non_qtree_data_in_vol3 on vol4 on systemB) a complete copy of all the data in systemA, volume 3, that is not a part of a qtree:
systemB> snapmirror initialize -S systemA:/vol/vol3/- systemB:/vol/vol4/non_qtree_data_in_vol3
After the transfer, the non-qtree data can only be a SnapMirror source, never a destination. Although you can copy data from the non-qtree data to another qtree, you cannot copy data to the non-qtree data from another qtree.
If you run the snapmirror quiesce or the snapmirror break command on the destination volume (/vol/vol4/non_qtree_data_in_vol3), you can resynchronize the destination volume to the source volume, as in this example:
systemB> snapmirror resync -S /vol/vol3/- /vol/vol4/non_qtree_data_in_vol3
You cannot resynchronize the two qtrees in the opposite direction.
To summarize, you cannot make /vol/volname/- a SnapMirror destination. This non-qtree data can only be a SnapMirror source.
When the snapmirror initalize command copies a volume, it creates a Snapshot copy of all the data on the source and transfers it to the destination. The destination is a volume you have already created and marked restricted. After SnapMirror finishes transferring the data, it brings the destination online, but in a read-only state. This version of the destination is the baseline for the first incremental update.
Note
While the initial data transfer is taking place, the destination is marked "invalid" in the output of a vol status command. The volume becomes valid and goes online once the initial transfer is complete.
To use SnapMirror to copy a qtree, you do not create a destination qtree because the snapmirror initialize command creates it. The volume where you want the destination qtree to be must be online. After the destination qtree is initialized, it is no longer writable; however, the rest of the volume where that qtree resides is still writable.
The destination Snapshot copy created by qtree initialization is marked "busy" in the output of the snap list command until the next transfer is complete.
After you initialize a SnapMirror volume replication, the files and Snapshot copies in the source volume are available on the destination.
After you initialize a SnapMirror qtree replication, the files on the source qtree are available on its destination qtree.
You can export the destination for NFS mounting or add a share corresponding to the destination for CIFS sharing.
To check that a destination volume has been initialized, you can use the snapmirror status command. For more information, see Checking SnapMirror data transfer status. If you specify no options or arguments, the snapmirror status command shows the status of the volumes in the system, as shown in the example below. You also can use the vol status or the qtree command to check whether the volume or qtree is a SnapMirror destination.
systemA> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
systemA:vol0 systemA:vol0bak Snapmirrored 00:56:58 Idle
systemA:vol1 systemB:vol6 Source 23:69:26 Transferri ng
(126 MB done)
To check that a destination qtree has been created and initialized, complete the following step.
When you use the snapmirror initialize command to initialize a volume replication, SnapMirror sets the vol options fs_size_fixed option to on. This option forces the file system on the destination volume to remain the same size as the file system on the source volume.
When an initialization fails because of a reboot or other interruption, you can restart it by re-entering the snapmirror initialize command if all the following conditions are present:
SnapMirror does not automatically retry to initialize a destination.
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01081_B0
File: mirror12.htm
Last updated: 01-Dec-2005 16:36:03