Skip to main content
ONTAP 7-Mode Transition

Transitioning a primary volume

Contributors netapp-aherbin

Transitioning a primary volume involves copying data from the 7-Mode primary volumes to the clustered Data ONTAP primary volumes, deleting the disaster recovery relationship between the 7-Mode primary and clustered Data ONTAP secondary volumes, and establishing a SnapMirror relationship between the clustered Data ONTAP primary and secondary volumes.

The primary cluster and SVM must already be set up.

Steps
  1. Copy the data from the 7-Mode primary volume to the clustered Data ONTAP primary volume:

    1. Use the snapmirror create command with the relationship type as TDP to create a SnapMirror relationship between the 7-Mode system and the SVM.

      pri_cluster::> snapmirror create -source-path src_system:finance -destination-path src_vserver:src_c_vol -type TDP
      Operation succeeded: snapmirror create the relationship with destination src_vserver:src_c_vol.
    2. Use the snapmirror initialize command to start the baseline transfer.

      pri_cluster::> snapmirror  initialize -destination-path src_vserver:src_c_vol
      Operation is queued: snapmirror initialize of destination src_vserver:src_c_vol.
    3. Depending on whether you want to update the clustered Data ONTAP volume manually or by setting up a SnapMirror schedule, perform the appropriate action:

      If you want to…​ Then…​

      Update transfers manually

      1. Use the snapmirror update command.

        pri_cluster::> snapmirror update -destination-path src_vserver:src_c_vol
      2. Use the snapmirror show command to monitor the data copy status.

        pri_cluster::> snapmirror show -destination-path src_vserver:src_c_vol
                                    Source Path: pri_system:src_7_vol
                               Destination Path: src_vserver:src_c_vol
                              Relationship Type: TDP
                        Relationship Group Type: none
                            SnapMirror Schedule: -
                         SnapMirror Policy Type: async-mirror
                              SnapMirror Policy: DPDefault
                                    Tries Limit: -
                              Throttle (KB/sec): unlimited
                                   Mirror State: Snapmirrored
         ...
                   Number of Successful Updates: 1
                       Number of Failed Updates: 0
                   Number of Successful Resyncs: 0
                       Number of Failed Resyncs: 0
                    Number of Successful Breaks: 0
                        Number of Failed Breaks: 0
                           Total Transfer Bytes: 473163808768
                 Total Transfer Time in Seconds: 43405
      3. Go to step 3.

      Perform scheduled update transfers

      1. Use the job schedule cron create command to create a schedule for update transfers.

        pri_cluster::> job schedule cron create -name 15_minute_sched -minute 15
      2. Use the snapmirror modify command to apply the schedule to the SnapMirror relationship.

        pri_cluster::> snapmirror modify -destination-path src_vserver:src_c_vol -schedule 15_minute_sched
      3. Use the snapmirror show command to monitor the data copy status.

        pri_cluster::> snapmirror show -destination-path src_vserver:src_c_vol
                                    Source Path: pri_system:src_7_vol
                               Destination Path: src_vserver:src_c_vol
                              Relationship Type: TDP
                        Relationship Group Type: none
                            SnapMirror Schedule: 15_minute_sched
                         SnapMirror Policy Type: async-mirror
                              SnapMirror Policy: DPDefault
                                    Tries Limit: -
                              Throttle (KB/sec): unlimited
                                   Mirror State: Snapmirrored
        ...
                   Number of Successful Updates: 1
                       Number of Failed Updates: 0
                   Number of Successful Resyncs: 0
                       Number of Failed Resyncs: 0
                    Number of Successful Breaks: 0
                        Number of Failed Breaks: 0
                           Total Transfer Bytes: 473163808768
                 Total Transfer Time in Seconds: 43405
  2. If you have a schedule for incremental transfers, perform the following steps when you are ready to perform cutover:

    1. Use the snapmirror quiesce command to disable all future update transfers.

      pri_cluster::> snapmirror quiesce -destination-path src_vserver:src_c_vol
    2. Use the snapmirror modify command to delete the SnapMirror schedule.

      pri_cluster::> snapmirror modify -destination-path src_vserver:src_c_vol -schedule ""
    3. If you quiesced the SnapMirror transfers earlier, use the snapmirror resume command to enable SnapMirror transfers.

      pri_cluster::> snapmirror resume -destination-path src_vserver:src_c_vol
  3. Create an SVM peer relationship between the clustered Data ONTAP secondary and primary SVMs.

    1. Use the cluster peer create command to create a cluster peer relationship.

      pri_cluster::> cluster peer create -peer-addrs cluster2-d2, 10.98.234.246 -timeout 60
      
      Notice: Choose a passphrase of 8 or more characters. To ensure the authenticity of the peering relationship, use a phrase or sequence of characters that would be hard to guess.
      
      Enter the passphrase: ********
      Confirm the passphrase: ********
    2. From the source cluster, use the vserver peer create command to create the SVM peer relationship between the clustered Data ONTAP primary and secondary volumes.

      pri_cluster::> vserver peer create -vserver src_vserver -peervserver src_c_vserver -applications snapmirror -peer-cluster sec_cluster
    3. From the destination cluster, use the vserver peer accept command to accept the SVM peer request and establish the SVM peer relationship.

      sec_cluster::> vserver peer accept -vserver dst_vserver -peervserver src_vserver
  4. From the destination cluster, use the snapmirror quiesce command to suspend any data transfers between the 7-Mode primary volume and the clustered Data ONTAP secondary volume if a schedule is set up for update transfers.

    sec_cluster::> snapmirror quiesce -destination-path dst_vserver:dst_c_vol
  5. Monitor the data copy operation and initiate cutover:

    1. Wait for any ongoing transfers from the 7-Mode primary volumes to the clustered Data ONTAP primary and clustered Data ONTAP secondary volumes to finish, and then disconnect client access from the 7-Mode primary volume to start cutover.

    2. Use the snapmirror update command to perform a final data update to the clustered Data ONTAP primary volume from the 7-Mode primary volume.

      pri_cluster::> snapmirror update -destination-path src_vserver:src_c_vol
    3. Use the snapmirror break command to break the SnapMirror relationship between the 7-Mode primary volume and clustered Data ONTAP primary volume.

      pri_cluster::> snapmirror  break -destination-path src_vserver:src_c_vol
      [Job 1485] Job is queued: snapmirror break for destination src_vserver:src_c_vol.
    4. If your volumes have LUNs configured, at the advanced privilege level, use the lun transition 7-mode show command to verify that the LUNs have been transitioned.

      You can also use the lun show command on the clustered Data ONTAP volume to view all of the LUNs that were successfully transitioned.

    5. Use the snapmirror delete command to delete the relationship.

      pri_cluster::> snapmirror  delete -destination-path src_vserver:src_c_vol
    6. Use the snapmirror release command to remove the SnapMirror relationship information from the 7-Mode system.

      system7mode> snapmirror release dataVol20 vs1:dst_vol
  6. From the destination cluster, break and delete the disaster recovery relationship between the 7-Mode primary volume and clustered Data ONTAP secondary volume.

    1. Use the snapmirror break command to break the disaster recovery relationship between the 7-Mode primary volume and clustered Data ONTAP secondary volume.

      sec_cluster::> snapmirror  break -destination-path dst_vserver:dst_c_vol
      [Job 1485] Job is queued: snapmirror break for destination dst_vserver:dst_c_vol.
    2. Use the snapmirror delete command to delete the relationship.

      sec_cluster::> snapmirror  delete -destination-path dst_vserver:dst_c_vol
    3. Use the snapmirror release command to remove the SnapMirror relationship information from the 7-Mode system.

      system7mode> snapmirror release dataVol20 vs1:dst_vol
  7. From the destination cluster, establish a SnapMirror relationship between the clustered Data ONTAP primary and secondary volumes:

    1. Use the snapmirror create command to create a SnapMirror relationship between the clustered Data ONTAP primary and secondary volumes.

      sec_cluster::> snapmirror create -source-path src_vserver:src_c_vol -destination-path dst_vserver:dst_c_vol -type DP -schedule 15_minute_sched
    2. Use the snapmirror resync command to resynchronize the SnapMirror relationship between the clustered Data ONTAP volumes.

      For successful resynchronization, a common Snapshot copy must exist between the clustered Data ONTAP primary and secondary volumes.

      sec_cluster::> snapmirror  resync -destination-path dst_vserver:dst_c_vol
    3. Use the snapmirror show command to verify that the status of SnapMirror resynchronization shows SnapMirrored.

      Note You must ensure that the SnapMirror resynchronization is successful to make the clustered Data ONTAP secondary volume available for read-only access.

You must delete the SVM peer relationship between the 7-Mode system and the SVM when all the required volumes in the 7-Mode system are transitioned to the SVM.

Related information