SHIFT

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

User Tools

Site Tools


Sidebar

Sponsor:


Recently Changed Pages:

View All Pages


View All Tags







WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Pages with comments

PageDateDiscussionTags
2019/11/18 13:52 1 Comment

View All Comments

snapmirrorrename

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:

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

Discussion

Enter your comment. Wiki syntax is allowed:
B V D U K
 
snapmirrorrename.txt · Last modified: 2019/11/18 12:25 (external edit)