Use this when automating Ceph deployment and changes with cephadm or Rook.
Ceph Automation · Storage Automation
Ceph automation deploys and manages clusters with cephadm or Rook, creates pools, RBD images and CephFS, and checks health with ceph -s and ceph health detail in scripts.
1. Ceph automation: cephadm/Rook/pveceph/Ansible.
2. Health gates before and after.
3. One change at a time.
4. Dry runs.
5. Wait for HEALTH_OK.
automation → Ceph orchestrator → cluster → health
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify Ceph automation with task completion, daemon map and workload recovery Verify boundary
Verify a bounded Ceph automation change by expecting the orchestrator task to reach a terminal success state and the intended daemon or service map to reflect the requested ownership. Wait for the documented PG and health conditions, then confirm affected pools report expected availability and no unexpected recovery backlog. Repeat a representative client read/write and compare latency/error rate with baseline. HEALTH_OK shows cluster health checks are clear, but it does not show every client path or application workload is healthy.
Step 2 Branch Ceph automation faults at admission, orchestrator task, daemon state and PG convergence Narrow the fault
If a Ceph automation request is rejected, inspect cluster health prerequisites and command validation. If the task status is Failed, preserve the error before retrying. If accepted but the orchestrator task stalls, inspect task events and target host/daemon reachability. If daemon changes complete but health stays WARN or ERR, identify the exact health check and affected PG/OSD before retrying. If PGs converge but workload latency remains abnormal, move to client/network/backend evidence. Track one task ID and cluster FSID through the entire operation.
Step 3 Common mistakes Narrow the fault
- Changing Ceph while not HEALTH_OK.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- cephadm or Rook deploy and manage Ceph.
- Check health before and after changes.
- Pools, RBD and CephFS are created by automation.
ceph orch apply osd --all-available-devices --dry-run— cephadm previewceph osd pool create <p>; ceph osd pool application enable <p> rbd— poolceph -s— health gate
ReferenceWhy it matters1 section · depth on demand
Ceph automation spans cluster maps, daemon orchestration and asynchronous recovery
Ceph Automation changes desired cluster state while MON, MGR, OSD and placement-group state converge asynchronously. The orchestrator owns task progress and depends on daemon, host and cluster-map boundaries. A command accepted by the manager does not show placement groups are clean or client I/O is healthy. Automation must anchor cluster FSID, daemon or host identity, pool name and the health state before and after the change. Recovery/backfill can be expected transitional work rather than failure, so the workflow needs explicit terminal criteria instead of only command return codes.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Ceph automation deploys and operates Ceph clusters — monitors, managers, OSDs, pools, RBD images, CephFS — with cephadm, Rook (Kubernetes) or configuration management. Because Ceph is distributed and self-healing, automation must respect cluster health before and during changes.
ceph orch apply osd --all-available-devices
ceph osd pool create vm-pool 128 128 replicated
ceph osd pool application enable vm-pool rbd
rbd create vm-pool/app01-disk --size 50G
ceph health detail
ceph osd set noout # before planned host maintenance
ceph osd unset noout
Gate every automated change on HEALTH_OK (or understood warnings), change one failure domain (host) at a time, and wait for recovery to finish between steps — rebooting a second host during recovery can make data unavailable.
Mechanics
The linked authority for bounded mechanics is Ceph Documentation; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Automation > Ceph Automation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ceph.com/en/latest/ · confidence 94%