<div dir="ltr">You sould define the volume type related to volume backends.<div><br></div><div>For example, you set lvm backend driver in your cinder.conf like below.</div><div><br></div><div><span style="font-weight:bold">enabled_backends=lvmdriver-1</span><br>
</div><div><span style="font-weight:bold">[lvmdriver-1]<br>
volume_group=cinder-volumes<br>
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver<br>
volume_backend_name=LVM</span><br></div><div><br></div><div>you set your volume type in order to connect you lvmdriver-1 backend In your cinder management.</div><div><br></div><div># cinder type-create lvm</div><div># cinder type-key volume_backend_name=LVM</div>
<div><br></div><div>For creating lvm type volume, you specify volume type when you create volume.</div><div><br></div><div># volume create 1 --volume-type lvm</div><div><br></div><div>Cinder can find volume backend using volume-type and backend connectivity.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-17 15:24 GMT+09:00 Subramanian <span dir="ltr"><<a href="mailto:subramanian.neelakantan@gmail.com" target="_blank">subramanian.neelakantan@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think you should look at the cinder scheduler code that selects a host based on the volume type. <a href="https://github.com/openstack/cinder/tree/master/cinder/scheduler" target="_blank">https://github.com/openstack/cinder/tree/master/cinder/scheduler</a>.<div>


<br></div><div>BTW, cinder dev tend to hang out on #openstack-cinder channel.</div><div><br></div><div>Thanks,<br>Subbu</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Feb 17, 2014 at 11:35 AM, iKhan <span dir="ltr"><<a href="mailto:ik.ibadkhan@gmail.com" target="_blank">ik.ibadkhan@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi All,<div><br></div><div>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?</div>

<div><br></div><div>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.<span><font color="#888888"><br clear="all">

<div><br></div>-- <br><div dir="ltr"><div><span></span>Thanks,</div><div>IK</div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>