Ask Your Question

List the available space in all cinder-volume?

asked 2014-06-02 06:15:10 -0600

ecerulm gravatar image

updated 2014-06-02 08:26:46 -0600

Let's say that I have a OpenStack Havana installation with a cinder-scheduler and cinder-volume. As an administrator I want to know how much space I have left for volumes. How can I find out?

Rephrasing the question, can I find out via CLI commands if there is a cinder-volume host in my installation that can hold a 1TB volume?

EDIT: Since @dbaxps mentions that it depends on the backend, I'll be more specific. Assume that the backend is NfsDriver. I want to find out via openstack API / CLI the space cinder can allocate (that would be the sum of the free space on the nfs_shares ).

edit retag flag offensive close merge delete


It depends on what kind of backend you selected for cinder. It may be LVM, GlusterFS and etc....

dbaxps gravatar imagedbaxps ( 2014-06-02 06:23:17 -0600 )edit

4 answers

Sort by » oldest newest most voted

answered 2015-03-09 04:27:12 -0600

msuchy gravatar image

Nope. It is on wish list of OpenStack team:

edit flag offensive delete link more

answered 2014-06-02 08:34:12 -0600

dbaxps gravatar image

updated 2014-06-02 10:12:42 -0600

OK. Via CLI, you go to NFS Directory ( same GlusterDriver , just go to corresponding folder of Gluster Volume brick) , where cinder volumes reside.
Total space available
$ df -h .
Space have been used
$ du -m -s .

 Command `cinder list`  && `cinder show volume-id` will show you space allocated for every volume been created
   as list and detailed for particular volume.
edit flag offensive delete link more


ok, so the information is not accesible from OpenStack APIs itself, is that what you mean? If you put that in the answer I'll accept it.

ecerulm gravatar imageecerulm ( 2014-06-02 08:48:07 -0600 )edit

I am not saying "is not accesible from OpenStack APIs itself". I answer as I can do that via standard CLI commands.

dbaxps gravatar imagedbaxps ( 2014-06-02 08:55:38 -0600 )edit

Ok but I meant OpenStack CLI (nova xxx, glance xxx, cinder xxx, etc) not just the shell. Thanks anyway, Let's wait to see if somebody knows a way to do it from OpenStack itself.

ecerulm gravatar imageecerulm ( 2014-06-02 10:01:04 -0600 )edit

I've updated answer with two cinder commands.

dbaxps gravatar imagedbaxps ( 2014-06-02 10:13:42 -0600 )edit

answered 2019-02-11 02:09:47 -0600

The following command (got tip from a colleague) worked for me to get the used and total GBs of my volume storage:
openstack limits show --absolute --sort-column Name | grep Gigabytes
Hope it helps for the googlers finding this page.

edit flag offensive delete link more

answered 2017-01-24 12:13:39 -0600

antoinetr3 gravatar image

I know this question is old but doesn't seem there's a straight answer for it. Here's how i find out how much available space is left on my cinder-volume.

The command is "sudo vgdisplay cinder-volumes" .. cinder-volumes is name of my cinder volume.

user1@Compute1:~$ sudo vgdisplay cinder-volumes --- Volume group --- VG Name cinder-volumes System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 22 VG Access read/write VG Status resizable MAX LV 0 Cur LV 5 Open LV 5 Max PV 0 Cur PV 1 Act PV 1 VG Size 3.64 TiB  <-- ACTUAL SIZE PE Size 4.00 MiB Total PE 953861 Alloc PE / Size 28416 / 111.00 GiB <-- SPACE ALLOCATED Free PE / Size 925445 / 3.53 TiB <-- SPACE AVAILABLE VG UUID bMX896-RO4S-4PuK-iJ11-vxWY-oFtp-pGdXTG


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


Asked: 2014-06-02 06:15:10 -0600

Seen: 5,389 times

Last updated: Jan 24 '17