You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/12/11 05:25:07 UTC
[GitHub] [cloudstack] leolleeooleo commented on issue #5500: CEPH Primary Storage capacity calculate
leolleeooleo commented on issue #5500:
URL: https://github.com/apache/cloudstack/issues/5500#issuecomment-991469175
Use `ceph df` that is no need to know erasure coding pools or replica.
https://docs.ceph.com/en/latest/rados/operations/monitoring/#checking-a-cluster-s-usage-stats
~~~
# ceph df
--- RAW STORAGE ---
CLASS SIZE AVAIL USED RAW USED %RAW USED
hdd 29 TiB 21 TiB 8.2 TiB 8.2 TiB 28.21
TOTAL 29 TiB 21 TiB 8.2 TiB 8.2 TiB 28.21
--- POOLS ---
POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL
device_health_metrics 1 1 0 B 0 0 B 0 5.8 TiB
cloudstack 2 256 2.7 TiB 724.29k 8.2 TiB 31.88 5.8 TiB
~~~
In the POOLS section are not inclusive of the number of replicas, snapshots or clones.
STORED : actual amount of data has stored.
MAX AVAIL : estimated amount of data that can be written.
~~~
Used = STORED
Actual Total = STORED + MAX AVAIL
Allocated: Disk Allocated
Total = (STORED + MAX AVAIL) * Overprovisioning Factor
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org