Resiliency

Container Storage Modules (CSM) for Resiliency installation
  1. Enable Resiliency Module


    Use this command to create the ContainerStorageModule Custom Resource with Resiliency:

    oc create -f csm-vxflexos.yaml
    

    Example:

    cat << EOF > csm-vxflexos.yaml
    apiVersion: storage.dell.com/v1
    kind: ContainerStorageModule
    metadata:
      name: vxflexos
      namespace: vxflexos
    spec:
      driver:
        csiDriverType: "powerflex"
        configVersion: Default text if no valid parameter is passed.
      modules:
      - name: resiliency
        enabled: true
    EOF
    

    Detailed Configuration: Use the sample file for detailed settings.


    Check if Resiliency module successfully installed:

    oc get pod -n powerflex
    
    NAME                                     READY   STATUS    RESTARTS   AGE
    powerflex-controller-5bcb5ff8cb-fjdmf   6/6     Running   0          55s
    powerflex-controller-5bcb5ff8cb-n7j79   6/6     Running   0          55s
    powerflex-node-j4jsz                    3/3     Running   0          55s
    powerflex-node-xmrf8                    3/3     Running   0          34s
    

    Verify the Resiliency Sidecar are displayed in controller pod:

    oc get pod powerflex-controller-5bcb5ff8cb-fjdmf -o jsonpath='{.spec.containers[*].name}'
    
    podmon attacher provisioner snapshotter resizer driver
    

    Verify the Resiliency Sidecar are displayed in node pod:

    oc get pod powerflex-node-j4jsz -o jsonpath='{.spec.containers[*].name}'
    
    podmon driver registrar
    

  1. Protect Pods with Resiliency Module


    Use this command to enable resiliency protection on a pod

    oc label pods pod-vxflexos podmon.dellemc.com/driver=csi-vxflexos 
    
    pod/pod-vxflexos labeled
    

    Verify:

    oc get pods -l podmon.dellemc.com/driver=csi-vxflexos 
    
    NAME             READY   STATUS    RESTARTS   AGE
    pod-vxflexos   1/1     Running   0          5m11s
    

    Disable resiliency protection on a pod:

    oc label pods pod-vxflexos podmon.dellemc.com/driver-
    
    pod/pod-vxflexos unlabeled
    

  1. Disabling Resiliency Module


    Use this command to disable resiliency

    oc edit csm vxflexos -n vxflexos
    

    Example:

    apiVersion: storage.dell.com/v1
    kind: ContainerStorageModule
    metadata:
      name: vxflexos
      namespace: vxflexos
    spec:
      driver:
        csiDriverType: "powerflex"
        configVersion: Default text if no valid parameter is passed.
      modules:
      - name: resiliency
        enabled: false