Hi Dan,


Maybe I misunderstand what you are trying to do, but I think you are trying to 
add your Ceph RBD pool into libvirt as a storage pool?



If so, it's relatively straightforward - here's an example from my setup:



<disk type='network' device='disk'>

      <driver name='qemu' type='raw' cache='none'/>

      <source protocol='rbd' 
name='volumes/volume-f3bcec3d-7daf-4eff-818e-0d8848c120d5'>

        <host name='xxx.18.116.67' port='6789'/>

        <host name='xxx.18.116.177' port='6789'/>

        <host name='xxx.18.116.178' port='6789'/>

      </source>



Related libvirt storage pool definition is:



<pool type="rbd">

        <name>LibvirtStoragePoolName</name>

        <source>

          <name>volumes</name>

            <host name='xxx.18.116.177' port='6789'/>

            <host name='xxx.18.116.178' port='6789'/>

            <host name='xxx.18.116.67' port='6789'/>

        </source>

</pool>





Hope this helps,



Dan Ryder



-----Original Message-----
From: ceph-users [mailto:[email protected]] On Behalf Of Dan 
Geist
Sent: Wednesday, October 15, 2014 4:37 PM
To: [email protected]
Subject: [ceph-users] Ceph storage pool definition with KVM/libvirt



I'm leveraging Ceph in a vm prototyping environment currently and am having 
issues abstracting my VM definitions from the storage pool (to use a libvirt 
convention).



I'm able to use the rbd support within the disk configuration of individual VMs 
but am struggling to find a good reference for abstracting it to a storage 
pool. How do I pull the source definition from below to the pool definition?





<disk type='network' device='disk'>

  <driver name='qemu' type='raw'/>

  <auth username='libvirt'>

    <secret type='ceph' uuid='447aba2d-3507-4c1f-90c8-e60ea5ac92fb'/>

  </auth>

  <source protocol='rbd' name='libvirt-pool/Ubuntu_sample_host_disk'>

    <host name='xxx.175.240.174' port='6789'/>

    <host name='xxx.175.240.176' port='6789'/>

    <host name='xxx.175.240.178' port='6789'/>

  </source>

  <target dev='vda' bus='virtio'/>

  <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> 
</disk>





Thanks.

Dan



--

Dan Geist dan(@)polter.net

_______________________________________________

ceph-users mailing list

[email protected]<mailto:[email protected]>

http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to