Revert an ONTAP cluster
Reverting an ONTAP cluster is disruptive. You must take the cluster offline for the duration of the reversion. You should not revert a production cluster without assistance from technical support.
To revert a new or test cluster, you must disable storage failover and data LIFs and address reversion preconditions; then you must revert the cluster and file system configuration on each node in the cluster.
-
You should have completed the pre-revert verifications.
-
You should have completed the required pre-checks for your specific ONTAP version.
Step 1: Prepare the cluster for reversion
Before you revert any of your cluster nodes, you should verify that your target ONTAP image is installed and you should disable all the data LIFs in the cluster.
-
Set the privilege level to advanced:
Enter y when prompted to continue.
-
Verify that the target ONTAP software is installed:
The following example shows that version 9.13.1 is installed as the alternate image on both nodes:
cluster1::*> system image show Is Is Install Node Image Default Current Version Date -------- ------- ------- ------- -------- ------------------- node0 image1 true true 9.14.1 MM/DD/YYYY TIME image2 false false 9.13.1 MM/DD/YYYY TIME node1 image1 true true 9.14.1 MM/DD/YYYY TIME image2 false false 9.13.1 MM/DD/YYYY TIME 4 entries were displayed.
-
Disable all of the data LIFs in the cluster:
-
Determine if you have inter-cluster flexcache relationships:
-
If inter-cluster flexcaches are present, disable the data lifs on the cache cluster:
Step 2: Revert cluster nodes
To revert your cluster, you need to revert the first node in an HA pair, then revert the partner node. You then repeat this process for each HA pair in your cluster until all nodes are reverted. If you have a MetroCluster configuration, you need to repeat these steps for both the clusters in the configuration.
-
Log in to the node that you want to revert.
To revert a node, you must be logged in to the cluster through the node's node management LIF.
-
Disable storage failover for the nodes in the HA pair:
You only need to disable storage failover once for the HA pair. When you disable storage failover for a node, storage failover is also disabled on the node's partner.
-
Set the node's target ONTAP software image to be the default image:
-
Verify that the target ONTAP software image is set as the default image for the node that you are reverting:
The following example shows that version 9.13.1 is set as the default image on node0:
cluster1::*> system image show Is Is Install Node Image Default Current Version Date -------- ------- ------- ------- -------- ------------------- node0 image1 false true 9.14.1 MM/DD/YYYY TIME image2 true false 9.13.1 MM/DD/YYYY TIME node1 image1 true true 9.14.1 MM/DD/YYYY TIME image2 false false 9.13.1 MM/DD/YYYY TIME 4 entries were displayed.
-
Verify that the node is ready for reversion:
The
check-only
parameter identifies any preconditions that must be addressed before reverting, such as disabling the snapshot policy or deleting snapshots that were created after upgrading to the later version of ONTAP.The
-version
option refers to the ONTAP release to which you are reverting. For example, if you are reverting from 9.14.1 to 9.13.1, the correct value of the-version
option is 9.13.1. -
Revert the cluster configuration of the node:
The cluster configuration is reverted, and then you are logged out of the clustershell.
-
Wait for the login prompt; then enter No when you are asked if you want to login to the systemshell.
It could take up to 30 minutes or more for the login prompt to appear.
-
Log in to the clustershell with admin.
-
Switch to the nodeshell:
After logging on the clustershell again, it might take a few minutes before it is ready to accept the nodeshell command. So, if the command fails, wait a few minutes and try it again.
-
Revert the file system configuration of the node:
This command verifies that the node's file system configuration is ready to be reverted, and then reverts it. If any preconditions are identified, you must address them and then rerun the
revert_to
command.Using a system console to monitor the revert process displays greater details than seen in nodeshell. If AUTOBOOT is true, when the command finishes, the node will reboot to ONTAP.
If AUTOBOOT is false, when the command finishes, the LOADER prompt is displayed. Enter
yes
to revert; then useboot_ontap
to manually reboot the node. -
After the node has rebooted, confirm that the new software is running:
In the following example, image1 is the new ONTAP version and is set as the current version on node0:
cluster1::*> system node image show Is Is Install Node Image Default Current Version Date -------- ------- ------- ------- -------- ------------------- node0 image1 true true X.X.X MM/DD/YYYY TIME image2 false false Y.Y.Y MM/DD/YYYY TIME node1 image1 true false X.X.X MM/DD/YYYY TIME image2 false true Y.Y.Y MM/DD/YYYY TIME 4 entries were displayed.
-
Verify that the revert status for the node is complete:
The status should be listed as "complete", "not needed", or "there are no table entries returned."
-
Repeat these steps on the other node in the HA pair; then repeat these steps for each additional HA pair.
If you have a MetroCluster Configuration, you need to repeat these steps on both clusters in the configuration
-
After all nodes have been reverted, reenable high availability for the cluster: