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
[CephFS] Support Volume Snapshots #702
Comments
|
... would also need create volume from snapshot support, correct? |
There is a separate github issue with a lot of discussion tracking snapshot restore, Is CSI snapshot feature is considered complete only if the driver can also support snapshot restore? |
|
Separate is fine w/ me -- just wanted to make sure it wasn't dropped. #411 would then be dependent upon this issue. |
|
How is this different than #246 ? |
|
@mykaul there is no difference. it's duplicate. |
|
With RBD you actually can make writeable RBD volume based on some read-only image snapshot. In CephFS you can't. CephFS does not able to make writable FS subtree based on subtree snapshot.In principle, it's possible to create FS volume from CephFS snapshot using OverlayFS (combining Readonly CephFS snapshot with a writable dir in CephFS) |
|
To support snapshot decoupling from source volumes, CephFS subvolumes needs a structural change. Older CephFS subvolumes directory structure was, The subvolumes clone feature was introduced in CephFS since these Ceph releases,
Subvolumes created using the Ceph versions equal to or greater than the above, would automatically be in the newer subvolume structure. CephFS subvolume snapshots decoupling from the subvolume, would need the subvolume structure that has since been introduced with the cloning feature above. Older format subvolumes would not be able to decouple the snapshots from its source volume. The decoupling feature is tracked for CephFS here Hence, for CSI the following options exist to work with the above versions. Option 1: Older style subvolumes will fail DeleteVolume call, if snapshots exist for the subvolume
Option 2: CSI can prevent snaps and clones being created for older subvolumes
The snapshot decoupling feature would be functional by default, but to retain snapshots for a subvolume during a delete, an extra option (say, As it stands, ceph-csi development to integrate CephFS snapshots and clones, should not be limited to waiting for the snapshot decoupling feature in CephFS to land if option 1 is chosen. The only change envisaged in the future is to pass the extra option as discussed above, to gain the decoupling feature in ceph-csi. |
Can anyone share more details on, which Ceph release this is planned? Will it be backported to previous releases too? Is there any deadline available for this enhancement? In absence of this, RBD snapshot implementation and CephFS implementation look different in behavior for a Kubernetes/openshift user, which may not be good from user experience pov. In rbd the user is free to delete the parent volume even when the snapshot exists wherein CephFS you get an error. Also, this snapshot existence has any effect on the scalability of cephfs snapshots per subvolume? Is this flag enabled by default which causes the parent volume to be deleted even when snapshots are present ? or it's disabled by default? |
Currently this is being worked on in master branch, once complete it will be released with the next available Ceph release vehicle.
The Ceph tracker has been marked as requiring backports to Octopus and Nautilus, and the plan is to backport this to all releases that support the subvolume clone feature.
No, work is in progress, there is currently no "deadline" as such. Estimate is that it would get into master in about 3 weeks time.
CephFS snapshot scale limits are discussed in #1133 if snapshots are preserved, then yes it will impact overall scale factor for CephFS snapshots.
The flag should be explicitly mentioned when deleting a subvolume to get the desired behavior as mentioned in the comment above. cc: @batrick for any additional comments |
|
Moving it to release-v3.1.0 |
|
This can be closed as we have #394 is merged now! 👍 |
Describe the feature you'd like to have
Add volume snapshot support for CephFS CSI driver.
https://kubernetes.io/docs/concepts/storage/volume-snapshots/
The CephFS CSI driver can issue simple ceph mgr-volume CLI to create/delete/list fs subvolume snapshots to support this feature.
https://docs.ceph.com/docs/master/cephfs/fs-volumes/#fs-subvolumes
Need Ceph version >= 14.2.5
The other snapshot related feature, creating a PVC from a snapshot, is tracked by #411
The text was updated successfully, but these errors were encountered: