Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for backend cloned PVC #134

Open
silverhandy opened this issue Apr 21, 2022 · 1 comment
Open

Add support for backend cloned PVC #134

silverhandy opened this issue Apr 21, 2022 · 1 comment

Comments

@silverhandy
Copy link

silverhandy commented Apr 21, 2022

Describe the problem/challenge you have
There is a requirement that want to provision nfs PV by clone an original backend PVC (the backend PVC CSI should support snapshot/clone, for example, LocalPV lvm or cStor).

Describe the solution you'd like
In the StorageClass yaml file, add dataSource annotation, then provisioner create backend PVC by clone original PVC by dataSource.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: openebs-rwx
  annotations:
    openebs.io/cas-type: nfsrwx
    cas.openebs.io/config: |
      - name: NFSServerType
        value: "kernel"
      - name: BackendStorageClass
        value: "openebs-hostpath"
      - name: dataSource
        value: "backend-origin-pvc"

Anything else you would like to add:
If we can directly add the snapshot/clone support for nfs PVC, that is fine also.

Environment:

  • OpenEBS version (use kubectl get po -n openebs --show-labels):
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • kernel (e.g: uname -a):
  • others:

Vote on this issue!

This is an invitation to the OpenEBS community to vote on issues.
Use the "reaction smiley face" up to the right of this comment to vote.

  • 👍 for "The project would be better with this feature added"
  • 👎 for "This feature will not enhance the project in a meaningful way"
@oz123
Copy link

oz123 commented Apr 4, 2024

This would be extremely useful. Right now, if I want to upgrade a node running the NFS node or reboot it, I need to do the following steps:

Create a new NFS PVC.
Find where the PVC is running.
Copy the data over from the active node to the new physical volume.

This can be automated OFC. However, I think this would better be done in this operator directly.
If someone is intersted in sponsoring the development of this feature together with me, please leave a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants