[openstack-dev] [cinder]Multiple backends
한승진
yongiman at gmail.com
Mon Feb 17 08:39:36 UTC 2014
You sould define the volume type related to volume backends.
For example, you set lvm backend driver in your cinder.conf like below.
enabled_backends=lvmdriver-1
[lvmdriver-1]
volume_group=cinder-volumes
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
volume_backend_name=LVM
you set your volume type in order to connect you lvmdriver-1 backend In
your cinder management.
# cinder type-create lvm
# cinder type-key volume_backend_name=LVM
For creating lvm type volume, you specify volume type when you create
volume.
# volume create 1 --volume-type lvm
Cinder can find volume backend using volume-type and backend connectivity.
2014-02-17 15:24 GMT+09:00 Subramanian <subramanian.neelakantan at gmail.com>:
> I think you should look at the cinder scheduler code that selects a host
> based on the volume type.
> https://github.com/openstack/cinder/tree/master/cinder/scheduler.
>
> BTW, cinder dev tend to hang out on #openstack-cinder channel.
>
> Thanks,
> Subbu
>
>
> On Mon, Feb 17, 2014 at 11:35 AM, iKhan <ik.ibadkhan at gmail.com> wrote:
>
>> Hi All,
>>
>> I'm just curious on how the manager.py is choosing backend while creating
>> volume, I know volume type is set but where is this being processed?
>>
>> I am sorry if this is a basic question, but didn't got any help from
>> #openstack-dev IRC channel so was left without option to post here.
>>
>> --
>> Thanks,
>> IK
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140217/d9a8051b/attachment.html>
More information about the OpenStack-dev
mailing list