recover

A troubleshooting and recovery guide for DRBD and LINSTOR storage in Kubernetes. DRBD replicates storage between servers, while LINSTOR manages those replicated resources.

In plain words
What is it for?
Use it when LINSTOR reports faulty resources, DRBD resources are unhealthy, deletion or disk operations are stuck, ports conflict, or Kubernetes nodes have lost-quorum taints.
Why use it?
It helps identify why replicated storage is disconnected, inconsistent, stuck, diskless, or affected by lost quorum, and guides recovery for common failure states. The actions depend on the observed resource and node condition.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cozystack/ccp/recover
Any agent
npx skills add cozystack/ccp --skill recover
Clone the repo
git clone --depth 1 https://github.com/cozystack/ccp

Made for: Claude Code, Codex.

Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,983 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00075 $0.03983
Opus 5 $0.00037 $0.01992
Sonnet 5 $0.00015 $0.00797
Haiku 4.5 $0.00007 $0.00398

Measured 2d ago against content hash fd793b167c53, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

recover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/linstor/skills/recover/SKILL.md · 367 lines

How it starts

The opening of the file, as written. The whole thing — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.

linstor:recover

Specialized skill for diagnosing and recovering DRBD/LINSTOR storage issues in Kubernetes clusters.

When to use

  • linstor r l --faulty shows broken resources
  • DRBD resources in StandAlone, Connecting, Inconsistent, Outdated, or Unknown state
  • Stuck DELETING resources that won't complete
  • TCP port collisions between DRBD devices
  • Stuck toggle-disk operations
  • Nodes with drbd.linbit.com/lost-quorum taints
  • drbdadm adjust failing with bitmap or connection errors

Core Principles

  1. Match the operator's natural language. Detect from prior conversation messages. Use that language in every prompt, AskUserQuestion option, summary, and gate. Never ask "what language?" separately. Code identifiers, linstor / drbdadm commands, file paths, and GitHub-public text stay in their canonical form (usually English). 0a. One valid path → just do it. When the diagnostic graph picks one resource to fix and one operation that's not destructive (re-attach, re-promote, refresh), the skill runs it without "ok to do this?" friction. The dangerous-operations gate at principle 8 still applies — linstor node lost, deleting the last replica, drbdadm down on InUse/Primary, --discard-my-data with one diskful copy, drbdadm create-md --force — those always ask. Safe single-path operations don't. 0b. Front-load the interview. Read the full diagnostic graph first (linstor r l --faulty, linstor n l, drbdadm status on each affected node, linstor error-reports list), then present a single recovery plan with the ordered operations, classifications (safe / dangerous), and the dangerous-operation approvals batched into one approval screen. Operator either approves the lot or names what to skip. Phases of the recovery run uninterrupted against the collected approvals. 0c. Layer-pure operator output. The skill never says "returning control to wizard" or makes any orchestration commentary in the operator-facing summary. linstor:recover is a standalone skill that nobody auto-dispatches today, but even if it ever gets called from a chain, whoever invoked it figures out what's next on their own.
  2. Work one resource at a time. On mass incidents, resist the urge to fix everything at once. Serial, monotonic recovery is safer.
  3. Always verify on the node itself. LINSTOR's view can be stale or wrong. drbdadm status on the satellite is the source of truth.
  4. Preserve UpToDate replicas. Never touch the source-of-truth replica first. Fix broken copies by working outward from the healthy one.
  5. ALWAYS verify at least one UpToDate diskful replica exists before ANY destructive action. Run linstor r l -r <resource> and confirm there is at least one replica with State=UpToDate and a real storage pool (not DfltDisklessStorPool). If there are zero UpToDate diskful replicas — STOP and ask the user before proceeding. This is the single most important safety check.
  6. If SyncTarget is progressing, stop. A resource that entered sync is already recovering. Don't interfere.
  7. Every action should simplify the graph. Remove peers from conflict, reduce topology complexity. If an action creates new noise, don't do it.
  8. Check error-reports for the real cause. What looks like StandAlone may actually be an adjust failure underneath.
  9. ASK the user before dangerous operations. Always ask for explicit confirmation before: linstor node lost, deleting the last replica, drbdadm down on InUse/Primary resource, --discard-my-data when only one diskful copy remains, drbdadm create-md --force (wipes DRBD metadata and triggers a full resync).

Read the full file on GitHub · 367 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 367 lines · 75 tokens per session scan A fd793b167c53

Subscribe to this mod's changes

recover is a skill published in the GitHub repository cozystack/ccp (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 3,983 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens