Skip to main content

Performing an automatic nondisruptive upgrade using the CLI

You can use the command line interface (CLI) to verify that the cluster can be upgraded nondisruptively, install the target ONTAP image on each node, and then, execute an upgrade in the background.

Before you begin

  • You must have met the upgrade preparation requirements.

  • For each HA pair, each node should have one or more ports on the same broadcast domain.

    When a set of nodes is upgraded during a batch upgrade, the LIFs are migrated to the HA partner nodes. If the partners do not have any ports in the same broadcast domain, then the LIF migration fails.

About this task

The cluster image validate command checks the cluster components to validate that the upgrade can be completed nondisruptively, and then provides the status of each check and any required action you must take before performing the software upgrade.
Note
Modifying the setting of the storage failover modify-auto-giveback command option before the start of an automatic nondisruptive upgrade (ANDU) has no impact on the upgrade process. The ANDU process ignores any preset value to this option during the takeover/giveback required for the update. For example, setting -autogiveback to false prior to beginning ANDU does not interrupt the automatic upgrade before giveback.
  1. Delete the previous ONTAP software package:cluster image package delete -version previous_ONTAP_Version
  2. Download the target ONTAP software package: cluster image package get -url location

    Example

    TDC-DM7K::> cluster image package get -url http://www.example.com/software/9.7/image.tgz

    Package download completed.
    Package processing completed.
  3. Verify that the software package is available in the cluster package repository: cluster image package show-repository

    Example

    TDC-DM7K::> cluster image package show-repository
    Package Version Package Build Time
    ---------------- ------------------
    9.7 MM/DD/YYYY 10:32:15
  4. Verify that the cluster is ready to be upgraded nondisruptively: cluster image validate -version package_version_number

    • If you are upgrading a four-node MetroCluster configuration, you must run this command on all nodes before proceeding.

    • If you are upgrading from ONTAP 9.5 to 9.8, use the 9.8 package for verification.

    Example

    TDC-DM7K::> cluster image validate -version 9.7

    WARNING: There are additional manual upgrade validation checks that must be performed after these automated validation checks have completed...
  5. Monitor the progress of the validation: cluster image show-update-progress
  6. Complete all required actions identified by the validation.
  7. Required: Generate a software upgrade estimate: cluster image update -version package_version_number -estimate-only

    The software upgrade estimate displays details about each component to be updated, and the estimated duration of the upgrade.
  8. Perform the software upgrade: cluster image update -version package_version_number

    • For any MetroCluster configuration, except a 2-node MetroCluster system, the upgrade process starts simultaneously on both of the clusters (the disaster recovery cluster and the production cluster) after the user provides a confirmation. For a 2-node MetroCluster system, the update is started first on the disaster recovery site, that is, the site where the upgrade is not initiated. After the update is fully completed on the disaster recovery site, the upgrade begins on the production site.
    • If the cluster consists of 2 through 6 nodes, a rolling upgrade is performed. If the cluster consists of 8 or more nodes, a batch upgrade is performed by default. If desired, you can use the -force-rolling parameter to specify a rolling upgrade instead.

    • After completing each takeover and each giveback, the upgrade waits for 8 minutes to enable client applications to recover from the pause in I/O that occurs during the takeover and giveback. If your environment requires more or less time for client stabilization, you can use the -stabilize-minutes parameter to specify a different amount of stabilization time.

    Example

    TDC-DM7K::> cluster image update -version 9.7

    Starting validation for this update. Please wait..

    It can take several minutes to complete validation...

    WARNING: There are additional manual upgrade validation checks...

    Pre-update Check Status Error-Action
    --------------------- ---------- --------------------------------------------
    ...
    20 entries were displayed

    Would you like to proceed with update ? {y|n}: y
    Starting update...

    TDC-DM7K::>

  9. Display the cluster update progress: cluster image show-update-progress

    Note
    If you are upgrading a 4-node or 8-node MetroCluster configuration, the cluster image show-update-progress command only displays the progress for the node on which you run the command. You must run the command on each node to see individual node progress.
  10. Verify that the upgrade was completed successfully on each node.

    Example

    TDC-DM7K::> cluster image show-update-progress

    Estimated Elapsed
    Update Phase Status Duration Duration
    -------------------- ----------------- --------------- ---------------
    Pre-update checks completed 00:10:00 00:02:07
    Data ONTAP updates completed 01:31:00 01:39:00
    Post-update checks completed 00:10:00 00:02:00
    3 entries were displayed.

    Updated nodes: TDC-7K-03, TDC-7K-01.

    TDC-DM7K::>
  11. Trigger an AutoSupport notification: autosupport invoke -node * -type all -message "Finishing_NDU"

    If your cluster is not configured to send AutoSupport messages, a copy of the notification is saved locally