When Use OADP or Velero Restore AzureFile CSI Driver PVC/PV Only Create Empty file share

Solution Verified - Updated -

Environment

  • Openshift Container Platform on Azure
  • Azure Red Hat OpenShift (ARO)
    • 4

Issue

  • When restoring the project with AzureFile CSI from Velero backup, restored PVC/PV creates a new (empty) file share.
  • Can we use OADP velero CSI snapshot for AzureFile storage type.
  • How to backup and restore AzureFile volume using OADP.

Resolution

Disclaimer: Links contained herein to external website(s) are provided for convenience only. Red Hat has not reviewed the links and is not responsible for the content or its availability. The inclusion of any link to an external website does not imply endorsement by Red Hat of the website or their entities, products or services. You agree that Red Hat is not responsible or liable for any loss or expenses that may result due to your use of (or reliance on) the external site or content.

Currently, It is recommended to use Azure Backup for backing up Azure File Storage outside the ARO cluster due to its native integration, granular backup and restore capabilities, and other features tailored for Azure services.

Azure backup Document here

It supports:

  1. Restore to the original location (full share recovery)
  2. Restore to an alternate location (full share recovery)

Root Cause

AzureFile CSI driver supports only takings snapshots, but no restoring.

Check the GitHub issue:

Restore from SMB file share snapshot feature #136

Currently, Azure File doesn't have a restore from the snapshot SDK

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments