Skip to main content

Dell PowerProtect Data Manager Protecting OpenShift Workloads

Oct 20, 2026
Dell PowerProtect Data Manager Protecting OpenShift Workloads This white paper describes the integration of Red Hat OpenShift with Dell PowerProtect Data Manager and how the OpenShift Kubernetes container and VM workloads can be protected.

Executive summary

Introduction

As global organizations embark on their digital transformation, container technologies are being widely adopted based on their ease of use, portability, cost savings, and independence between applications and infrastructure. Containers have their own file system, CPU, memory, and process space, which allows organizations to build and run scalable applications in modern dynamic environments such as public, private, and hybrid clouds. Containers provide a simple way for development and operations teams to increase productivity consistently through agile application creation, continuous development, environmental consistency across development, application-centric management, efficient resource allocation, and resource isolation.

Kubernetes is an open-source container management platform that unifies a cluster of machines into a single pool of compute resources. OpenShift is a Platform-as-a-Service (PaaS) built on top of Kubernetes. It helps to develop, deploy, and manage container-based applications. OpenShift provides a self-service platform to create, modify, and deploy applications on demand, thus enabling faster development and release life cycles. As business-critical applications move to the OpenShift platform, organizations need to protect these applications and application data. However, protecting an OpenShift environment is not as simple as applying a traditional backup and DR solution to this container space.

As an innovative leader in protecting Kubernetes, Dell Technologies has evolved, innovated, and integrated with OpenShift to address the needs of the new container infrastructure. Dell Technologies offers proper protection for OpenShift, including the unique complexities that come with it. Dell PowerProtect Data Manager offers a centralized platform to protect OpenShift workloads. It ensures high availability and consistent and reliable backup and restore of workloads. Additionally, PowerProtect Data Manager supports VM protection with OpenShift Virtualization, providing comprehensive protection for both containerized and virtualized environments.

Revisions

Date

Part Number

Description

May 2021

H18715

Initial release

September 2021

H18715.1

Document revised for PowerProtect Data Manager 19.9 release

March 2025

H18715.2

Multiple general enhancements and updated content for PowerProtect Data Manager 19.19

March 2026

H18715.3

Enhancements for later PowerProtect Data Manager releases

Overview

Overview

Containers are transforming modern IT infrastructure by providing an environment to run applications independent of the underlying infrastructure and operating system. Kubernetes, a container orchestrator, manages containerized workloads and services, facilitating both declarative configuration and automation.

OpenShift is an open-source container platform built on Kubernetes, designed to automate the development, deployment, and management of applications. It provides a comprehensive suite of tools and services that streamline the entire application lifecycle, from coding and building to testing and deployment. OpenShift supports the deployment of applications using predefined image builders or Docker images, making it versatile and user-friendly. By leveraging Kubernetes' powerful orchestration capabilities, OpenShift ensures efficient management of containerized workloads and services, facilitating both declarative configuration and automation.

With the current trend of distributed container deployment, protecting workloads is crucial. However, protection for cloud-native workloads remains a significant challenge in container adoption.

PowerProtect Data Manager (Data Manager) addresses this challenge by protecting OpenShift Kubernetes workloads, ensuring data is easy to back up and restore and remains available, consistent, and durable in both Kubernetes workloads and disaster recovery situations. Data Manager provides a centralized management UI where protection policies can be defined to manage clusters, namespaces, and other OpenShift components.

Additionally, PowerProtect Data Manager supports OpenShift Virtualization VMs, extending its robust data protection capabilities to virtual machines running within the OpenShift environment. This ensures comprehensive protection across both containerized and virtualized workloads, enhancing data resilience and simplifying management.

OpenShift components

Namespaces

Namespaces provide the scope (or context) for names. More specifically, namespaces provide the scope for named resources that describe the application and how it should be deployed. They are also a way to divide cluster resources between multiple uses, ensuring that different teams or projects can work within the same cluster without interfering with each other.

Projects

A project is a concept added in OpenShift that manages access to the namespace. Projects in OpenShift provide the boundaries between namespaces, ensuring that users or applications can only see and access namespaces for which they have permission. This adds an additional layer of security and organization, making it easier to manage multi-tenant environments.

Web console

OpenShift provides a web-based user interface (UI) to visualize, browse, and manage the contents of the project. The web console offers an intuitive environment based on application templates, making it easier for users to deploy and manage applications without needing to interact with the command line.

Persistent Volumes (PV)

A Persistent Volume is storage defined for the cluster, provisioned by an administrator or dynamically provisioned using Storage Classes (SCs). It is a resource in the cluster similar to a node. PVs are volume plugins like Volumes but have a lifecycle independent of any individual Pod that uses the PV. They capture the details of the implementation of NFS, FC, iSCSI, or a cloud-provider-specific storage system.

Persistent Volume Claims (PVC)

A Persistent Volume Claim (PVC) is a request for storage by a user. Similar to how Pods consume node resources, PVCs consume PV resources. PVCs allow users to request specific sizes and access modes (e.g., read/write or read-only) for their storage needs, ensuring that the underlying storage is appropriately allocated and managed.

PowerProtect Data Manager components

Cloud Native Data Manager (CNDM)

The Cloud Native Data Manager (CNDM) is an integrated microservice within PowerProtect Data Manager that communicates with the kube-apiserver of the Kubernetes cluster. It handles APIs for the backup and restore processes.

PowerProtect controller

The PowerProtect controller is deployed on the Kubernetes cluster upon its discovery by PowerProtect Data Manager. It listens for the creation of BackupJob and RestoreJob Custom Resources (CRs), managing those definitions to orchestrate backup and restore operations. The controller is responsible for the backup and restoration of Kubernetes resources, including persistent volumes.

Velero

Velero, an open-source tool, is integrated with PowerProtect Data Manager and does not require separate installation. The PowerProtect controller pod deploys an enhanced version of Velero into the Kubernetes cluster as a deployment. Velero handles the backup and restore of metadata and aids in First Class Disk (FCD)—also known as Improved Virtual Disk—snapshot management in vSphere while using vSphere Cloud Native Storage (CNS).

cProxy

The containerized proxy (cProxy) is a stateless containerized data mover that is deployed on the Kubernetes cluster during the backup and restore processes and removed upon completion. It manages persistent volume snapshots (snap copies), mounts snapshots, transfers data to target storage, and restores data into persistent volumes from target storage, making it available for pod attachment.

PowerProtect Data Manager – OpenShift Data Protection

Introduction to OpenShift

OpenShift, specifically OpenShift Container Platform (OCP), is a hybrid cloud Platform as a Service (PaaS) developed by Red Hat. It builds on Kubernetes by adding several additional metadata components such as Build, BuildConfig, ImageStream, ImageStreamTag, ImageTag, and DeploymentConfig (deprecated in OCP 4.14).

These components facilitate Source-to-Image (S2I) and Image-to-deployment workflows, which automate the conversion of source code repositories into container or Docker images. To ensure the integrity of OpenShift namespaces during restore workflows, it is essential to protect these components. Red Hat has introduced a specialized OpenShift Velero plugin designed to facilitate the protection of these metadata resources.

OpenShift and Kubernetes metadata resources

Figure 1.        OpenShift and Kubernetes resources

OpenShift Data Protection

The PowerProtect Data Manager controller installs the OpenShift API for Data Protection (OADP) operator in the velero-ppdm namespace/project when an OpenShift cluster is detected during the discovery process. The OADP operator is installed through OpenShift Lifecycle Manager (OLM). The OADP operator then deploys Velero and the required plugins, as illustrated here:

  1. OpenShift plugin
  2. Data Domain plugin
  3. KubeVirt plugin – automatically installed with PowerProtect Data Manager 19.19 with OADP 1.4.3 and later versions
  4. vSphere plugin – when vSphere CSI is detected

Screenshot from the OpenShift console showing the OADP operator installed on the velero-ppdm namespace

Figure 2.        OADP Operator installed on the velero-ppdm namespace

The OpenShift Velero plugin is leveraged to back up the associated OpenShift components in tandem with the Velero metadata backup for Kubernetes resources during backup and restore operations.

