Rolling Back the Upgrade Version

This section describes how to roll back to the source version.

Procedure

  1. Log in to the node as a database user (for example, omm).

  2. Run the following command to roll back the kernel code. After the rollback is complete, run the gs_preinstall script in the old package to ensure that the kernel version is the same as the OM code version. For details, see Execute the gs_preinstall script.

    gs_upgradectl -t auto-rollback  -X /opt/software/GaussDB_Kernel/clusterconfig.xml
    

    NOTE: If the database is abnormal, run the following command to forcibly roll back the upgrade:

    gs_upgradectl -t auto-rollback -X /opt/software/GaussDB_Kernel/clusterconfig.xml --force
    
  3. Check the version number after the rollback.

    gs_om -V | --version
    
Feedback
编组 3备份
    openGauss 2025-09-05 07:42:54
    cancel