Ask Your Question

How can i get the "location" of the volume created

asked 2013-04-03 17:07:47 -0500

senhuang gravatar image

I have a deployment of 4 compute hosts, which run both compute and volume service. I am trying to determine the identity of the host(s) on which a volume is created. Basically, after I create a volume, I want to know where among the 4 hosts the volume is located. Thanks!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-04-12 23:33:59 -0500

thingee gravatar image

Doing a call to cinder rest api of either of the following:

1) Show details of a volume ( 2) List details of all volumes (

edit flag offensive delete link more

answered 2013-05-14 09:03:24 -0500

shantha-kumar gravatar image

If you are provisioning the LVm volume, below mentioned is best way for you

You can find information in "cinder-scheduler log"

  1. Filtered host will give you information

---> [host 'grzrc3@driver-2': free_capacity_gb: 54]

PS: I your case, u need to get all the host in above filter.

  1. Choosing Weighedhost will choose the best host for provision volume

---> Choosing WeighedHost [host: grzrc3@driver-2, weight: 54.0]

2013-05-14 09:56:17 DEBUG [cinder.scheduler.filter_scheduler] Filtered [host 'grzrc3@driver-2': free_capacity_gb: 54] 2013-05-14 09:56:17 DEBUG [cinder.scheduler.filter_scheduler] Choosing WeighedHost [host: grzrc3@driver-2, weight: 54.0]

Hope this would resolve you query.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-04-03 17:07:47 -0500

Seen: 715 times

Last updated: May 14 '13