Converting compute node to AFM node

Convert a compute node to a AFM node through backend CR.

Before you begin

  • Compute only node must be a part of the storage cluster. To upsize the node to the storage cluster, see Configuring nodes for management.
  • The Global Data Platform service must be healthy before you begin the node conversion process.

Procedure

  1. Run the following command to provide a name of the node in the spec section > nodeToBeDesignatedAsAfm field of the storagemanager custom resource.
    oc patch Scale storagemanager -n ibm-spectrum-fusion-ns --type='json' -p='[{"op": "add", "path": "/spec/nodeToBeDesignatedAsAfm", "value": "<compute-only_node_name>"}]'
  2. Run the following command to verify whether the storagemanager custom resource field is updated with the provided node name:
    oc get Scale storagemanager -n ibm-spectrum-fusion-ns -oyaml | grep nodeToBeDesignatedAsAfm
    The progress can be tracked through the status field userDesignatedAfmNodeStatus on the storagemanager custom resource.
    oc get Scale storagemanager -n ibm-spectrum-fusion-ns -oyaml | grep userDesignatedAfmNodeStatus
    Example output:
    userDesignatedAfmNodeStatus: IN-PROGRESS
    After you successfully convert the node from Compute to AFM, the status of the userDesignatedAfmNodeStatus in the storagemanager custom resource displays as COMPLETED.
    oc get Scale storagemanager -n ibm-spectrum-fusion-ns -oyaml | grep userDesignatedAfmNodeStatus
    Example output:
    userDesignatedAfmNodeStatus: COMPLETED

    After you complete the node conversion process, the node name gets added to the designatedAfmNodes field in the status section.

  3. Run the following command to obtain a list of all the converted nodes:
    oc get Scale storagemanager -n ibm-spectrum-fusion-ns -o=jsonpath='{.status.designatedAfmNodes[*]}'
  4. Run the following command to verify the role of the node:
    oc get node <node_name> -oyaml | grep 'scale.spectrum.ibm.com/role'
    Example command:
    oc get node compute-1-ru10.rackae1.mydomain.com -oyaml | grep 'scale.spectrum.ibm.com/role'
    Example output:
    scale.spectrum.ibm.com/role: afm
  5. Run the following command to verify whether the required taints are applied on the node.
    oc get node <node_name> -o=jsonpath='{.spec.taints}'
    Example:
    oc get node compute-1-ru10.rackae1.mydomain.com -o=jsonpath='{.spec.taints}'
  6. Go to the Global Data Platform page on the IBM Storage Fusion HCI System user interface and ensure that the node type displays AFM correctly.