Note: It is highly recommended to remove any OADP operator installed in namespaces other than velero-ppdm to prevent potential conflicts with custom resource definitions (CRDs).

PowerProtect Data Manager and OpenShift compatibility

PowerProtect Data Manager supports all OpenShift releases that are actively supported by Red Hat. The PowerProtect Data Manager Compatibility Matrix lists the supported OpenShift versions and minimum required OADP version for each Data Manager release.

PowerProtect Data Manager 20.1 introduces the ability to automatically deploy the required OADP version based on the detected OpenShift release. The following table shows the OADP versions that are automatically deployed for each OpenShift release.

Table 1.      PowerProtect Data Manager 20.1 Compatibility with OpenShift and OADP

OpenShift Release

OADP Version

4.14

OADP 1.3.0

4.15, 4.16, 4.17, 4.18

OADP 1.4.3

4.19, 4.20, 4.21

OADP 1.5.4

To support automatic detection and deployment of the required OADP version, PowerProtect Data Manager must have permission to get, list, and watch the clusterversions resource in the config.openshift.io API group as part of the discovery ClusterRole. This additional requirement has been incorporated into the RBAC archive, as described under Method 1 – PowerProtect Data Manager RBAC YAML files (preferred).

Configure PowerProtect Data Manager to protect OpenShift workloads

This section discusses the steps to integrate PowerProtect Data Manager to Kubernetes and specifically OpenShift, including deploying all necessary components and enabling protection of OpenShift resources and PVCs.

Diagram showing the configuration flow for OpenShift container and VM workloads

Figure 3.        Configuration flow for OpenShift protection

Enable Kubernetes asset source

To add an OpenShift cluster as an asset source and protect its namespaces, the Kubernetes asset source must first be enabled. This can be done through the PowerProtect Data Manager UI or API.

Through the PowerProtect Data Manager UI, click Infrastructure > Asset Sources and click the plus sign (+) to view the New Asset Source tab. If there are no enabled asset sources, then the Asset Sources tab would be shown when navigating to the Asset Sources screen. Click Enable Source in the Kubernetes pane. The Asset Sources window updates to display a tab for the new asset source.

PowerProtect Data Manager UI screenshot showing the type of asset sources that can be enabled

Figure 4.        Enabling Kubernetes Asset Source

Add Kubernetes asset source

Now that we have enabled the Kubernetes asset source, we can register a Kubernetes cluster as an asset source in order to protect its resources and PVCs.

Kubernetes Asset Source Registration in the PowerProtect Data Manager UI

Figure 5.        Kubernetes Asset Source Registration

Let us discuss the required inputs to get the OpenShift cluster registered:

  • Name: A cluster name to be used in PowerProtect Data Manager.
  • Address: The fully qualified domain name (FQDN) or the IP address of the Kubernetes API server.
  • Port: Specify the port the API server is listening on. The default port is tcp/6443 which is the only port OpenShift supports as of OCP 4.x.

Note: It is recommended to specify the OpenShift control plane IP or FQDN address and the port as per the output of kubectl cluster-info:

idan@ocp-idancl1-lb:~$ oc cluster-info

Kubernetes control plane is running at https://api.idanocp1.hop.lab.dell.com:6443

  • Host Credentials: PowerProtect Data Manager Host Credentials have to be created before or at time of asset source registration. The Kubernetes Host Credentials expects a token of a service account. This service account needs to map to either the cluster-admin role, a role with the rules/privileges in Table 1, or the most preferred method, using the RBAC YAML files which are provided as part of PowerProtect Data Manager.

Table 2.      Required Kubernetes privileges

Verb

Resource

Scope

Get/Create/Update/List

CustomResourceDefinitions

Cluster-scope

Get/Create/Update

ClusterRoleBinding

Cluster-scope

Create/Update

Namespace

powerprotect namespace

Get/List/Create/Update/Delete

All resources

powerprotect namespace

Get/List/Watch

Namespaces, PV, PVC, storage class, deployments, and pods

Cluster-scope and all namespaces

Method 1 – PowerProtect Data Manager RBAC YAML files (preferred)

The RBAC archive (rbac.tar.gz) can be obtained using either of the following ways:

  1. In the PowerProtect Data Manager UI, go to Settings > Downloads > Kubernetes and then RBAC.

Kubernetes downloads in the PowerProtect Data Manager UI

Figure 6.            Kubernetes downloads in the PowerProtect Data Manager UI

  1. Retrieve the rbac.tar.gz file from the PowerProtect Data Manager appliance at the following location:

/usr/local/brs/lib/cndm/misc/rbac.tar.gz

  1. Starting with PowerProtect Data Manager 20.1, the rbac.tar.gz for each Data Manager release is posted on the PowerProtect Data Manager page on the Dell support site
  2. Extract the archive on a host with oc access to the Kubernetes cluster, for example:

idan@ocp-idancl1-lb:~$ tar zxvf rbac.tar.gz

rbac/README.txt

rbac/ppdm-controller-rbac.yaml

rbac/ppdm-discovery.yaml

idan@ocp-idancl1-lb:~$ cd rbac/

  1. Follow the instructions in the README.txt file or simply perform the following:
    1. oc apply -f ppdm-discovery.yaml
    2. oc apply -f ppdm-controller-rbac.yaml
    3. Starting with Kubernetes 1.24 and OCP 4.11, secret-based tokens are not generated automtically for service accounts so a secret would need to be explicitly created. Here is an example:

idan@ocp-idancl1-lb:~$ oc apply -f - <<EOF

apiVersion: v1

kind: Secret

type: kubernetes.io/service-account-token

metadata:

  name: ppdm-discovery-serviceaccount-token

  namespace: powerprotect

  annotations:

    kubernetes.io/service-account.name: ppdm-discovery-serviceaccount

EOF

  1. Obtain the token by running the following command:

idan@ocp-idancl1-lb:~$ oc -n powerprotect get secret ppdm-discovery-serviceaccount-token -ojsonpath='{.data.token}' | base64 -d

eyJhbGciOiJSUzI1NiIsIm……………

Method 2 – Manually creating a service account

The alternative method is to either create a cluster role (ClusterRole) based on the list of required privileges illustrated in Figure 5 or to leverage the existing cluster-admin cluster role. The following steps offer a procedure for using a service account based on cluster-admin rules:

  1. Create the service account:

idan@ocp-idancl1-lb:~$ oc create serviceaccount ppdm-serviceaccount

  1. Create the cluster role binding:

idan@ocp-idancl1-lb:~$ oc create clusterrolebinding ppdm --clusterrole=cluster-admin --serviceaccount=default:ppdm-serviceaccount

  1. Starting with k8s 1.24, secret-based tokens are not generated automatically for service accounts, so a secret would need to be created. Create a secret for the service account we just created:

idan@ocp-idancl1-lb:~$ oc apply -f - <<EOF

   apiVersion: v1

   kind: Secret

   type: kubernetes.io/service-account-token

   metadata:

     name: ppdm-serviceaccount-token

     annotations:

       kubernetes.io/service-account.name: ppdm-serviceaccount

EOF

  1. Retrieve the token:

idan@ocp-idancl1-lb:~$ oc -n powerprotect get secret ppdm-serviceaccount-token -ojsonpath='{.data.token}' | base64 -d -

eyJhbGciOiJSUzI1NiI……….

Once we are done creating the PowerProtect Data Manager Host credentials, we can verify the certificate and register the OpenShift cluster as a Kubernetes asset source. Optionally, advanced options can be configured. Let us have a brief look at some of these options.

Advanced options

Kubernetes asset source advanced options through the PowerProtect Data Manager UI

Figure 7.        Advanced options for Kubernetes asset source

Advanced options can be specified during asset source registration or when modifying a Kubernetes asset source.

