Ask Your Question
0

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

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

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
0

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

thingee gravatar image

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

1) Show details of a volume http://docs.openstack.org/api/openstack-block-storage/2.0/content/Show_Volume.html (http://docs.openstack.org/api/opensta...) 2) List details of all volumes http://docs.openstack.org/api/openstack-block-storage/2.0/content/List_Volumes_Details.html (http://docs.openstack.org/api/opensta...)

edit flag offensive delete link more
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 483 times

Last updated: May 14 '13