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

can not use rbd-mode=kernel #59

Open
ghost opened this issue Nov 13, 2017 · 7 comments
Open

can not use rbd-mode=kernel #59

ghost opened this issue Nov 13, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Nov 13, 2017

edit: the problem does not exist with v2.0

xen server 7.2 / ceph luminous

creating a pdb with
xe pbd-create sr-uuid=f9c45630a162 host-uuid=0174e10d-f6a9-4d2a-8cd8-d3118b40d375 device-config:rbd-mode=kernel

everything looks good until the VM is started - then i get:

tapdisk experienced an error

this is only happening with v1.0 - is it supposed to be working with kernel mode rbd?

I tried disabling rbd features for the image
rbd feature disable RBD_XenStorage-f9c45630a162/VHD-a45fdf50-8d3d-4e5a-b310-eaa2385be4bb exclusive-lock object-map fast-diff deep-flatten
but that didn't seem to have any effect. (it is necessary to do that if i want to map the image via rbd command)

@rposudnevskiy
Copy link
Owner

Hi,
Try also this
ceph osd crush tunables bobtail
in addition to disabling the rbd features for the image
It should help. If not then please send /var/log/SMlog

Due to limitations related to the fact that XenServer has pretty old kernel and krbd module and necessity to disable features, I would recommend using rbd-mode=nbd
It is fast enough but supports all rbd features.

Please also note that v2.0 branch is not finished yet.
Garbage collection and coalescing are not implemented yet

@ghost
Copy link
Author

ghost commented Nov 13, 2017 via email

@rposudnevskiy
Copy link
Owner

rposudnevskiy commented Nov 13, 2017

Hi,
The issue with branch name fixed.

The reason for the use of version numbers in install.sh was that in ceph after 12.0.0 they removed '--name' option of the rbd-nbd command that was used by plugin. The workaround for it (#53) was the preventing installation of ceph version newer then 12.0.0.

After that, it was found out that the command "rbd-nbd map/unmap" can be replaced with "rbd nbd map/unmap" which supports '--conf' and '--name' arguments and in v2.0 branch install.sh was fixed, but I forgot to fix v1.0 branch. Now it is fixed too.

@ghost
Copy link
Author

ghost commented Nov 14, 2017 via email

@ghost
Copy link
Author

ghost commented Nov 15, 2017

the reason for the above mentioned error was that the install of ceph-common failed. after I installed it "manually" everything works as expected. seems like the skript is still having issues with installing ceph-common.
its a bit strange that only the one package failed. everything else was installed fine...

@rposudnevskiy
Copy link
Owner

Yes, it's strange.
The only thing that I can assume for now is some temporary problems with access to the Internet. It would be nice to get the logs of the installation process. If you could reproduce the problem, it would be nice if you can send the output of the installation process.
Thank you

@ghost
Copy link
Author

ghost commented Nov 17, 2017

I saw simillar things reported by other ppl that tried to use ceph for xenserver. I will try get more information at some point and get back to you if I can narrow it down some more.

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

1 participant