<div dir="ltr">You have to run cinder-volume service for each AZ. And in your configuration of cinder-volume you need to specify storage_availability_zone for that zone. <br><br>With nova-compute, you have to create a host aggregate with an availability zone option for these compute nodes.<div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 3:42 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Ok, thanks for the clarification. :)<br clear="all"><div><div dir="ltr"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 3:03 PM Rajat Dhasmana <<a href="mailto:rdhasman@redhat.com" target="_blank">rdhasman@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 1:01 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com" target="_blank">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the answer. <div>But I cannot find the way to configure the storage backend per AZ, Would you give me some suggestions?<br clear="all"></div></div></blockquote><div><br></div><div>It totally depends on the deployment method you're using. It could be either tripleo, ansible etc and every deployment method should provide a way to set an availability zone for a volume backend. I'm not a deployment expert but a specific deployment team needs to be consulted for the same.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 1:53 PM Rajat Dhasmana <<a href="mailto:rdhasman@redhat.com" target="_blank">rdhasman@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>From the description, I'm assuming the instances will be boot from volume. In that case, you will need to create a volume type for each backend and you can use 'extra_specs' properties in the volume type to assign a volume type to a particular AZ. In this case, if you're already creating one backend per AZ then a volume type linked to that backend should be good.</div><div>Now you will need to create a bootable volume and launch an instance with it. Again, the instance should be launched in the AZ as used in the volume type to support your use case.</div><div>Also if you want to restrict volumes of a particular AZ to be attached to the instance of the same AZ, you can use the config option <b>cross_az_attach</b>[1] which will allow/disallow cross AZ attachments.</div><div>Hope that helps.</div><div><br></div><div>[1] <a href="https://docs.openstack.org/nova/latest/configuration/config.html#cinder.cross_az_attach" target="_blank">https://docs.openstack.org/nova/latest/configuration/config.html#cinder.cross_az_attach</a></div><div><br></div><div>Thanks</div><div>Rajat Dhasmana</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 7:31 AM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com" target="_blank">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello guys.<div>I took time to search for this question but I can't find the answer.</div><div><br></div><div>I have an Openstack private cloud and I use an AZ to a department. </div><div>For example,</div><div>AZ-IT for IT department</div><div>AZ-Sale for Sale department...</div><div><br></div><div>I will prepare 2 storage backends for each AZ.</div><div><br></div><div>My goal is that when users launch an instance by choosing AZ then It will use only the backend for this AZ.</div><div><br></div><div>Would Openstack support my goal?</div><div><br></div><div>Thanks for reading my email.</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Sa Pham Dang</div><div dir="ltr"><div>Skype: great_bn</div><div>Phone/Telegram: 0986.849.582</div><div><br><div><br></div></div></div></div></div></div></div>