SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


snapmirrorrename
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

snapmirrorrename [2013/10/08 22:11] (current)
sjoerd created
Line 1: Line 1:
 += Rename SnapMirror Volumes =
  
 +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:
 +
 +<​code>​
 +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'​
 +</​code>​
 +
 +Then rename the volume on the source filer:
 +<​code>​
 +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'​
 +</​code>​
 +
 +Then, on the target edit the snapmirror.conf (remember you need an empty line at the end):
 +<​code>​
 +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 - * * * *
 +
 +</​code>​
 +
 +Then, still on the target, enable snapmirror again:
 +<​code>​
 +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
 +</​code>​
 +
 +{{tag>​netapp storage}}
snapmirrorrename.txt ยท Last modified: 2013/10/08 22:11 by sjoerd