rposudnevskiy / RBDSR

RBDSR - XenServer/XCP-ng Storage Manager plugin for CEPH
GNU Lesser General Public License v2.1
58 stars 23 forks source link

Problems with starting VMs on XenServer 7.2 #53

Closed mozg31337 closed 7 years ago

mozg31337 commented 7 years ago

Hello guys.

Followed the install guide. Went well without any issues. However, upon staring vm got an error:

tapdisk: experienced an error.

from what I can see, the disk on the ceph pool got created fine with the right size.

Any idea what is wrong or where to find more info?

thanks

rposudnevskiy commented 7 years ago

Hi, Are there any errors in SMlog? Could you please send SMlog and xensource.log from your sever.

rposudnevskiy commented 7 years ago

/var/log/SMlog /var/log/xensource.log

mozg31337 commented 7 years ago

Hi, the physical hard disk on my xenserver has died before I got the logs. I will be reinstalling it later on this week and if I have the same issue, I will attach the log files. Thanks

mozg31337 commented 7 years ago

Hi. After the server rebuild I had the same error. The log files attached. FIY, running this command on the xenserver seems to work okay:

[root@arh-cloudhost14 ~]# rbd -p RBD_XenStorage-2fab8a69-2360-4ec4-82af-18f9fc756426 ls -l NAME SIZE PARENT FMT PROT LOCK VHD-134f70e1-b19f-40af-ac9b-ef401a9844fd 102400M 2

logs.zip

mozg31337 commented 7 years ago

A quick glance at the logs shows this error:

Jul 12 21:50:05 arh-cloudhost14 SM: [19434] ['rbd-nbd', '--device', '/dev/nbd1', '--nbds_max', '64', 'map', 'RBD_XenStorage-2fab8a69-2360-4ec4-82af-18f9fc756426/VHD-134f70e1-b19f-40af-ac9b-ef401a9844fd', '--name', 'client.admin'] Jul 12 21:50:05 arh-cloudhost14 SM: [19434] FAILED in util.pread: (rc 1) stdout: '', stderr: 'rbd-nbd: unknown args: --name

Running this command:

rbd-nbd --device /dev/nbd1 --nbds_max 64 --name client.admin map RBD_XenStorage-2fab8a69-2360-4ec4-82af-18f9fc756426/VHD-134f70e1-b19f-40af-ac9b-ef401a9844fd

indeed produces: rbd-nbd: unknown command: --name

[root@arh-cloudhost14 ~]# rpm -qa * |grep rbd-nbd rbd-nbd-10.2.8-0.el7.x86_64

Do you have any idea?

rposudnevskiy commented 7 years ago

Hi, This is the same problem as in #44. It seems that in the latest Ceph updates they removed '--name' option of the rbd-nbd command.

mozg31337 commented 7 years ago

indeed, they seems to have removed it a few things from their latest release. However, #44 relates to ceph branch 12.x whereas I am on 10.x. Also, looking at the fix in the bug report, it will not apply to ppl with ceph 10.x branch.

Can we just remove the --name parameter from the options when running rbd-nbd command? Would this help to fix the issue?

rposudnevskiy commented 7 years ago

Hi, The issue fixed with last commit. The command "rbd-nbd map/unmap" replaced with "rbd nbd map/unmap" which supports '--conf' and '--name' arguments