How-To Get Consolidate Size Information of all The Cinder Volumes Provisioned
Problem
Environment
Procedure
#!/bin/bashcalsize() { export volsize=0 for vol in $volumes do s=$(openstack volume show $vol -c size -f value) volsize=$((volsize+s)) done echo "Tatal volume size in Gb= $volsize"}echo " select from the below 1) in-use volume size 2) total size of the volumes created "read Selectioncase $Selection in1) echo "##calculating size of the volumes in-use##" export volumes=$(openstack volume list --all -f value | awk '{if($3 == "in-use" || $2 == "in-use") print $1}') calsize;;2) echo "##calculating size of all the volumes created and not in error state" export volumes=$(openstack volume list --all -f value | awk '{if($2 != "error" && $3 != "error") print $1}') calsize;;esacPreviousHow-To Manually Update Neutron port BindingNextHow-To Get Consolidated Data for Cores and RAM Used Across All Tenants
Last updated
