Skip to main content

Prepare Snapshots before reverting an ONTAP cluster

Contributors netapp-aherbin netapp-aaron-holt

Before you revert an ONTAP cluster from any version of ONTAP 9, you must disable all snapshot policies and delete any Snapshots that were created after upgrading to the current release.

If you are reverting in a SnapMirror environment, you must first have deleted the following mirror relationships:

  • All load-sharing mirror relationships

  • Any data protection mirror relationships that were created in ONTAP 8.3.x

  • All data protection mirror relationships if the cluster was re-created in ONTAP 8.3.x

Steps
  1. Disable snapshot policies for all data SVMs:

    volume snapshot policy modify -vserver * -enabled false
  2. Disable snapshot policies for each node's aggregates:

    1. Identify the node's aggregates:

      run -node <nodename> -command aggr status
    2. Disable the snapshot policy for each aggregate:

      run -node <nodename> -command aggr options aggr_name nosnap on
    3. Repeat this step for each remaining node.

  3. Disable snapshot policies for each node's root volume:

    1. Identify the node's root volume:

      run-node <node_name> -command vol status

      You identify the root volume by the word root in the Options column of the vol status command output.

      vs1::> run -node node1 vol status
      
               Volume State           Status            Options
                 vol0 online          raid_dp, flex     root, nvfail=on
                                      64-bit
    2. Disable the snapshot policy on the root volume:

      run -node <node_name> vol options root_volume_name nosnap on
    3. Repeat this step for each remaining node.

  4. Delete all snapshots that were created after upgrading to the current release:

    1. Set the privilege level to advanced:

      set -privilege advanced
    2. Disable the snapshots:

      snapshot policy modify -vserver * -enabled false
    3. Delete the node's newer-version snapshots:

      volume snapshot prepare-for-revert -node <node_name>

      This command deletes the newer-version snapshots on each data volume, root aggregate, and root volume.

      If any snapshots cannot be deleted, the command fails and notifies you of any required actions you must take before the snapshots can be deleted. You must complete the required actions and then rerun the volume snapshot prepare-for-revert command before proceeding to the next step.

      cluster1::*> volume snapshot prepare-for-revert -node node1
      
      Warning: This command will delete all snapshots that have the format used by the current version of ONTAP. It will fail if any snapshot polices are enabled, or
               if any snapshots have an owner. Continue? {y|n}: y
    4. Verify that the snapshots have been deleted:

      volume snapshot show -node nodename
    5. If any newer-version snapshots remain, force them to be deleted:

      volume snapshot delete {-fs-version 9.0 -node nodename -is-constituent true} -ignore-owners -force
    6. Repeat these steps for each remaining node.

    7. Return to the admin privilege level:

      set -privilege admin
Note You must perform these steps on both the clusters in MetroCluster configuration.