Ceph: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 6: Line 6:
=ceph=
=ceph=
  ceph df
  ceph df
=Get du from block devices in pool named *rbd*=
POOL=$(ceph osd pool ls | grep rbd) ; for i in $(rbd -p $POOL ls | xargs) ; do echo $POOL $i ; rbd -p $POOL du $i 2>/dev/null ; done

Revision as of 11:16, 28 April 2023

what does it mean?

osd            object storage daemon
rados          Reliable Autonomic Distributed Object Store
rbd            Rados Block Device

ceph

ceph df

Get du from block devices in pool named *rbd*

POOL=$(ceph osd pool ls | grep rbd) ; for i in $(rbd -p $POOL ls | xargs) ; do echo $POOL $i ; rbd -p $POOL du $i 2>/dev/null ; done