Upgrading from 2.x or 3.x to 4.x

Backing Up Storage Backend Configurations

If you have evaluated the risks mentioned in the preceding notice and need to upgrade CSI from 2.x or 3.x to 4.11.0, perform the following steps to back up storage backend configurations:

  1. Use a remote access tool, such as PuTTY, to log in to any master node in the Kubernetes cluster through the management IP address.

  2. Run the following command to back up the backend information to the configmap.json file. For the OpenShift platform, replace kubectl with oc.

    kubectl get cm huawei-csi-configmap -n huawei-csi -o json > configmap.json
    

Upgrading Huawei CSI

Perform the upgrade according to the procedure described in Upgrading Huawei CSI .

Configuring the Storage Backend

  1. Configure the storage backend based on the backend information backed up in Backing Up Storage Backend Configurations according to Storage Backend Management . The command for configuring the storage backend based on the backup backend information is as follows:

    oceanctl create backend -f configmap.json -i json -n huawei-csi