Rename SnapMirror Volumes
Summary: How to rename volumes in a SnapMirror relationship on a NetApp filer.
Date: Around 2014
Refactor: 16 April 2025: Checked links and formatting.
Renaming volumes in snapmirror relationships is quite easy, and far more easy than I expected it to be. It comes down to turning snapmirror off on the target, simply renaming the volumes, editing snapmirror.conf and then turning snapmirror on again. This is an example output.
Starting at the target, turn snapmirror off and rename the target volume:
dstfiler01b> snapmirror status Snapmirror is on. Source Destination State Lag Status srcfiler01b:PRD_01B_006 dstfiler01b:TARGET_04B_006 Snapmirrored 00:00:26 Idle srcfiler01b:PRD_01B_007 dstfiler01b:TARGET_04B_007 Snapmirrored 00:00:26 Idle srcfiler01b:PRD_01B_001 dstfiler01b:TARGET_04B_001 Snapmirrored 00:00:26 Idle dstfiler01b> snapmirror off dstfiler01b> vol rename TARGET_04B_01 TARGET_04B_016 'TARGET_04B_01' renamed to 'TARGET_04B_016'
Then rename the volume on the source filer:
srcfiler01b> snapmirror status Snapmirror is on. Source Destination State Lag Status srcfiler01b:PRD_01B_006 dstfiler01b:TARGET_04B_006 Source 00:01:33 Idle srcfiler01b:PRD_01B_007 dstfiler01b:TARGET_04B_007 Source 00:01:33 Idle srcfiler01b:PRD_01B_001 dstfiler01b:TARGET_04B_001 Source 00:01:33 Idle srcfiler01b> vol rename PRD_01B_01 PRD_01B_016 'PRD_01B_01' renamed to 'PRD_01B_016'
Then, on the target edit the snapmirror.conf (remember you need an empty line at the end):
dstfiler01b> rdfile /etc/snapmirror.conf # 20130228 sjoerdhooft removed old snapmirrors srcfiler01b:PRD_01B_001 dstfiler01b:TARGET_04B_001 - * * * * srcfiler01b:PRD_01B_006 dstfiler01b:TARGET_04B_006 - * * * * srcfiler01b:PRD_01B_007 dstfiler01b:TARGET_04B_007 - * * * * dstfiler01b> wrfile /etc/snapmirror.conf # 20130228 sjoerdhooft removed old snapmirrors srcfiler01b:PRD_01B_001 dstfiler01b:TARGET_04B_001 - * * * * srcfiler01b:PRD_01B_006 dstfiler01b:TARGET_04B_006 - * * * * srcfiler01b:PRD_01B_007 dstfiler01b:TARGET_04B_007 - * * * *
Then, still on the target, enable snapmirror again:
dstfiler01b> snapmirror on dstfiler01b> snapmirror status Snapmirror is on. Source Destination State Lag Status srcfiler01b:PRD_01B_006 dstfiler01b:TARGET_04B_006 Snapmirrored 00:02:51 Idle srcfiler01b:PRD_01B_007 dstfiler01b:TARGET_04B_007 Snapmirrored 00:02:51 Idle srcfiler01b:PRD_01B_001 dstfiler01b:TARGET_04B_001 Snapmirrored 00:02:51 Idle