[pve-devel] [PATCH v2 storage 0/2] show storage-utilization per pool

Alwin Antreich a.antreich at proxmox.com
Mon Apr 9 18:26:43 CEST 2018


My goal behind changing the storage utilization for ceph is, that it shows
currently the global available/used storage space and calculates the usage
percentage based on it.
This is suboptimal in some cases, eg. multiple pools with different
size/min_size on the same root, recovery or the ceph pool is not residing on
all OSDs in the cluster.

To get a usage per pool basis, I use the librados2-perl bindings
(hence the update to v1.0-5), as the ceph command line tool doesn't work w/o
a config file and rados doesn't provide the necessary information on its
command line.

The storage status calculates a percent_used for ceph clusters prior Kraken,
in releases >= Kraken the percent_used is provided by ceph. The GUI, while not
using the percent_used, will show correct values, with the exception when a
recovery is running. The CLI uses the percent_used.

Alwin Antreich (2):
  Fix #1542: show storage utilization per pool
  Refactor of method build_cmd and path

 PVE/CLI/pvesm.pm         |   1 +
 PVE/Storage.pm           |   4 +-
 PVE/Storage/RBDPlugin.pm | 149 ++++++++++++++++++++++++++---------------------
 debian/control           |   2 +
 4 files changed, 87 insertions(+), 69 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list