Dell PowerMax

CloudCasa DR uses the SRDF replication built into Dell PowerMax arrays, in SRDF/S (synchronous) or SRDF/A (asynchronous) mode. SRDF replicates the data. CloudCasa runs the failover and failback operations on the arrays through Unisphere for PowerMax, and restores the workloads on the other cluster. This page describes what is specific to PowerMax.

See also

Requirements

  • Replication must already be configured. CloudCasa doesn’t create storage groups, SRDF groups, or SRDF pairs. Configure them in Unisphere or with Dell CSM replication. PVCs must be on devices in an SRDF-protected storage group, using SRDF/S or SRDF/A. SRDF/Metro volumes aren’t supported. A volume that isn’t in an SRDF-protected storage group is not failed over.

  • The PowerMax CSI driver (csi-powermax) must be installed on both clusters. The driver on the DR cluster must be configured for the destination array.

  • Add one storage system for each array. The Unisphere endpoint URL is the address of a Unisphere for PowerMax that manages the array locally, for example https://<unisphere-address>:8443. Unisphere must support REST API version 100 or later (Unisphere for PowerMax 10.0 or later). The Symmetrix ID is the 12-digit ID of the array. It can’t be changed after the storage system is added. The user account must be able to view storage resources, run SRDF operations (resume, failover, and failback), and set volume identifiers. The array must have at least one SRDF group that is online. Each cluster needs HTTPS access to its own Unisphere.

  • The inventory PVC must be replicated in the same way as the application PVCs. It can share a storage group with the plan’s own workloads, but not with another DR plan. Its storage group, and everything in it, is failed over on every recovery of the plan.

  • Each DR plan needs its own storage groups. See Keeping DR plans separate.

See also

For more information on adding storage systems, see Adding a storage system.

Storage inventory

During inventory, CloudCasa only reads from the arrays. It collects volumes, storage groups, SRDF groups, and SRDF pairs. CloudCasa finds the device for each PV from the PV’s volume handle.

For each PVC, the DR plan details page shows:

  • The consistency group, which is the device’s SRDF-protected storage group. If the device is in more than one, CloudCasa prefers the storage group that Dell CSM replication created (csi-rep-sg-...).

  • The replication mode of the SRDF group: synchronous or asynchronous.

  • The replication status and role. PowerMax doesn’t report a last sync time.

PVCs that aren’t replicated are listed, but they are not failed over.

If a storage group contains devices that aren’t in the plan’s inventory, CloudCasa shows a warning that lists their device IDs. These devices are failed over with the storage group.

Creating a DR plan

Creating a DR plan doesn’t create or change anything on either array. On the source cluster, CloudCasa starts the DR agent, which records the plan’s Kubernetes resources on the inventory PVC. CloudCasa then runs an inventory job immediately, and again at the configured interval.

When the plan is saved, and each time inventory runs, CloudCasa checks that:

  • Both storage systems are connected and the replication target is active.

  • The inventory PVC is bound, is replicated, and isn’t used by another DR plan.

  • All of the plan’s storage groups have the same role and replicate to the same array.

Block volumes

CloudCasa DR supports PowerMax block volumes.

  • The SRDF-protected storage group is the unit of failover.

  • During recovery, CloudCasa creates each PV on the DR cluster itself, pointing at the R2 device. The PV is named after the DR array and the device, for example 000197900123-0031a.

  • The PowerMax CSI driver expects each device to have a volume identifier, but SRDF doesn’t copy it to the R2 device. If the R2 device has none, CloudCasa sets it to the identifier of the R1 device. This is the only change CloudCasa makes to a device.

  • If a PV for the same device already exists on the DR cluster, for example one created by Dell CSM replication, CloudCasa uses that PV instead of creating one. Its reclaim policy is set to Retain.

  • New PVs have no StorageClass. Restored PVCs get the StorageClass of the PV they bind to.

What happens during DR recovery

When a DR recovery job runs, CloudCasa does the following:

  1. Checks every storage group in the plan on the DR array, and checks the DR cluster for a leftover inventory PVC that would block the recovery.

  2. Stops the workloads on the source cluster if Stop workloads before failover is enabled, which is the default. Otherwise, it stops only the DR agent. If the source cluster can’t be reached, the recovery continues.

  3. Fails over the storage group that holds the inventory volume, restores the inventory PVC, and starts the DR agent on the DR cluster.

  4. Fails over the remaining storage groups.

  5. Restores the Kubernetes resources from the inventory. Each restored PVC is bound to the PV that CloudCasa created or reused for its R2 device.

Note

  • A whole storage group is always failed over, even if only some of its workloads are selected. The job shows a warning when this happens.

  • After failover, replication isn’t reversed until you run a failback, and the DR plan can’t be used again.

  • If some of the storage groups fail to fail over, the recovery continues, and the workloads that use them may not start. If all of them fail, the recovery stops.

  • If the job fails, nothing is rolled back. Storage groups that were failed over stay failed over, and a retry continues from there.

How storage groups are failed over

CloudCasa runs every SRDF operation on the DR array, through its Unisphere, from the DR cluster. The source cluster and the source array don’t need to be reachable. For each storage group, CloudCasa does the following:

  1. Brings the SRDF pair in sync. If the pair is suspended, CloudCasa resumes it. If it is resynchronizing, CloudCasa waits up to 30 minutes for it to finish. If the pair can’t be synchronized, for example because the SRDF links are down, CloudCasa continues.

  2. Fails over the storage group, and waits up to 10 minutes for every device to be Failed Over.

If the source array is still running, the final sync means that no data is lost, provided the workloads were stopped first. If the SRDF links are down, CloudCasa fails over without a sync. With SRDF/A, changes that hadn’t reached the DR array yet are lost.

Note

If a pair was resynchronizing and didn’t finish, the data on the R2 devices isn’t consistent, so that storage group isn’t failed over. The job shows replication target is resynchronizing and not consistent.

Keeping DR plans separate

SRDF fails over and fails back a whole storage group at a time. If two DR plans share one, recovering or failing back either plan also moves the other plan’s volumes. Each DR plan must therefore have its own storage groups. CloudCasa doesn’t prevent storage groups from being shared. The inventory warning about devices that aren’t in the plan’s inventory is a sign that a storage group is shared.

  • With Dell CSM replication. CSM puts the volumes that use the same SRDF group and mode into one storage group. Use a separate SRDF group, with its own StorageClass, for each DR plan. This matters most for inventory PVCs, which are all in the cloudcasa-io namespace.

  • Without CSM. Don’t add devices from different DR plans to the same storage group.

Failback

To fail back, create a DR plan in the reverse direction, with the DR cluster as the source, and run a DR recovery job for it. When the plan’s storage groups are in the Primary-Reverse role, CloudCasa does the following:

  1. Stops the workloads on the DR cluster, starting with the DR agent. As with failover, application workloads are stopped only if Stop workloads before failover is enabled.

  2. Runs Failback on the DR array, which makes the primary array’s devices active again and resumes replication from the primary array to the DR array. SRDF copies back only the data changed since the failover. CloudCasa then waits up to 30 minutes for the pair to be in sync. Storage groups that are already failed back and in sync are skipped.

  3. Restores the workloads on the primary cluster. No separate failover is needed. Where the original PVs still exist on the primary cluster, the restored PVCs are bound to them.

Both clusters and both arrays must be reachable during failback, and the SRDF links must be up. All of the plan’s storage groups must be in the same role, and every device in them must be Failed Over or Split.

Note

  • If the array refuses the failback, CloudCasa retries it with the force option. This discards any changes on the primary array that never reached the DR array.

  • Failback of SRDF pairs whose personalities were swapped isn’t supported.

  • If any storage group fails, the job fails. Storage groups that were already failed back stay failed back.

Dell CSM replication

Dell Container Storage Modules (CSM) replication is not required, because CloudCasa runs the SRDF operations on the arrays directly. CloudCasa doesn’t read or change CSM’s replication resources. If CSM replication is installed:

  • CloudCasa reuses the target PVs that CSM creates on the DR cluster. Restored PVCs get the StorageClass of the PV they bind to.

  • Reused PVs keep the Retain reclaim policy, so deleting their PVC later doesn’t delete the device on the array.

Troubleshooting

The storage system can’t be validated
  • HTTP error 401: check the username and password.

  • Unisphere <version> supports REST API versions [...]: Unisphere is too old. Upgrade it to 10.0 or later.

  • array <id> is not locally managed by this Unisphere endpoint: use the Unisphere that manages the array locally.

  • No active replication targets found: all of the array’s SRDF groups are offline.

A PVC isn’t replicated

The PVC is listed with one of these messages, and isn’t failed over:

  • PV is not backed by the Dell PowerMax CSI driver

  • PV belongs to array <id>, not the connected array <id>

  • SRDF/Metro volumes are not supported

A PVC that is listed without a message isn’t in an SRDF-protected storage group.

A failback is refused
  • the SRDF links are down: retry once the links are restored.

  • failback needs every device Failed Over or Split: some devices in the storage group are in another state. Check the SRDF pair state in Unisphere.

A leftover PV or PVC blocks a retry

PVs or an inventory PVC left by a failed recovery can block the next attempt, with an error such as PersistentVolume "<pv>" is bound to a different volume or Inventory PVC "<pvc>" in namespace "cloudcasa-io" already exists in the cluster and is not bound to the failed over volume. Check that the PV’s reclaim policy is Retain, so that the device on the array is kept, then delete the PV or PVC and run the recovery again.

More than one PV uses the same device

The error PersistentVolumes <pv1>, <pv2> all use PowerMax device <device> on array <id> means that CloudCasa can’t tell which PV to use. Keep only the PV that its PVC is bound to, then run the recovery again.

The DR agent never becomes ready

The DR agent reads every API resource type before it reports ready. A CRD with a broken conversion webhook, for example one left behind by an uninstalled operator, stops it from becoming ready. To find it, list each resource type as the cloudcasa-io service account:

for r in $(kubectl api-resources --verbs=list,watch -o name); do
  kubectl get "$r" -A --as=system:serviceaccount:cloudcasa-io:cloudcasa-io --request-timeout=30s -o name >/dev/null 2>/tmp/err \
    || echo "$r: $(head -1 /tmp/err)"
done