Add and remove volumes in a SVM DR relationship

Every modification in a SVM DR relationship needs a “snapmirror resync” on the destination site. So it’s very easy to add and remove volume to/from relationship.
Here is a brief introduction on how to do these two tasks.

Add a new volume to SVM-DR
# Create a new volume in the already existing SVM-DR Source SVM

source_cluster::> volume create -vserver source_svm -volume NewDRVolume -aggregate aggr1_node01_sas -size 10g -state online -type RW
[Job 2706] Job succeeded: Successful

# Do a snapmirror resync on the destination SVM

dest_cluster::> snapmirror resync -destination-path dest_svm:

# Wait until the resync is done (Relationship Status -> Idle)

dest_cluster::> snapmirror show dest_svm:

Source Path: source_svm:
Destination Path: dest_svm:
Relationship Type: DP
Relationship Group Type: –
SnapMirror Schedule: 30min
SnapMirror Policy Type: async-mirror
SnapMirror Policy: DPDefault
Tries Limit: –
Throttle (KB/sec): unlimited
Mirror State: Snapmirrored
Relationship Status: Idle
File Restore File Count: –
File Restore File List: –
Transfer Snapshot: –
Snapshot Progress: –
Total Progress: –
Network Compression Ratio: –
Snapshot Checkpoint: –
Newest Snapshot: vserverdr.2.8a2831d4-558f-11e6-b980-00a0989f2857.2016-09-28_100000
Newest Snapshot Timestamp: 09/28 10:00:00
Exported Snapshot: vserverdr.2.8a2831d4-558f-11e6-b980-00a0989f2857.2016-09-28_100000
Exported Snapshot Timestamp: 09/28 10:00:00
Healthy: true
Unhealthy Reason: –
Constituent Relationship: false
Destination Volume Node: –
Relationship ID: d2cbabb9-558f-11e6-b980-00a0989f2857
Current Operation ID: –
Transfer Type: –
Transfer Error: –
Current Throttle: –
Current Transfer Priority: –
Last Transfer Type: update
Last Transfer Error: –
Last Transfer Size: 1.64MB
Last Transfer Network Compression Ratio: –
Last Transfer Duration: 0:0:11
Last Transfer From: source_svm:
Last Transfer End Timestamp: 09/28 10:00:11
Progress Last Updated: –
Relationship Capability: –
Lag Time: 0:21:7
Identity Preserve Vserver DR: true
Number of Successful Updates: –
Number of Failed Updates: –
Number of Successful Resyncs: –
Number of Failed Resyncs: –
Number of Successful Breaks: –
Number of Failed Breaks: –
Total Transfer Bytes: –
Total Transfer Time in Seconds: –

# Check the new volume on the DR site

dest_cluster::> vol show -vserver dest_svm
Vserver Volume Aggregate State Type Size Available Used%
——— ———— ———— ———- —- ———- ———- —–
dest_svm
dest_svm_root
aggr1_node01_sas
online RW 1GB 972.6MB 5%
dest_svm
dest_svm_nfs_prod01
aggr1_node01_sas
online DP 4TB 2.00TB 50%
dest_svm
NewDRVolume
aggr1_node01_sas
online DP 10GB 9.50GB 5%
3 entries were displayed.

Remove a no longer used volume from SVM-DR
# Remove the volume from the SVM-DR Source SVM

source_cluster::> volume offline -vserver source_svm -volume OldDRVolume
Volume “source_svm:OldDRVolume” is now offline.
source_cluster::> volume delete -vserver source_svm -volume OldDRVolume
Warning: Are you sure you want to delete volume “OldDRVolume” in Vserver “source_svm” ?
{y|n}: y
[Job 2711] Job succeeded: Successful

# Resync the destination svm

dest_cluster::> snapmirror resync -destination-path dest_svm:

# Wait until the resync is done (Relationship Status -> Idle)

dest_cluster::> snapmirror show dest_svm:

Source Path: source_svm:
Destination Path: dest_svm:
Relationship Type: DP
Relationship Group Type: –
SnapMirror Schedule: 30min
SnapMirror Policy Type: async-mirror
SnapMirror Policy: DPDefault
Tries Limit: –
Throttle (KB/sec): unlimited
Mirror State: Snapmirrored
Relationship Status: Idle
File Restore File Count: –
File Restore File List: –
Transfer Snapshot: –
Snapshot Progress: –
Total Progress: –
Network Compression Ratio: –
Snapshot Checkpoint: –
Newest Snapshot: vserverdr.0.8a2831d4-558f-11e6-b980-00a0989f2857.2016-09-28_131416
Newest Snapshot Timestamp: 09/28 13:14:16
Exported Snapshot: vserverdr.0.8a2831d4-558f-11e6-b980-00a0989f2857.2016-09-28_131416
Exported Snapshot Timestamp: 09/28 13:14:16
Healthy: true
Unhealthy Reason: –
Constituent Relationship: false
Destination Volume Node: –
Relationship ID: d2cbabb9-558f-11e6-b980-00a0989f2857
Current Operation ID: –
Transfer Type: –
Transfer Error: –
Current Throttle: –
Current Transfer Priority: –
Last Transfer Type: resync
Last Transfer Error: –
Last Transfer Size: 400KB
Last Transfer Network Compression Ratio: –
Last Transfer Duration: 0:0:35
Last Transfer From: source_svm:
Last Transfer End Timestamp: 09/28 13:14:51
Progress Last Updated: –
Relationship Capability: –
Lag Time: 0:0:40
Identity Preserve Vserver DR: true
Number of Successful Updates: –
Number of Failed Updates: –
Number of Successful Resyncs: –
Number of Failed Resyncs: –
Number of Successful Breaks: –
Number of Failed Breaks: –
Total Transfer Bytes: –
Total Transfer Time in Seconds: –

# Check for the new volume on the DR site

dest_cluster::> vol show -vserver dest_svm
Vserver Volume Aggregate State Type Size Available Used%
——— ———— ———— ———- —- ———- ———- —–
dest_svm
dest_svm_root
aggr1_node01_sas
online RW 1GB 972.6MB 5%
dest_svm
dest_svm_nfs_prod01
aggr1_node01_sas
online DP 4TB 2.00TB 50%
2 entries were displayed.