These advanced options can be divided into four categories. The following reviews each of these categories and discusses the use cases they enable:

  1. vSphere CSI as process – Enables the ability to account for cases where the vSphere CSI is installed automatically as a process. In Kubernetes distributions like OpenShift, where the vSphere CSI is auto-configured, the vSphere CSI secret (vsphere-config-secret or csi-vsphere-config) may not be located in the default location which is either kube-system or vmware-csi namespaces. When this option is enabled, PowerProtect Data Manager creates the secret vsphere-config-secret, based on the credentials of the specified vCenter, in the powerprotect namespace as part of the discovery process.
  2. Root Certificate – Enables the ability to specify the root CA. This is useful for cases where the root certificate cannot be retrieved. For example, when the OpenShift cluster is set up in high availability mode and the Kubernetes API server is not configured to send the root certificate as part of the TLS handshake, the root certificate must be explicitly provided.
  3. Controller Configuration – A set of documented key-value pairs which enables advanced configuration for the powerprotect-controller running on the specific Kubernetes cluster. The complete list of configuration options can be found in the PowerProtect Data Manager Kubernetes User Guide. Let us take a look at some key configuration options:
    1. Internal Registry – Allows the user to specify an alternate registry from which to pull the required container images. By default, the required PowerProtect Data Manager container images are pulled from Docker Hub. For example:

Key: k8s.docker.registry

Value: ocp-registry.example.com:8446

Here is the list of required container images:

Table 3.      Required container images

Image

Repository

Tag

dellemc/powerprotect-k8s-controller          

https://hub.docker.com/r/dellemc/powerprotect-k8s-controller/tags          

19.22.0-24

dellemc/powerprotect-cproxy                  

https://hub.docker.com/r/dellemc/powerprotect-cproxy/tags                  

19.22.0-24

dellemc/powerprotect-velero-dd               

https://hub.docker.com/r/dellemc/powerprotect-velero-dd/tags               

19.22.0-24

velero/velero                                

https://hub.docker.com/r/velero/velero/tags

For OCP clusters, the following Velero plugins are pulled from the official Red Hat Registry:

OADP, OpenShift plugin and KubeVirt plugin (Data Manager 19.19 and later)                     

v1.14.1

vsphereveleroplugin/velero-plugin-for-vsphere

https://hub.docker.com/r/vsphereveleroplugin/velero-plugin-for-vsphere/tags

v1.5.4d

Note: Tags might change from one PowerProtect Data Manager release to another. It is always advisable to check the PowerProtect Data Manager compatibility matrices.

  1. Image Pull Secrets – Enables the user to provide the name of an image pull secret that would be used when the internal registry in use requires authentication. Another use case is when authentication is required to
  2. Docker Hub. The secret has to be created on both the powerprotect and velero-ppdm namespaces.

For example:

Key: k8s.image.pullsecrets

Value: myocpregistrysecret

  1. Exclude resources from metadata backup – Enables exclusion of one or more resource types from metadata across the entire Kubernetes cluster. The value consists of comma-separated list of Kubernetes resource types. For example:

Key:  k8s.velero.exclude.resources

Value: certificaterequests.cert-manager.io

  1. Non-snapshot CSI Storage Class – Enables backup of CSI volumes without the use of CSI snapshots on a per storage class basis. Using this configuration parameters is advantageous for CSI drivers with no snapshot support such as NFS CSI and also vSAN-FS. This option can be applied on one or more storage classes. For example:

Key:  k8s.ppdm.csi.nonsnapshot.storageclasses

Value: nfs-sc, vsan-fs-sc

  1. Controller, Velero, and cProxy Configuration – Facilitates advanced configuration on the powerprotect-controller, velero, and data mover (cproxy) pods by specifying the pod configuration in YAML format. Let us look at some useful use cases:
    1. Node affinity and anti-affinity – Configures any of the PowerProtect pods (powerprotect-controller, velero and/or cproxy) to run or avoid specific nodes (affinity and anti-affinity, respectively). For example, if some of the nodes have higher bandwidth connectivity to the backup VLAN or only some of the nodes have connectivity to PowerProtect Data Domain.

The following example uses the preferredDuringSchedulingIgnoredDuringExecution node affinity attribute, which means that the scheduler tries to find a node that meets the rule. If a matching node is not available, then the scheduler would still schedule the pod.

spec:

  template:

    spec:

      affinity:

        nodeAffinity:

           preferredDuringSchedulingIgnoredDuringExecution:

            - weight: 1

              preference:

                matchExpressions:

                - key: app

                  operator: In

                  values:

                  - powerprotect

The next example we will look at is for node anti-affinity where one or more PowerProtect pods would not get scheduled on nodes without a specific node selector term (nodeSelectorTerms). The operators which can be used are NotIn or DoesNotExist.

spec:

   template:

    spec:

      affinity:

        nodeAffinity:

           requiredDuringSchedulingIgnoredDuringExecution:

            nodeSelectorTerms:

            -   matchExpressions:

               - key: app

                 operator: NotIn

                 values:

                 - powerprotect

  1. Node selector – Simply configures one or PowerProtect Pods to run on nodes with specific node selectors. For example:

spec:

   template:

    spec:

      nodeSelector:

        app: powerprotect

  1. Node Name – Assigns one or PowerProtect Pods to run on specific worker nodes.

spec:

   template:

    spec:

      nodeName: workernode01

Discovery process

Once the OpenShift cluster is registered as an asset source in PowerProtect Data Manager, the PowerProtect controller (powerprotect-controller) gets installed on the OpenShift cluster, specifically in the powerprotect namespace. Once the controller is running, it orchestrates the creation of Velero on the velero-ppdm namespace. This enhanced version of Velero includes the Data Domain plugin and the vSphere plugin. The latter of which gets installed only if vSphere CSI is present on the Kubernetes cluster.

In OpenShift environments, the controller orders the deployment of Velero through Operator Lifecycle Manager (OLM) which deploys OpenShift API for Data Protection (OADP). OADP deploys Velero along with its Data Domain plugin, OpenShift plugin, and the optional vSphere plugin as previously explained. Both OADP and Velero are deployed on the velero-ppdm namespace. Starting with PowerProtect Data Manager 19.19, the Velero KubeVirt plugin is also installed along with Velero.

The PowerProtect controller automatically discovers all namespaces, along with their Persistent Volume Claims (PVCs) and labels. This discovery process occurs when the OpenShift cluster is initially registered as an asset source and when changes are made to the asset source configuration (such as adding a controller configuration parameter) or when a Kubernetes asset source is manually discovered.

Once discovery is complete, the Kubernetes namespaces (or OpenShift projects) would show as Kubernetes Assets under Infrastructure in the PowerProtect Data Manager UI.

Kubernetes asset view

Figure 8.        Kubernetes asset view

Create protection policy for Kubernetes protection

Protection policies define a set of protection objectives for different time periods. These goals drive configuration, active protection, and copy-data-management operations that meet the business requirements for the specified data set. Each plan type has its own set of user objectives. Only Users with the Administrator role can create or edit protection policies.

A Kubernetes protection policy enables you to select namespaces in the OpenShift cluster that you wish to back up. Use the PowerProtect Data Manager UI or API to create a Kubernetes protection policy.

To fully comprehend the diverse protection options that PowerProtect Data Manager offers for Kubernetes environments, it is imperative that we delve into the process of forming Kubernetes protection policies.

Protection policy configuration: Asset type

Through the PowerProtect Data Manager UI, navigate to Protection > Protection Policies and click Add.

The initial screen not only displays the protection policy name and description but also lists all enabled asset types. Naturally, we will select Kubernetes to set up a Kubernetes protection policy.

The Protection Policy Type Step as part of the Add Policy wizard in the PowerProtect Data Manager UI

Figure 9.        Protection policy type

Protection policy configuration: Purpose

When establishing a Kubernetes protection policy, PowerProtect Data Manager offers the following choices:

  • Crash-consistent: Choose this option for a point-in-time backup of namespaces. Despite the name suggesting crash consistency, PowerProtect Data Manager supports a comprehensive method for performing application-consistent backups of Kubernetes applications and databases. Whether the backup of Kubernetes namespaces is crash-consistent or application-consistent, this option can be used to initiate the process.
  • Exclusion: Select this type if there are assets (OpenShift Project or Kubernetes namespaces) that need to be excluded from any data protection operation. Once a namespace is included in a protection policy for exclusion, it would be marked as Excluded rather than the default Unprotected protection state.

