-
Notifications
You must be signed in to change notification settings - Fork 537
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
MInimum volume size in ceph-csi #214
Comments
For cephfs (configuration docs):
smallest quota unit is in bytes. For RBD, smallest allocation unit seems to be in megabytes http://docs.ceph.com/docs/mimic/rbd/rados-rbd-cmds/#creating-a-block-device-image - even though the RBD plugin passes the size in gigabytes, hmm... @rootfs ? |
1Gi is minim - #213 |
ok, really looking forward to the decision. |
@rootfs need your input on this. |
let's follow in-tree rbd convention here https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/rbd/rbd_util.go#L584 |
@rootfs what about cephfs? same applies for that one also? |
@Madhu-1 good idea |
Just a general knowledge question, could you please explain where ceph enforces limit for directory quota to be >1MiB for cephfs? As far as I know, quota is measured in bytes, so it can be as little as 1B no? |
@gman0 if we enforce the rule, we will face this issue in external-provisioner kubernetes-csi/external-provisioner#199 |
@Madhu-1 ok but that's an issue with that particular sidecar container. AFAIK neither cephfs nor CSI has such requirement where the quota has to be >1MiB. |
yes, you are right, what could be the minimum volume size we can create in cephfs?
@rootfs we cant use this utility function in cephfs as in current code we can create volume of size in bytes (if we want to use the function minimum volume size will be of 1Mib) |
@poornimag can you consider this scenario for cephfs volume create? |
@Madhu-1 iic, we have a roundoff now for both rbd and cephfs volumes whlie provisioning. With that I think this issue can be closed. |
closing this one as we have default for rbd and for cephfs |
BUG 2249600: cephfs: set Pool parameter to empty for Snapshot-backed volumes
What is the minimum volume size supported in ceph-csi for both cephfs and rbd?
I fell an input validation is missing for the same.
@rootfs @gman0 ^^
The text was updated successfully, but these errors were encountered: