Storage · Ceph
RBD
Cheat sheet · https://pcornel.dk/topic.php?topic=4047
Answer
An RBD image maps logical blocks into RADOS objects. Client I/O obtains cluster maps/auth, accesses the image’s pool and routes object operations directly to the corresponding PG/OSD acting sets.
Remember
- RBD image ≠ raw physical disk.
- Mapped RBD device ≠ healthy all-path storage.
- RBD snapshot ≠ independent backup.
- RBD pool healthy ≠ guest filesystem/application healthy.
First checks
rbd ls -l <pool>— images and sizesrbd info <pool>/<image>— features and parentrbd status <pool>/<image>— watchers (clients)
Verify in this order
client → RBD image → objects → PGs
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
Ceph → RBD Ceph map
| Ceph boundary | What to verify | Proof limit |
|---|---|---|
| Control / placement | MON/map/auth, pool, PG and CRUSH context for the exact workload | Cluster visibility or one healthy daemon does not prove the data path |
| Data / redundancy | Acting OSD set, device/network state, capacity and replica/EC availability | Up/in or active state alone does not prove clean redundancy or integrity |
| Failure boundary | RBD mapping or image visibility proves control access, not end-to-end guest data integrity, pool redundancy or application consistency. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: correct client can access the intended image, pool/PGs are healthy, block latency is within baseline and upper-layer read/write/read-back succeeds. | Close only after original client operation plus redundancy/read-back verification |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4047