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.
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 SnapMirroring 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 via CIFS.
filerB> snapmirror initialize -S filerA:vol0 filerB:vol2
SnapMirror transfers a complete copy of the source volume (vol0 on filerA) to the destination volume (vol2 on filerB).
filerB> snapmirror initialize -S filerA:/vol/vol1/qtree4
filerB:/vol/vol1/qtree4bak
SnapMirror transfers a complete copy of the qtree source (qtree4 on vol1 on filerA) to the destination qtree (qtree4bak on vol1on filerB).
Non-qtree data is any data on a filer 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.
filerB> snapmirror initialize -S filerA:/vol/vol3/- filerB:/vol/vol4/non_qtree_data_in_vol3
SnapMirror transfers to the destination qtree (non_qtree_data_in_vol3 on vol4 on filerB) a complete copy of all the data in filerA, volume 3, that is not a part of a qtree.
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:
filerB> 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 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 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 snapshots 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 filer, 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.
filerA> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
filerA:vol0 filerA:vol0bak Snapmirrored 00:56:58 Idle
filerA:vol1 filerB:vol6 Source 23:69:26 Transferring
(126 MB done)
To check that a destination qtree has been created and initialized, you can use the qtree command. If you specify no options or arguments, the qtree command shows the status of all the qtrees in the filer, as in the example below.
filerA> qtree
Volume Tree Style Oplocks Status
-------- ----- ----- ------- ------
vol0 unix enabled normal
qtree24 unix enabled normal
filerB_vol0 unix disabled normal
filerB_vol0 qt1 mixed enabled snapmirrored
filerB_vol0 qt2 unix disabled normal
filerB_vol0 qt3 ntfs enabled snapmirrored
Note
When the qtree command is run from a MultiStoreTM vfilerTM unit, any qtree that is either a SnapMirror destination or part of a volume that is a SnapMirror destination has read_only in the Status column of the output.
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-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00325
File: mirror9.htm
Last updated: 01/14/03 18:24:45