NetApp – Rename SnapMirror Volumes


The goal of this post is to outline how to cleanly update the volume name of both the source and the destination volume of a NetApp snapmirror relationship.  These steps allow for  no loss of initialized snapmirror relationships and existing snapshots.

  1. Confirm the status of the snapmirror relationship is “idle” by running snapmirror status
  2. Rename the source and destination volume names
  3. Break the snapmirror relationship (Note: use the new destination volume name)
  4. Resync the snapmirror relationship using the new volume names

Example Step Output:
nap002> snapmirror initialize -S nap001:source_test nap002:dest_test
nap002> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
nap001:source_test nap002:dest_test Snapmirrored 00:00:07 Idle

nap001> vol rename source_test source_new
nap002> vol rename dest_test dest_new

nap002> snapmirror status (Note: the source is now missing)
Snapmirror is on.
Source Destination State Lag Status
– nap002:dest_new Snapmirrored 00:01:49 Idle

nap002> snapmirror break dest_new
nap002> snapmirror resync -S nap001:source_new nap002:dest_new
The resync base snapshot will be: nap002(4055372815)_dest_test.1
Are you sure you want to resync the volume? yes

nap002> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
nap001:source_test nap002:dest_new Snapmirrored 00:00:05 Transferring (84 KB done)

Advertisements

3 thoughts on “NetApp – Rename SnapMirror Volumes

  1. Perfection, this saved my bacon!!
    For anyone reading this article I can confirm these instructions (followed exactly) work like charm on ontap 7.3.3.

    My thanks to the author.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s