Commands Cheat Sheet

Heading

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Connection

ceph -s
Check cluster status

ceph -w
Watch cluster status in real-time

ceph status
Get cluster status summary

Cluster Management

ceph health
Check cluster health status

ceph health detail
Get detailed health information

ceph quorum_status
Check monitor quorum status

ceph mon stat
Check monitor status

ceph osd stat
Check OSD status overview

Pool Management

ceph osd pool ls
List all storage pools

ceph osd pool stats
Get pool statistics

ceph osd pool get [pool] [key]
Get specific pool parameter

ceph df
Display cluster storage utilization

OSD Operations

ceph osd tree
Display OSDs in a tree view with weights

ceph osd df
Show OSD disk usage stats

ceph osd perf
Display OSD performance stats

ceph tell osd.* version
Get version info for all OSDs

PG Management

ceph pg stat
Show placement group statistics

ceph pg dump
Display detailed PG information

ceph pg [pg_id] query
Query specific PG information

RADOS Operations

rados df
Show RADOS storage utilization

rados ls [pool]
List objects in a pool

rados stat [pool/object]
Display object statistics

RBD Operations

rbd ls [pool]
List RBD images in pool

rbd info [pool/image]
Show image details

rbd status [pool/image]
Display image status and lock info

Log Inspection

ceph log last [n]
Show last n log messages

ceph daemon [daemon] log
Get logs from specific daemon