Storage · Hypervisor Storage › KVM Storage
Ceph RBD
Cheat sheet · https://pcornel.dk/topic.php?topic=4215
Answer
Ceph RBD for KVM stores VM disks as RADOS block device images in a Ceph pool, accessed directly by QEMU through librbd. It gives shared, replicated storage with thin provisioning, snapshots and live migration.
Remember
- QEMU accesses RBD directly via librbd.
- Images are thin and support snapshots.
- Ceph health affects every VM.
First checks
virsh pool-info <rbd-pool>— RBD poolrbd ls -p <pool>— imagesvirsh secret-list— Ceph auth secret
Commands
ceph auth get-or-create client.libvirt mon 'profile rbd' osd 'profile rbd pool=vm-pool'
Verify in this order
VM → librbd → Ceph pool
Where it usually breaks
First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4215