Skip to main content
ONTAP MetroCluster

Verifying a successful switchback

Contributors netapp-aoife netapp-thomi NetAppZacharyWambold netapp-aherbin

After performing the switchback, you want to confirm that all aggregates and storage virtual machines (SVMs) are switched back and online.

  1. Verify that the switched-over data aggregates are switched back:

    storage aggregate show

    In the following example, aggr_b2 on node B2 has switched back:

    node_B_1::> storage aggregate show
    Aggregate     Size Available Used% State   #Vols  Nodes            RAID Status
    --------- -------- --------- ----- ------- ------ ---------------- ------------
    ...
    aggr_b2    227.1GB   227.1GB    0% online       0 node_B_2   raid_dp,
                                                                       mirrored,
                                                                       normal
  2. Verify that all sync-destination SVMs on the surviving cluster are dormant (showing an operational state of “stopped”):

    vserver show -subtype sync-destination

    node_B_1::> vserver show -subtype sync-destination
                                     Admin    Operational  Root
    Vserver       Type    Subtype    State    State        Volume    Aggregate
    -----------   ------- ---------- -------- ----------   --------  ----------
    ...
    cluster_A-vs1a-mc data sync-destination
                                   running    stopped    vs1a_vol   aggr_b2

    Sync-destination aggregates in the MetroCluster configuration have the suffix “-mc” automatically appended to their name to help identify them.

  3. Verify the sync-source SVMs on the disaster cluster are up and running:

    vserver show -subtype sync-source

    node_A_1::> vserver show -subtype sync-source
                                      Admin    Operational  Root
    Vserver        Type    Subtype    State    State        Volume     Aggregate
    -----------    ------- ---------- -------- ----------   --------   ----------
    ...
    vs1a           data    sync-source
                                      running  running    vs1a_vol  aggr_b2
  4. Confirm that the switchback operations succeeded by using the metrocluster operation show command.

    If the command output shows…​

    Then…​

    That the switchback operation state is successful.

    The switchback process is complete and you can proceed with operation of the system.

    That the switchback operation or switchback-continuation-agent operation is partially successful.

    Perform the suggested fix provided in the output of the metrocluster operation show command.

  5. Perform the following checks to confirm that switchover is operational between the two clusters:

    1. From the DR cluster, check if a switchover from the surviving cluster to the DR cluster is possible:

      metrocluster switchover -simulate

    2. From the surviving cluster, check if a switchover from the DR cluster to the surviving cluster is possible:

      metrocluster switchover -simulate

    3. Verify that the MetroCluster components are healthy:

      metrocluster check run

      cluster_A::*> metrocluster check run

      The operation runs in the background.

    4. After the metrocluster check run operation completes, run:

      metrocluster check show

      After approximately five minutes, the following results are displayed:

      cluster_A:::*> metrocluster check show
      
      Component           Result
      ------------------- ---------
      nodes               ok
      lifs                ok
      config-replication  ok
      aggregates          ok
      clusters            ok
      connections         ok
      volumes             ok
      7 entries were displayed.
      Note In a MetroCluster FC environment, 'connections' should show as "not-applicable" in the command output.