Solved

Do Kasten support taking snapshot for Azure File PVC

  • 27 February 2024
  • 2 comments
  • 62 views

Hi,

I have successfully installed K10 in my AKS cluster and performed preliminary checks as per the documentation. When running the script curl -s https://docs.kasten.io/tools/k10_primer.sh | bash, all checks passed successfully.

However, when attempting to execute the command curl -s https://docs.kasten.io/tools/k10_primer.sh | bash /dev/stdin csi -s azurefile-csi-premium, it failed with the following error:

Error: {"message":"PVC failed to become ready: had issues creating PVC: failed to provision volume with StorageClass \"azurefile-csi-premium\": rpc error: code = InvalidArgument desc = copy volume from volumeSnapshot is not supported","function":"kasten.io/k10/kio/tools/k10primer.(*TestRetVal).Errors","linenumber":168,"file":"kasten.io/k10/kio/tools/k10primer/k10primer.go:168"}

 

According to Microsoft Azure File CSI Driver documentation, restoring a volume from a snapshot is not supported for Azure File. The error suggests that Kasten K10 is encountering issues due to the limitations of the Azure File CSI driver. Is there any workaround or hack to resolve this issue?

 

Any assistance will be greatly appreciated.Thanks

icon

Best answer by EBrockman 27 February 2024, 21:02

View original

2 comments

Userlevel 3
Badge +1

Hello @Jasdeep 

 

Sadly, this is not a reliant factor of K10. The CSI driver has to support snaphotting as well restoring of the snapshot. At this time, Azure File CSI does not support the restoring of snapshot. Please take a look at the note listed on this page

 

https://learn.microsoft.com/en-us/azure/aks/azure-files-csi

 

Thanks

Emmanuel

Thanks @EBrockman for the response. In a nutshell, restoring Azure File PVC with K10 isn't possible currently. This will only be feasible when Microsoft supports snapshot restoration for Azure File CSI.

Comment