Note: Kubernetes system namespaces and PowerProtect namespaces (powerprotect and velero-ppdm), cannot be added to any policy intentionally, as they should not be protected through Kubernetes protection policies.

The purpose step as part of the Add Policy wizard in the PowerProtect Data Manager UI

Figure 10.    Protection policy purpose

Protection policy configuration: Assets

In this step, you can add new (or remove existing) OpenShift Projects (Kubernetes namespaces), which are considered assets. Assets can be associated with a policy by clicking Add.

Additionally, you have the option to exclude one or more PVCs from protection. By default, all PVCs of selected namespaces are protected.

Note: In this screen, you can also register a Kubernetes cluster as an asset source by clicking Find More Assets.

The asset selection step as part of the Add Policy wizard in the PowerProtect Data Manager UI

Figure 11.    Protection policy assets

Protection policy configuration: Objectives

The final configuration we will be looking into as part of the protection policy workflow is the Objectives step. The purpose of this step is to define the backup configuration, including the setup of each individual step.

The objectives step as part of the Add Policy wizard in the PowerProtect Data Manager UI

Figure 12.    Protection policy objectives

Let us delve deeper into the objectives that PowerProtect Data Manager offers for Kubernetes workloads:

  1. Primary Backup: This objective focuses on creating and managing the initial backup of data. It ensures that data is backed up from the primary source to the protection storage, normally on the same site as the source workload.

The configuration of primary backup includes the following options:

  1. The backup Target determines where and how PowerProtect Data Manager stores the asset backups:

i             Which protection storage system and storage unit (new or existing) to use

ii           Which network interface to leverage on the selected protection storage system

iii         Whether to activate retention locking that protects against accidental deletion or tampering

  1. The schedules determine what and when PowerProtect Data Manager backs up:

i             The types of backups to perform in each configured backup window

ii           The backup window

iii         The backup recurrence

iv         The backup retention

Configuration of the primary backup objective

Figure 13.    Primary backup objective configuration

  1. Replication: This involves creating copies of the backup data and storing them in one or more remote PowerProtect Data Domain appliances, as well as metadata to a remote PowerProtect Data Manager if a remote Data Manager is registered. Replication enables operational recovery and disaster recovery use cases by ensuring that data is replicated from the production datacenter to remote location(s).

Configuration of the replication objective enables not only configuration of the remote protection storage and storage unit but also retention lock and schedule. There is also an option to replicate immediately upon backup completion.

Configuration of the replication objective.

Figure 14.    Replication objective configuration

  1. Cloud Tier: This feature allows for the movement of backup data from on-premises storage to the cloud. This provides long-term storage of PowerProtect Data Manager backups by seamlessly and securely tiering data to the cloud. Cloud Tier helps in managing long-term data retention and reduces on-premises storage costs by leveraging cloud storage solutions.
  2. Cyber Recovery Vault: This objective involves using an isolated recovery environment to protect critical data and applications from cyberattacks, including ransomware. The vault provides multiple layers of protection and ensures that data can be safely and efficiently recovered even in the event of a cyber incident.

Protection policy configuration: Summary

The final screen in the protection policy configuration workflow shows a summary of the protection policy configuration elements. The screen enables the assets to be associated with this protection policy, provides a visual presentation of the required objectives, and offers a final opportunity to add or edit objectives.

Once the workflow is finished, the policy is created, the selected storage unit on the chosen protection storage is configured, and the namespaces to be backed up are configured. After these system jobs are complete, on-demand and scheduled backups can be performed.

Last step of the Add Policy wizard - summary of the protection policy to be configured

Figure 15.    Protection Policy Summary

Protection policy operations

Upon successful creation of the protection policy, the following operations become available:

  • Edit – Modify policy settings such as the policy name, assets, included PVCs, schedule, retention, schedule, etc.
  • Clone – Create a new policy with the same configuration, excluding the associated assets.
  • Delete – Remove the policy. This operation is permitted only on policies with no assets.
  • Disable – Prevent schedule backups of that protection policy.
  • Export Asset Protection – Download a report on backup job status over a configurable period of time.
  • Protect Now – Perform an immediate on-demand backup or replication job for all or some of the assets in the policy.
  • Export – Download a summary of all configured protection policies.

A screenshot from the PowerProtect Data Manager UI showcasing the operations which are available for protection policies

Figure 16.    Protection policy operations

Ad-hoc protection

On-demand protection provides the ability to run backup or replication for a specific protection policy. Let us take a closer look at the various options in the ad-hoc protection workflow through the PowerProtect Data Manager UI

Protect Now: Assets

The first step of the Protect Now workflow allows the user to select all or some of the assets for the ad-hoc protection run.

Protect Now workflow through the PowerProtect Data Manager UI, the assets step

Figure 17.    Assets step in the Protect Now workflow

Protect Now: Configuration

The configuration step allows to select either a primary backup or replication. For primary backup, the following settings can be configured:

  • Backup Type:
    • Full – Creates a full backup of all namespace metadata and persistent volumes
    • Synthetic full – Backs up namespace metadata, changed blocks for persistent volumes on VMware first class disks (FCD), all data for CSI persistent volumes, and creates a new full backup.
  • Retain for: Specify the retention period for the backup.

Protect Now workflow through the PowerProtect Data Manager UI, the configuration step

Figure 18.    Configuration step in the Protect Now workflow

Kubernetes backup flow using CSI snapshots

As previously discussed, PowerProtect Data Manager discovers all resources and CSI PVCs in the OpenShift cluster to enable protection on a namespace/project basis. Let us delve deeper into the backup process in the following figure. The PowerProtect Data Manager Kubernetes backup with CSI snapshots process is as follows:

  1. PowerProtect Data Manager, particularly the Cloud Native Data Manager (CNDM) service, creates the backup job (backupjob) Custom Resource (CR) on the Kubernetes API server.
  1. The PowerProtect controller listens for these backupjob requests.
  1. The controller creates the Velero backup CR to back up the namespaces and metadata.
  2. Velero listens for these backup requests, picks up the backup request, and starts processing it.
  3. Velero backs up the metadata (not the actual data).
  4. Creates CSI snapshot(s)
  5. This following process is repeated for each Persistent Volume Claim (PVC).
  6. A new PVC is created from the snapshot.
  7. The cProxy Pod is launched with the new PVC mounted on a directory. The backup process is  lightweight and efficient, as the cProxy is being dynamically deployed before the backup starts and is terminated upon completion. For Block volumeMode, a block driver is used on the cProxy. The backup process is lightweight and efficient, as the cProxy is dynamically deployed before the backup starts and terminated upon completion.
  8. The backup of the PVC to Data Domain is initiated.

PowerProtect Data Manager Backup workflow with CSI snapshots

Figure 19.    Kubernetes backup flow with CSI snapshots

Failure Recovery for Namespace and PVC Protection

Overview

PowerProtect Data Manager supports failure recovery for Kubernetes namespace backups, allowing the backup to continue when individual PVCs encounter errors. This fault tolerance capability enhances backup robustness and ensures that usable data is still being backed up despite PVC‑level issues.

Fault tolerance behavior

The fault tolerance capabilities introduced in PowerProtect Data Manager 19.22 cover the following backup phases:

  1. PVC verification - Unbound PVCs are skipped and recorded as warnings in the backup logs. The backup proceeds with the remaining PVCs.
  2. Metadata protection - Velero metadata backup remains a critical step. A failure here still stops the backup for the entire namespace.
  3. CSI Snapshots - If a snapshot fails for a PVC, the PVC is marked as failed and the backup continues with the remaining PVCs. Failed PVCs are excluded from both backup and restore, and if a failed PVC belongs to a VM, the VM is excluded as well. All failed PVCs are reported in the backup job summary.
  4. PVC backup - If the data‑movement step fails for a PVC, it is marked failed and the job continues with the next PVC.
  5. Application Template initialization – with PowerProtect Data Manager 20.1, if initialization fails, PVCs associated with the application automatically fall back to crash-consistent snapshots, and the backup continues with a warning which is reported in the backup job summary

