What would be the correct way to convert the xml file rbdmapped images
to librbd?
I had this:
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/rbd/rbd/vps-test2'/>
<target dev='sda' bus='scsi'/>
<boot order='1'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
And for librbd this:
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='writeback'/>
<auth username='rbd.vps'>
<secret type='ceph'
uuid='79834913-05cf-47b6-8e77-9a139d0f10ef'/>
</auth>
<source protocol='rbd' name='rbd/vps-test2'>
<host name='192.168.10.111' port='6789'/>
<host name='192.168.10.112' port='6789'/>
<host name='192.168.10.113' port='6789'/>
</source>
<target dev='sda' bus='scsi'/>
<boot order='1'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
But this will give me a qemu format drive option:
-drive
file=rbd:rbd/vps-test2:id=rbd.vps:key=XXXXXWHYISTHISEVENHERE????==:auth_
supported=cephx\;none:mon_host=192.168.10.111\:6789\;192.168.10.112\:678
9\;192.168.10.113\:6789,format=raw,if=none,id=drive-scsi0-0-0-0,cache=wr
iteback
And not format rbd:
-drive format=rbd,file=rbd:data/squeeze,cache=writeback
As specified here, http://docs.ceph.com/docs/luminous/rbd/qemu-rbd/
If I change type='raw' to type='rbd', I get
error: unsupported configuration: unknown driver format value 'rbd'
Linux c01 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017
x86_64 x86_64 x86_64 GNU/Linu
ceph-mgr-12.2.1-0.el7.x86_64
ceph-12.2.1-0.el7.x86_64
libcephfs2-12.2.1-0.el7.x86_64
python-cephfs-12.2.1-0.el7.x86_64
ceph-common-12.2.1-0.el7.x86_64
ceph-selinux-12.2.1-0.el7.x86_64
ceph-mon-12.2.1-0.el7.x86_64
ceph-mds-12.2.1-0.el7.x86_64
collectd-ceph-5.7.1-2.el7.x86_64
ceph-base-12.2.1-0.el7.x86_64
ceph-osd-12.2.1-0.el7.x86_64
ceph-deploy-1.5.39-0.noarch
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com