Restoration of Backup taken from PX-Security enabled cluster to PX-Security not enabled cluster
KB0022231
Pure Product
Portworx
Environment
- Px-Ent v3.1.4
- PX-Backup 2.8.3
Question
Backup of Px-Native volumes taken from Px-Security enabled cluster and Restore to
- Same Px-Security enabled cluster - Supported without any workaround
- Different Px-Security enabled cluster - Supported without any workaround
- Different Px-Security not-enabled cluster - Supported with workaround (direct restore will throw missing "px-user-token" issue).
What are the steps to perform restoration of Px-Native volumes backup taken from Px-Security enabled cluster to Px-Security not-enabled cluster ?
Answer
- Restore the PV, PVC, application manifests etc., to new k8s cluster from backuplocation (S3-Object Storage or NFS Backup location)
- Since the original source cluster is enabled with px-security and the newly created destination k8s cluster is not enabled with px-security. Because of this, when pod is trying to mount the restore pvc is failed with "failed to find secret px-user-token". To overcome this,
- Clone the restore volume at px layer (optional) using the command "pxctl volume clone --name <clone-volume-name> <original-vol-name>"
- Consume this Px-Pre-provisioned using the template (Ref: https://docs.portworx.com/portworx-enterprise/platform/provision-storage/create-pvcs/using-preprovisioned-volumes)
- This Pre-Provisioned volume can be consumed by application pod in two ways
- Create new PV, PVC referencing this Px-Pre-provisioned volume and mount in application (Ref: https://docs.portworx.com/portworx-enterprise/platform/provision-storage/create-pvcs/using-preprovisioned-volumes#2-using-the-portworx-volume-by-creating-a-persistentvolume--persistentvolumeclaim)
- Consume the volume directly in application (Ref: https://docs.portworx.com/portworx-enterprise/platform/provision-storage/create-pvcs/using-preprovisioned-volumes#2-using-the-portworx-volume-by-creating-a-persistentvolume--persistentvolumeclaim)
Additional Information
- Category : Software
- Subcategory : PX Backup