Ceph: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 5: Line 5:


=ceph=
=ceph=
Status of ceph
ceph -s
Disk usage
  ceph df
  ceph df
=Get du from block devices in pool named *rbd*=
=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
  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:18, 28 April 2023

what does it mean?

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

ceph

Status of ceph

ceph -s

Disk usage

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