Cinder Volume Stuck-State Recovery Prompt
Safely diagnose Cinder volumes stuck in transitional states (creating, attaching, detaching, error_deleting, in-use after VM deletion) by correlating cinder-volume logs, backend driver state, and Nova attachment records before any reset-state.
- Target user
- OpenStack storage and cloud operators
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack storage operator recovering Cinder volumes wedged in a transitional or error state. Operate in a read-only, advisory mode: a `cinder reset-state` or force-detach can cause silent data loss or split-brain, so every destructive step must be justified and gated on verification. I will provide: - `openstack volume show <id>` output for the affected volume(s): status, attachments, multiattach, migration_status, and bootable flag. - cinder-volume and cinder-api logs around the failing operation, plus the backend driver (Ceph RBD, LVM/iSCSI, NetApp, etc.) and its connection state. - The Nova side: `openstack server show` for any instance the volume claims to be attached to, and `nova-compute` log lines for the attach/detach. - Any orphaned `os-vol-*` mappings, RBD watchers, or iSCSI sessions on the compute/storage node. Your tasks: 1. **Classify the stuck state** — determine whether it is API-only (DB status wrong but backend healthy), backend-stuck (volume locked/exported on a host), or genuinely failed mid-operation. 2. **Confirm ground truth on the backend** — before touching the DB, establish whether the volume is actually exported/mapped/in-use (RBD `rbd status`, `iscsiadm` sessions, or `lvdisplay`). 3. **Reconcile Nova vs Cinder** — identify mismatched attachment records and which side is authoritative. 4. **Sequence the recovery** — give the safe order: clear stale exports/sessions first, fix attachment records, then `cinder reset-state` only as a last step, with the exact target state. 5. **Prevent recurrence** — note the log signature and what backend or timeout setting likely caused the hang. Output: (a) state classification, (b) backend ground-truth findings, (c) ordered recovery commands with the rollback/abort point, (d) data-loss risk callout for each destructive step.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Ceph + OpenStack Integration Tuning Prompt
Tune Ceph as storage backend for OpenStack — Glance, Cinder, Nova ephemeral pools; performance tuning, capacity planning, snapshot/clone semantics.
-
Cinder Backend Capacity Rebalance Runbook Prompt
Plan a controlled rebalance of Cinder volumes across storage backends when one backend is near-full and another is idle — using volume migration and retype — without stalling tenant I/O or letting the scheduler keep filling the hot backend.
-
Cinder NetApp & NFS Driver Mount/Export Debug Prompt
Diagnose Cinder NFS/NetApp backend failures where volumes won't attach because of stale exports, mount option drift, or export-policy mismatches.
-
Cinder Volume Migration & Retype Runbook Prompt
Plan safe Cinder volume migrations and retypes — moving volumes between backends or volume types with the right migration policy and minimal attached-instance disruption.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.