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-target-api: Disk limit 256 #270

Open
lnsyyj opened this issue Mar 28, 2023 · 4 comments
Open

rbd-target-api: Disk limit 256 #270

lnsyyj opened this issue Mar 28, 2023 · 4 comments

Comments

@lnsyyj
Copy link

lnsyyj commented Mar 28, 2023

Hello everyone
During use, after creating more than 256 disks, I report an error that the disk limit of 256 reached.

            if len(config['disks']) >= 256:
                return "Disk limit of 256 reached."

why is the limit to 256?
How do I configure my users who want to use more than 256 disks?

@lxbsz
Copy link
Member

lxbsz commented Mar 28, 2023

It's a hard code in ceph-iscsi and rtslib, which is compatible with the old kernels. For the new kernels this limit could be remove. And the code hasn't do that yet.

If you want to support more than 256 disks, you can setup multiple gateway pairs, which each pair will have its own dedicated configure pool, in the same ceph cluster.

@lnsyyj
Copy link
Author

lnsyyj commented Mar 28, 2023

Thank you @lxbsz , is there any plan for the community to refactor the CEPH-iSCSI project in the near future? Or make the code more robust?

@lxbsz
Copy link
Member

lxbsz commented Mar 28, 2023

Thank you @lxbsz , is there any plan for the community to refactor the CEPH-iSCSI project in the near future? Or make the code more robust?

This is in my todo list, but not get a chance yet. If you'd like you can raise one PR to fix it. The rtslib has done that in open-iscsi/rtslib-fb#191.

@lnsyyj
Copy link
Author

lnsyyj commented Mar 30, 2023

Thank you @lxbsz , is there any plan for the community to refactor the CEPH-iSCSI project in the near future? Or make the code more robust?

This is in my todo list, but not get a chance yet. If you'd like you can raise one PR to fix it. The rtslib has done that in open-iscsi/rtslib-fb#191.

Ok thanks.

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