Solved

Is it possible to use Kasten with volumesnapshotclass on csi.vsphere.vmware.com CSI driver?


Userlevel 1
  • Not a newbie anymore
  • 3 comments

Hello,

I have a k8s cluster running on top on VMWare infrastructure.

VMWare CSI (csi.vsphere.vmware.com) is installed and is working correctly.
I have installed too the volumesnapshotclass with the controller on top of csi.vsphere.vmware.com CSI driver as described here: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/master/docs/book/features/volume_snapshot.md

The volumesnapshotclass  is working well; I can snapshot PVC and restore them as well without problem.

But Kasten refuses to use the volumesnapshotclass.

For instance, running preflight tool:

$ ./k10tools primer csi-cluster-check
CSI Capabilities Check:
  Skipping, K10 does not use CSI snapshots for vSphere

Is it possible to say to Kasten: I know I am in a vSphere environment, but please just use volumesnapshotclass to backup the PVC?

Many thanks for your help

icon

Best answer by jaiganeshjk 27 March 2023, 10:52

View original

7 comments

Userlevel 7
Badge +20

@jaiganeshjk 

Userlevel 7
Badge +22

I am not sure about the pre-flight script but when I have gotten this to work I have always used a vsphere infrastructure profile since it seems to say that in the docs here:

 “Creation of a vSphere Infrastructure Profile is required to backup volumes provisioned by the vSphere CSI driver. Additional information related to the management of vSphere volumes is also found in the same section.”

 

https://docs.kasten.io/latest/install/vmware/vsphere.html?highlight=vsphere

 

cheers

Userlevel 6
Badge +2

@lejav At this point, K10 doesn’t support CSI snapshotting with Vsphere driver.

As @Geoff Burke mentioned, You will have to use Infrastructure profile to setup backup/exports for Vsphere CSI driver based volumes.

This internally uses vsphere govmomi libraries to connect to your vsphere infra and do snapshot and volume operations.

Userlevel 1

@jaiganeshjk Many thanks for your answer.
What I do not understand well is: what are the limitations? We have a volumesnapshotclass working correctly. Kasten might be able to use it, as any volumesnapshotclass, no?

 

Userlevel 6
Badge +2

K10 is currently set-up to use the infrastructure profile for all the PVCs provisioned using Vsphere CSI driver and doesn’t take the CSI snapshot route.

Currently Kasten doesn’t use the volumeSnapshotClass for the Vsphere PVCs.

With Infrastructure profile in K10, Exports can be set to use blockmode and CBT using VADP API.

I am not sure if this is possible with the CSI snapshots. 

 

Userlevel 3

Hi All,

If the vsphere-csi is not supported for volumeSnapshotClass… where are the snapshot are stored?

I’m using OCP4.10

Userlevel 6
Badge +2

@banjo We use Vsphere govmomi library to create FCD snapshots in Vsphere directly. 

https://vdc-download.vmware.com/vmwb-repository/dcr-public/b83a47dc-134c-4295-a7a0-212b858e2a3c/9e342828-face-41ab-9f23-c539f72468c5/GUID-3FB348EE-46F0-46F6-A99E-BC1388604FC4.html

Comment