Re: Ceph storage pool definition with KVM/libvirt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of Dan Geist
Sent: Wednesday, October 15, 2014 4:37 PM
To: ceph-users@xxxxxxxxxxxxxx
Subject: 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

ceph-users@xxxxxxxxxxxxxx

http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux