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

RBD: Enable support for reflink on XFS #1256

Closed
nixpanic opened this issue Jul 21, 2020 · 9 comments
Closed

RBD: Enable support for reflink on XFS #1256

nixpanic opened this issue Jul 21, 2020 · 9 comments
Assignees
Labels
component/rbd Issues related to RBD enhancement New feature or request keepalive This label can be used to disable stale bot activiity in the repo

Comments

@nixpanic
Copy link
Member

Describe the feature you'd like to have

XFS supports reflinking that makes it possible to do copy-on-write with the copy_file_range() syscall. Not all Linux kernels support this feature, and when enabled on an RBD image, kernels without support will not be able to mount the filesystem.

Being conservative, and preventing breakage of users that migrate from Ceph Nautilus to Ceph Octopus based container images, reflink for XFS has been disabled by default (#966).

Users may want to enable reflink support on Kubernetes clusters that have current Linux kernels. The following proposed option in a StorageClass would make this possible:

---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
   name: csi-rbd-sc
provisioner: rbd.csi.ceph.com
parameters:
   pool: rbd
   reflink: disabled|enabled|auto

Values for the new reflink option:

  • disabled: detect support in mkfs.xfs, and pass -m reflink=0 if supported (default)
  • enabled: force enabling, always pass -m reflink=1, will fail to mount on old Linux kernels
  • auto: do nothing, do not pass -m reflink= and make this default in some next Ceph-CSI version

Additional context

See #966 for related problems.

@nixpanic nixpanic added enhancement New feature or request component/rbd Issues related to RBD labels Jul 21, 2020
@Madhu-1 Madhu-1 changed the title Enable support for reflink on XFS RBD: Enable support for reflink on XFS Jul 21, 2020
@Madhu-1 Madhu-1 added this to the release-3.1.0 milestone Jul 21, 2020
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Jul 21, 2020

Thanks for opening this one. Let's track it for the next release.

@humblec
Copy link
Collaborator

humblec commented Jul 26, 2020

Closing this issue as its already fixed.

@humblec humblec closed this as completed Jul 26, 2020
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Jul 26, 2020

@humblec this is not fixed, this is a feature request to enable reflink, reopening it for the se reason

@Madhu-1 Madhu-1 reopened this Jul 26, 2020
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Aug 6, 2020

@nixpanic can this be done in 3.1.0? or do we need to move it out to the next release?

@humblec
Copy link
Collaborator

humblec commented Aug 10, 2020

@nixpanic please adjust the milestone accordingly.

@humblec
Copy link
Collaborator

humblec commented Aug 10, 2020

Moving this from 3.1.0 considering the release timeline.

@stale
Copy link

stale bot commented Nov 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 9, 2020
@Madhu-1 Madhu-1 added keepalive This label can be used to disable stale bot activiity in the repo and removed wontfix This will not be worked on labels Nov 9, 2020
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Nov 3, 2023

@nixpanic should we keep it alive or close it now and reopen if required?

@nixpanic
Copy link
Member Author

nixpanic commented Nov 3, 2023

I don't think we care much about reflink on RBD volumes. There have been no user requests about it, so closing it should be fine. We can always revisit if someone needs reflink on RBD volumes.

@nixpanic nixpanic closed this as completed Nov 3, 2023
@nixpanic nixpanic closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rbd Issues related to RBD enhancement New feature or request keepalive This label can be used to disable stale bot activiity in the repo
Projects
None yet
Development

No branches or pull requests

3 participants