openebs / zfs-localpv

Dynamically provision Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is integrated with a backend ZFS data storage stack.
https://openebs.io
Apache License 2.0
418 stars 101 forks source link

Can csi snapshoptter be used in velero backup? #397

Open liyimeng opened 2 years ago

liyimeng commented 2 years ago

Describe the problem/challenge you have [A description of the current limitation/problem/challenge that you are experiencing.]

Try to keep it simple

Describe the solution you'd like [A clear and concise description of what you want to happen.] velero can use CSI Snapshot for backup according to this https://velero.io/blog/csi-integration/ can zfs-localpv use this feature without needing extral plugin? To my understanding, nfs-localpv is already support CSI Snapshot, it should be a simple work, right?

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

pawanpraka1 commented 2 years ago

@liyimeng yes, CSI Snapshot can be used for backup. We can use the velero CSI plugin for backing up the data. Just a note here, the data will be backed up locally only as it will be backed up as a zfs snapshot.

ianb-mp commented 4 months ago

I'm interested in this question. I'd like to be able to take backups and volume snapshots of Kubevirt VMs and have them uploaded to S3

According to this https://github.com/vmware-tanzu/velero/issues/3544 it should be supported in Velero, but unsure if zfs-localpv supports it on the backend.

I tried using the CSI snapshot with https://github.com/vmware-tanzu/velero-plugin-for-csi and while the volume snapshot did succeed, I couldn't get it to upload to S3 (velero backup would get stuck in WaitingForPluginOperations phase).

I've ended up using https://github.com/openebs/velero-plugin instead of velero-plugin-for-csi and that does what I need, however I'm concerned that velero-plugin may be deprecated - see: https://github.com/openebs/zfs-localpv/issues/511

Abhinandan-Purkait commented 3 months ago

@ianb-mp https://github.com/openebs/velero-plugin will not be deprecated. It will be considered for development and enhancements.