Backup Summary

The backup summary clearly lists skipped or failed PVCs with explanations and marks successful PVCs as protected.

The screenshots below from the PowerProtect Data Manager UI demonstrate how the backup summary, step log, and job details are presented.

Figure 20.    PowerProtect Data Manager UI – Backup job step log for Fault Tolerance

Figure 21.    PowerProtect Data Manager UI – Backup job details for Fault Tolerance

Configuration

Fault Tolerance was introduced at the namespace level in PowerProtect Data Manager 19.22, with Data Manager 20.1 adding a cluster-based configuration option. The global cluster-based setting takes precedence over the namespace-level annotation, as shown in the following table:

Table 4.      Fault Tolerance Behavior in PowerProtect Data Manager 20.1 and later

Cluster Setting

Namespace Annotation

Fault Tolerance

Enabled          

Configured / Unconfigured

Enabled for all namespaces in that cluster

Disabled                  

Configured

Enabled only for that namespace

Disabled               

Unconfigured

Not enabled for any namespace in the cluster

Cluster-level setting

The cluster‑level Fault Tolerance setting is disabled by default and can be configured through each Kubernetes Asset Source representing a cluster. The setting is available under Advanced Configuration using the following key/value pair:

Key: k8s.ppdm.cluster.faulttolerance.enabled

Value: true

PowerProtect Data Manager UI - Fault Tolerance cluster-based setting

Figure 22.    PowerProtect Data Manager UI - Fault Tolerance cluster-based setting

Namespace annotation

The namespace‑level annotation, introduced in PowerProtect Data Manager 19.22, can be applied directly to a namespace using the following command:

oc annotate ns <NS> powerprotect.dell.com/continue-backup-on-error="true”

Recovery of Kubernetes Workloads using PowerProtect Data Manager

Overview

PowerProtect Data Manager offers a comprehensive set of recovery options to satisfy a wide variety of use cases across diverse environments, including on-premises and cloud deployments. Let us take a close look at the vast recovery option for OpenShift-based workloads:

Table 5.      PowerProtect Data Manager recovery options for Kubernetes workloads

Kubernetes Recovery Option #

Restore Option

Details

Option 1

Restore to original cluster

Production namespace

Option 2

Restore to original cluster

Existing namespace

Option 3

Restore to original cluster

New namespace

Option 4

Alternate OpenShift cluster

Existing namespace

Option 5

Alternate OpenShift cluster

New namespace

Additionally, the Quick Recovery feature facilitates rapid restoration of critical data across environments and distance, minimizing return time objectives (RTOs). This is achieved by sending metadata from the source PowerProtect Data Manager system to the destination system, which allows for a swift recovery view and workload restoration at a remote site even before the source system is fully restored. Quick Recovery enables the following options:

Table 6.      PowerProtect Data Manager recovery options for Kubernetes workloads

Kubernetes Recovery Option #

Restore Option

Details

Option 6

Alternate OpenShift cluster (Quick Recovery)

Existing namespace

Option 7

Alternate OpenShift cluster (Quick Recovery)

New namespace

Note: Restore of OpenShift Virtualization VMs to an alternate OpenShift cluster requires the OpenShift Virtualization Operator to be installed on the target cluster.

Kubernetes restore flow using CSI snapshots

As discussed, PowerProtect Data Manager offers a comprehensive set of restore options that supports a variety of use cases. Before explore all OpenShift restore features in the next section, it is important to take a closer look at the restore flow s in the following figure. The PowerProtect Data Manager Kubernetes restore flow using CSI snapshots is as follow:

  1. PowerProtect Data Manager, particularly the Cloud Native Data Manager (CNDM) service, creates the restore job (restorejob) Custom Resource (CR) on the Kubernetes API server.
  1. The PPDM controller listens for these restorejob requests.
  2. The controller validates that the restore in question is from CSI snapshots as opposed to the optimized data path with VMware First Class Disks (FCDs)
  1. The cProxy (data mover) pod is launched with the PVC snapshot mounted. The cProxy is created in the powerprotect namespace for restore to a new namespace and restore to an existing namespace. For restore to the original namespace, the cProxy is created on the production/source namespace.
  2. The restore process of the PVC snapshot is initiated through the cProxy from Data Domain.
  3. The controller creates the Velero restore CR to restore the namespaces and metadata.
  4. Velero listens for these restore requests, picks up the restore request, and starts processing it.
  5. Velero restores the metadata (not the actual data).
  6. The controller updates the restore job with final status after metadata restore.

PowerProtect Data Manager Kubernetes recovery workflow.

Figure 23.    PowerProtect Data Manager Kubernetes recovery workflow

Restore configuration, features, and capabilities

Now that we’ve explored the various restore options and delved into the restore workflow, let us take a closer look at the restore features and capabilities. In this section, we will examine the restore steps and the capabilities of restoring Kubernetes namespaces.

We will start by reviewing the restore steps using the PowerProtect Data Manager UI.

Restore Assets

Through the PowerProtect Data Manager UI, navigate to Restore > Assets and click Kubernetes.

As you can see in the following figure, the restore can be carried out on a per namespace (or OpenShift project) basis, and it is possible to view the backup copies for each asset.

Restore Kubernetes assets through the PowerProtect Data Manager UI

Figure 24.    Restore Kubernetes assets through the PowerProtect Data Manager UI

Kubernetes restore – Select copy

The first step in the restore wizard is to select a backup copy. The latest copy is auto-selected by default, but it is possible to pick any available backup by clicking on Change Copy.

Copy selection step in the Kubernetes asset restore wizard

Figure 25.    Copy selection step in the Kubernetes restore wizard

Kubernetes restore – Cluster

The purpose of this step is to define the target cluster for the restore operation, which can be either the original cluster or an alternate cluster. Note that the alternate cluster must be registered beforehand with PowerProtect Data Manager using the steps and parameters we discussed earlier.

Target cluster step in the Kubernetes restore wizard through the PowerProtect Data Manager UI.

Figure 26.    Target cluster step in the Kubernetes restore wizard

Kubernetes restore – Purpose

This step defines the scope of the restore process, which can be either a full restore of metadata and Persistent Volume Claims (PVCs) or only the PVCs. By default, the option to restore both metadata and PVCs is automatically selected.

Note that by default, namespace-scoped resources are selected for restore along with the metadata backup. However, there is also an option to include cluster-scoped resources such as ClusterRole, ClusterRoleBinding, and custom resource definitions (CRDs) that were backed up automatically.

This step also includes a third option which is specific to OpenShift Virtualization VMs. See the dedicated OpenShift Virtualization section for more information.

Purpose step in the Kubernetes restore wizard through the PowerProtect Data Manager UI.

Figure 27.    Purpose step in the Kubernetes restore process

Kubernetes restore – Restore type

This step allows you to configure the type of restore to be run. You can choose to restore to the original namespace, which is only possible when restoring to the original cluster. Alternatively, you can restore to a new namespace that PowerProtect Data Manager will create, or you can restore to an existing namespace.

The restore type step in the Kubernetes restore process through the PowerProtect Data Manager UI

Figure 28.    Restore Type

Kubernetes restore – PVCs

This step allows you to exclude PVCs from the restore process. By default, all backed-up PVCs are selected, however it is possible to exclude one or more PVCs from the restore process. If all PVCs are excluded, then only a metadata restore would take place.

Additionally, this step allows you to change the storage class of the restored PVCs. This can be useful for the following use cases:

  • When restoring to an alternate cluster that uses different storage
  • For data migration or technology refresh, such as retiring the backend storage array
  • For migrating data across platforms, such as from on-prem to the cloud

By default, when restoring to the original cluster, unless storage class mapping is used, the restored PVCs will be mapped to the same storage class as the production/source PVCs. The storage class cannot be altered for existing PVCs being overwritten. This applies to a restore to original cluster (original and existing namespace) and also a restore to an existing namespace on an alternate cluster.

For a restore to an alternate cluster, the default storage class will be used unless the same storage class of the production PVCs exists on the target cluster as well.

Note: Restore from a vSphere CSI storage class to other storage classes is not supported unless the controller configuration option k8s.ppdm.vspherecsi.use.fsagent was used during backup.

The PVCs step in the Kubernetes restore process through the PowerProtect Data Manager UI

Figure 29.    PVCs step in the Kubernetes restore process

When restoring to the original namespace, in addition to the PVC restore exclusion option discussed previously, there is also an option to either overwrite the content of existing PVCs (default) or skip the restore of existing PVCs. To avoid confusion, the Target configuration section of the screen shows the result and impact on the PVCs after the restore. The result can be either Overwrite or Skipped/Safe depending on whether the PVC is included in the restore process (and the Overwrite content of existing PVCs option is selected) or the Skip restore of existing PVCs option is selected or when the PVC is excluded from the list of PVCs to restore.

The restore type step in the Kubernetes restore process for restore to original through the PowerProtect Data Manager UI

Figure 30.    PVCs step for restore to original namespace

OpenShift Virtualization

Overview

OpenShift Virtualization is an add-on component to Red Hat OpenShift that allows you to run virtualized workloads alongside your existing containerized workloads within the same infrastructure. This integration enables organizations to manage both containers and virtual machines (VMs) using the same tools and processes, streamlining operations and reducing complexity.

OpenShift Virtualization is based on the open-source project KubeVirt, which extends Kubernetes to manage and run VMs in a cloud-native environment. This foundation allows for seamless integration and management of VMs within the OpenShift ecosystem.

With OpenShift Virtualization, you can lift-and-shift existing VMs into the OpenShift environment, providing a seamless transition from traditional virtualization platforms. This capability allows for the gradual modernization of applications, as VMs can be containerized over time without requiring significant changes to the underlying infrastructure.

Key features of OpenShift Virtualization include:

  • Unified management: Manage VMs and containers through a single platform, leveraging OpenShift's robust orchestration and automation capabilities.
  • Enhanced flexibility: Run legacy applications in VMs while developing new applications in containers, all within the same infrastructure.
  • Simplified operations: Use familiar OpenShift tools and workflows to manage VMs, reducing the learning curve and operational overhead.
  • Scalability: Scale your virtualized workloads efficiently, taking advantage of OpenShift's scalability and resource management features.

OpenShift Virtualization is particularly beneficial for organizations looking to modernize their IT infrastructure by integrating containerized and virtualized workloads, ensuring a smooth and efficient transition to a cloud-native environment.

PowerProtect Data Manager protection of OpenShift Virtualization VMs

PowerProtect Data Manager extends its robust Kubernetes data protection capabilities to OpenShift Virtualization VMs, ensuring comprehensive protection across both containerized and virtualized workloads within the OpenShift environment. This integration leverages the strengths of both Data Manager and OpenShift Virtualization, providing a unified approach to data management and protection.

KubeVirt Metadata Backup

KubeVirt, the foundation of OpenShift Virtualization, uses several custom resource definitions (CRDs) to manage virtual machines within a Kubernetes environment. Understanding these CRDs is crucial for effective metadata backup and restore:

  • VirtualMachine (VM): Defines the configuration of a virtual machine. It owns the following resources:
  • VirtualMachineInstance (VMI)
  • DataVolume (DV)
  • VirtualMachineInstance (VMI): Manages the running instances of virtual machines. It is owned by the VirtualMachine (VM) and owns the following resource:
  • Virt-Launcher Pod
  • Virt-Launcher Pod: Runs VM instances within Kubernetes. It contains a container that runs a hypervisor (qemu-kvm) along with other tools that facilitate virtualization. It is owned by the VirtualMachineInstance (VMI).
  • DataVolume (DV): Handles the lifecycle of VM disk images. It acts as an abstraction layer that facilitates the management of persistent storage for VMs. It is owned by the VirtualMachine (VM).
  • PersistentVolumeClaim (PVC): Represents a request for storage from a user or pod. The CSI driver provisions a PersistentVolume (PV) on the storage system and binds it to the PVC. It is owned by the DataVolume (DV).

PowerProtect Data Manager leverages Velero for metadata backup. As part of its support for OpenShift Virtualization, PowerProtect Data Manager orchestrates the deployment of the KubeVirt Velero Plugin. This plugin ensures the accurate backup and restoration of VirtualMachines, DataVolumes, and other resources in accordance with KubeVirt workflows. These KubeVirt-based resources, along with their metadata, are discovered alongside Kubernetes and OpenShift resources and are included in the backup and restore workflows.

PowerProtect Data Manager Protection Components of OpenShift Virtualization VM Protection

Figure 31.    PowerProtect Data Manager OpenShift Virtualization Protection Components

PVC Volume Mode

PowerProtect Data Manager has always supported the Filesystem volumeMode since the inception of Kubernetes data protection in PowerProtect Data MAnager. This support extends to OpenShift Virtualization in Data Manager version 19.19.

Filesystem VolumeMode

In Filesystem volumeMode, the following process is followed:

  1. CSI Driver Installation: The CSI driver is installed on the Kubernetes worker nodes.
  1. PVC Request: A user or pod requests a Persistent Volume Claim (PVC) using a storage class that points to the CSI provisioner.
  2. Provisioning: The CSI driver interacts with the storage device, provisions a block device, and then formats it with the requested filesystem.
  3. Mounting: The volume is attached to a node and mounted to a directory. The same volume is mounted to a directory inside the container as specified in the pod specification.
  4. Node Transition: When the pod is launched on a different node, the device is attached and mounted on the new node.
  5. OpenShift Virtualization VM Disk: For OpenShift Virtualization VMs, when a filesystem PVC is used as a disk, a disk.img file is created on the filesystem exposed as a block device.

Block VolumeMode

Contrary to Filesystem volumeMode, Block volumeMode support is being introduced in Data Manager version 19.19 for both container and VM workloads. The process for Block volumeMode is as follows:

  1. CSI Driver Installation: The CSI driver is installed on the Kubernetes worker nodes.
  1. PVC Request: A user or pod requests a PVC using a storage class that points to the CSI provisioner.
  2. Provisioning: The CSI driver interacts with the storage device and provisions a block device.
  3. Device Availability: The same device is available on the container at the path specified in the pod specification.
  4. Node Transition: When a pod is launched on a different node, the device is attached to the new node.
  5. OpenShift VM Disk: For OCP VMs, when a block PVC is used as a disk, it is available as a block device to the VM.
  6. Red Hat recommends using Block volumeMode for best performance. Block volumeMode generally offers better performance as it avoids the filesystem overhead, enables random access to storage blocks, and provides buffered access to underlying hardware devices.

OpenShift Virtualization VM backup flow

Let us delve deeper into the backup process shown in Figure 29. The PowerProtect Data Manager OpenShift Virtualization VM backup process is as follows:

  1. PowerProtect Data Manager, particularly the Cloud Native Data Manager (CNDM) service, creates the backup job (backupjob) Custom Resource (CR) on the Kubernetes API server.
  1. The Data Manager controller listens for these backupjob requests.
  1. The controller creates the Velero backup CR to backup the namespaces and metadata, including discovered KubeVirt-based resources.
  2. Velero listens for these backup requests, picks up the backup request, and starts processing it.
  3. Velero backs up the metadata (not the actual data). The Velero KubeVirt plugin is used to backup the KubeVirt-based resources.
  4. Creates CSI snapshot(s).
  5. This following process is repeated for each Persistent Volume Claim (PVC).
  6. A new PVC is created from the snapshot.
  7. The cProxy Pod is launched with the new PVC mounted on a directory when the PVC is in Filesystem volumeMode. For Block volumeMode, a block driver is used on the cProxy. The backup process is lightweight and efficient, as the cProxy is dynamically deployed before the backup starts and terminated upon completion.
  8. The backup of the PVC to Data Domain is initiated.

OpenShift Virtualization Backup Workflow

Figure 32.    OpenShift Virtualization VM backup workflow

PowerProtect Data Manager OpenShift Virtualization restore capabilities

PowerProtect Data Manager offers a comprehensive set of restore options, addressing a wide range of use cases as discussed earlier in this paper. PowerProtect Data Manager 19.19 features the ability to restore specific OpenShift Virtualization VMs, as well as the ability to power on the restored VM. In this section, we will delve deeper into the recovery capabilities Data Manager features.

OpenShift Virtualization VM restore workflow - cluster

PowerProtect Data Manager enables restore of OpenShift Virtualization VMs not just to the original cluster but also to an alternate cluster. As of PowerProtect Data Manager 19.19, that alternate cluster must be an OpenShift cluster with OpenShift Virtualization enabled.

PowerProtect Data Manager UI - OpenShift Virtualization VM Restore Cluster

Figure 33.    PowerProtect Data Manager UI - OpenShift Virtualization VM Restore Cluster

OpenShift Virtualization VM restore workflow - Purpose

PowerProtect Data Manager 19.19 introduces a new restore option for OpenShift Virtualization VMs: Restore Kubernetes Virtual Machines. This capability complements the existing full restore of metadata and selected PVCs, as well as the PVC-only restore.

Additionally, PowerProtect Data Manager 19.20 introduces the ability to exclude Virtual Machine configuration during restore, supporting scenarios where VMs need to be omitted from namespace and PVC restore operations. This option is available only if the selected backup copy contains Kubernetes Virtual Machines. If none are detected, the option is greyed out.

PowerProtect Data Manager UI - OpenShift Virtualization VM Restore Purpose

Figure 29.    PowerProtect Data Manager UI - OpenShift Virtualization VM Restore Purpose

OpenShift Virtualization VM restore workflow – PVCs

The PVCs step allows for per-VM restore. Let us cover the various options this encompasses in two distinct scenarios:

  1. Common and core capabilities:
  • Storage Class mapping – The ability to provision the target PVCs on a different storage class. By default, the original storage class is used to provision the target PVCs as well.
  • Restore all or specific VMs – The ability to restore all or specific VMs on a protected namespace. This includes the ability to restore specific VM disks and only the VM configuration.

Note: If a VM is restored without one or more disks and the target namespace doesn't have a PVC, a new PVC will be created from the VM specification.

  1. Restore to Original Namespace or Restore to an Existing Namespace:
  • In either of these restore types, there can be existing PVCs/DVs, so the PVCs step offers an option to overwrite or skip the restore of existing PVCs.
  • There is an indication of whether the target PVC/DV would be overwritten or skipped based on the VMs and their PVCs/DVs.

Note: The VM configuration will not be overwritten if it already exists in the target namespace designated for the restore process. If there is a need to restore the VM configuration, the existing virtual machine must first be deleted from the target namespace. Only then can the restore operation take place.

PowerProtect Data Manager UI - OpenShift Virtualization VM Restore - PVCs Step for restore to original or restore to existing namespaces

Figure 30.    Data Manager UI - OpenShift Virtualization VM Restore PVCs – Scenario 1

  1. Restore to a New Namespace:

This option allows you to select specific VMs, exclude disks from the restore, and modify the storage class of the restored PVCs. Because PowerProtect Data Manager creates a new namespace, there won't be any existing disks or resources to overwrite or skip.

PowerProtect Data Manager UI - OpenShift Virtualization VM Restore - PVCs Step for restore to a new namespace

Figure 31.    Data Manager UI - OpenShift Virtualization VM Restore PVCs – Scenario 2

OpenShift Virtualization VM restore workflow – Options

The final step in the restore workflow before the summary includes several important options. The first is Troubleshooting Mode, which is by default disabled. This option enables additional log verbosity based on the select log level. This option exists for ad-hoc backups and job restarts as well.

The main option in this screen is the ability to power on the OpenShift Virtualization VM after the restore completes. By default, all selected VMs for restore would be powered on automatically. However, this behavior can be disabled when recovered VMs must remain powered off. It is noteworthy that Data Manager cannot overwrite or modify the power state of an existing VM, which is only relevant for restores to original or existing namespaces.

Another option is Restore VM Configuration which is applicable only for restore to original. This setting determines whether the VM configuration is restored from the backup:

  • If enabled - the existing VM configuration is overwritten with the configuration captured in the backup. This option should be used with caution when the target VM is already configured, as enabling it replaces the current settings with those from the backup.
  • If disabled - the existing VM configuration remains unchanged, and only the selected PVCs are restored.

Data Manager UI - OpenShift Virtualization VM Restore options

Figure 32.    Data Manager UI - OpenShift Virtualization VM Restore options

Finally, The Restore BIOS UUID option controls whether the VM’s BIOS UUID is preserved during the restore process. This setting determines whether the identifier stored in the backup is applied to the restored VM:

  • If enabled - the BIOS UUID is restored from backup and applied to the VM, ensuring that the recovered VM retains the same BIOS UUID it had at the time of the backup. This may be required for licensing, system identification, or applications that rely on a stable hardware UUID.
  • If disabled - a new BIOS UUID is generated for the restored VM, and the UUID from the backup is not used.

This option is available only for restore to existing and restore to new.

Data Manager UI - OpenShift Virtualization VM Restore BIOS UUID

Figure 33.    Data Manager UI - OpenShift Virtualization VM Restore BIOS UUID

PowerProtect Data Manager OpenShift Virtualization per-VM restore workflow

PowerProtect Data Manager 19.19 and later features the ability to restore specific OpenShift Virtualization VMs. In this section, we will discuss the various nuances in the restore workflow, building on the general restore workflow discussed earlier in this paper.

Here is the OpenShift Virtualization VM restore workflow:

  1. The Data Manager Kubernetes controller initiates a Velero backup for resources within the specified namespace.
  1. The controller labels the VM with powerprotect.dell.com:vm-name.
  2. The controller backs up the dataVolume as a Persistent Volume Claim (PVC).
  3. During the restore process, the Data Manager UI displays all backed-up VMs, allowing the user to select which VMs to restore as we have seen in the previous section
  4. PowerProtect Data Manager creates a restore job Custom Resource (CR) for the VM and its associated PVC/dataVolume.
  5. The controller restores all dataVolumes and PVCs associated with the VM to restore.
  6. The controller restores the VM including its configuration, vNIC association, MAC address, power state, labels, and more.
  7. The user has the option to power on the VM upon restore.

Kubernetes application consistency with PowerProtect Data Manager

Kubernetes application consistency with PowerProtect Data Manager

PowerProtect Data Manager enables application-consistent backups for Kubernetes applications through pre/post backup tasks, known as hooks. This capability allows database applications to be quiesced on production Kubernetes pods without the use of an agent, sidecar, or additional software on the database application environment.

PowerProtect Data Manager standardizes the process of quiescing a supported database, backing up its data, and returning it to normal operation. Application templates bridge the specific database environment and the Kubernetes backup architecture. Each deployment may require a different configuration file based on the database environment.

It is important to note that quiescing the database, running the backup, and then unquiescing the database using pre/post hooks is beneficial not only for database performance during the backup but also for recovery. While the dump and sweep methods—where PowerProtect Data Manager performs a database export or dump, backs up the export/dump files, and then deletes these files—can also be facilitated by PowerProtect Data Manager’s Kubernetes application consistency, they are less recommended in comparison to database quiescing.

The PPDMCTL utility

You can manage K8s application consistency in PowerProtect Data Manager by using the ppdmctl utility which can be obtained using either of the following methods:

  • In the PowerProtect Data Manager UI, go to Settings > Downloads > Kubernetes and then PPDMCTL.

Kubernetes downloads in the PowerProtect Data Manager UI

Figure 34.    Kubernetes downloads in the PowerProtect Data Manager UI

  • Retrieve the ppdmctl.tar.gz file from the PowerProtect Data Manager appliance at the following location:

/usr/local/brs/lib/cndm/misc/ppdmctl.tar.gz

To run ppdmctl, you’ll need to extract the archive and change directory:

idan@ocp-idancl1-lb:~$ tar zxvf ppdmctl.tar.gz

ppdmctl/README.txt

ppdmctl/ppdmctl

ppdmctl/examples/README.md

ppdmctl/examples/mysqlapptemplate.yaml

ppdmctl/examples/mysqlapptemplatehelm.yaml

ppdmctl/examples/mysqlapptemplatehelm_vg.yaml

ppdmctl/examples/mongodbapptemplate2sts.yaml

ppdmctl/examples/mongodbapptemplate1sts.yaml

ppdmctl/examples/mongodbapptemplatevg.yaml

ppdmctl/examples/postgresAppTemplateHA_14.json

ppdmctl/examples/postgresAppTemplate_vg_14.json

ppdmctl/examples/cassandraTemplate.json

ppdmctl/examples/postgresAppTemplate_14.json

ppdmctl/examples/postgresAppTemplate_15.json

idan@ocp-idancl1-lb:~$ cd ppdmctl/

The ppdmctl archive contains the following:

  • README.txt: tutorial, command reference, and examples
  • The ppdmctl binary
  • Example application database for supported databases

Supported databases

Although any pre or post hooks can be run as part of PowerProtect Data Manager’s application consistency capability for Kubernetes, the following databases and their configurations are officially supported, with examples included as part of the ppdmctl utility:

  • MySQL (standalone and cluster)
  • PostgreSQL (standalone and cluster using helm chart)
  • Cassandra (standalone)
  • MongoDB (standalone and single shard cluster)

Filesystem-consistent backup of OpenShift Virtualization VMs

PowerProtect Data Manager can leverage the application templates to orchestrate filesystem freeze and unfreeze operations on OpenShift Virtualization VMs using the QEMU guest agent. The following template illustrates how these actions can be configured for a VM:

apiVersion: "powerprotect.dell.com/v1beta1"

kind: ApplicationTemplate

metadata:

    name: fedoratemplate

    namespace: fedora

spec:

    enable: true

    type: "kubevirt"

    appLabel: "vm.kubevirt.io/name: fedora-magenta-bug-66"

    appActions:

       Pod:

           preHook:

               command: '["/bin/sh", "-c", "/usr/bin/virt-freezer --freeze --name vm-1 --namespace ns-1"]'

           postHook:

               command: '["/bin/sh", "-c", "/usr/bin/virt-freezer --unfreeze --name vm-1 --namespace ns-1"]'

Application Consistency configuration

In this section, we will discuss how these application templates can be configured and applied.

Application Template structure and format

Let us start by looking at one of the included example application templates for MongoDB:

idan@ocp-idancl1-lb:~$ cat ppdmctl/examples/mongodbapptemplate1sts.yaml

apiVersion: "powerprotect.dell.com/v1beta1"

kind: ApplicationTemplate

metadata:

    name: mongodbtemplate

    namespace: mongodb-helm

spec:

    enable: true

    type: "MONGODB"

    appLabel: "app.kubernetes.io/name:mongodb"

    appActions:

       Pod:

           preHook:

               command: '["/bin/sh", "-c", "mongosh -u root -p $MONGODB_ROOT_PASSWORD $MONGODB_PRIMARY_ROOT_PASSWORD --eval \"db.fsyncLock()\""]'

           postHook:

               command: '["/bin/sh", "-c", "mongosh -u root -p $MONGODB_ROOT_PASSWORD $MONGODB_PRIMARY_ROOT_PASSWORD --eval \"db.fsyncUnlock()\""]'

       StatefulSet:

           selectors:

              - selectorTerms:

                   - field: "Name"

                     selectorExpression: ".*-[1-9][0-9]*$"

              - selectorTerms:

                   - field: "Name"

                     selectorExpression: ".*-0$"

The following list provides guidance on the structure and format of application templates:

  1. The apiVersion, kind, metadata and spec fields are all mandatory.
  1. The app template can be provided in a YAML or JSON format.
  2. The namespace specified must exist and match the one specified when creating or applying the app template with ppdmctl.
  3. The type field under spec must match the type specified when applying or creating the app template using ppdmctl.
  4. appLabel must be specified and should preferably match a single pod on the specified namespace. You can confirm the appropriate label with the following kubectl command:

idan@ocp-idancl1-lb:~$ oc get pods -n <your-ns> --show-labels

  1. appActions is required and must include Pod and, optionally, the StatefulSet or Deployment parameters.
  2. Either or both preHook and postHook are required.
  3. Either the preHook or postHook commands must be provided as a JSON array. For example:

command: '[\"/bin/sh\", \"-c\", \"BACKUPDIR=/db/backups ;SERVER=localhost; curl -XPOST http://$SERVER:9090/api/v1/admin/tsdb/snapshot;\"]'

  1. For PVC exclusion use cases, ensure that all PVCs that are being used by the backed-up pods are included in the backup. Inclusion/exclusion of PVCs can be configured as part of the protection policy as discussed previously.

Applying and viewing Application Templates

The applicationtemplate CR is created during the creation of the powerprotect-controller when the Kubernetes cluster is registered as an asset source.

To apply the application template for the specific application on a specific namespace, you can run the following ppdmctl command:

idan@ocp-idancl1-lb:~$ ppdmctl applicationtemplate apply -i examples/mysqlapptemplate.yaml -n mysql

To view the application template and ensure it was applied, run the following:

idan@ocp-idancl1-lb:~$ oc get applicationtemplates -n mysql

NAME         AGE

mysql        1d

Application consistency advanced options

There is a wide variety of advanced options as part of the application templates for Kubernetes application consistency in PowerProtect Data Manager. Let us briefly discuss some of these options:

  1. Multiple labels: If multiple pods are matched by a single label, you can specify multiple values under appLabel as key-value pairs in a comma-separated list. For example:

appLabel: "app.kubernetes.io/name:mongodb,component=mongo"

  1. Specific container: For multi-container pods, you may need to run pre/post commands on a specific container on a given pod. Specify that container under Pod, in the same block as the command. By default, the first container is being used unless the container parameter is specified. For example:

idan@ocp-idancl1-lb:~$ oc get pods -n <your-ns> --show-labels

idan@ocp-idancl1-lb:~$ oc get pods -n mariadb

NAME            READY   STATUS     RESTARTS   AGE

mariadb-sts-0   2/2     Running    0          20d

idan@ocp-idancl1-lb:~$ oc get pods -n mariadb mariadb-sts-0 -o jsonpath='{.spec.containers[*].name}'

mariadb maria-tools-sidecar

idan@ocp-idancl1-lb:~$ cat mariadbapptemplate.yaml

apiVersion: "powerprotect.dell.com/v1beta1"

kind: ApplicationTemplate

metadata:

    name: mariadbtemplate

     namespace: mariadb

spec:

    type: "MARIADB"

    enable: true

    appLabel: "mariadb-master:yes,app:mariadbprod1"

     appActions:

       Pod:

            preHook:

                command: "[\"/bin/sh\", \"-c\", \"export BACKUPDIR=/var/lib/mysql/backups; if ls $BACKUPDIR/*_full.bak 1> /dev/null 2>&1; then mariabackup --backup --stream=mbstream --extra-lsndir=$BACKUPDIR/backup_incr --incremental-basedir=$BACKUPDIR/backup_base --user=root --password=$MARIADB_ROOT_PASSWORD | gzip --rsyncable > $BACKUPDIR/backup.$(date +%F_%R:%S)_incr.bak; else mariabackup --backup --stream=mbstream --extra-lsndir=$BACKUPDIR/backup_base --user=root --password=$MARIADB_ROOT_PASSWORD | gzip --rsyncable > $BACKUPDIR/backup.$(date +%F_%R:%S)_full.bak; fi; exit $?\"]"

                container: "mariadb"

…

  1. Timeout: Control the command timeout by specifying the timeout parameter. By default, each command has a timeout of 30 seconds. For cases where the command might take longer, the timeout parameter can be specified. This is especially relevant for database dump/backup processes.

More information on application-consistency can be found in the PowerProtect Data Manager Kubernetes User Guide.

Technical support and resources

Technical support and resources

Dell.com/support is focused on meeting customer needs with proven services and support.

Storage and data protection technical white papers and videos provide expertise that helps to ensure customer success with Dell storage and data protection products.

Related resources: