/lvms:analyze [must-gather-path|--live] [--component storage|operator|volumes|logs]from lvms
Diagnoses LVMS (Logical Volume Manager Storage) issues on OpenShift clusters, including PVCs stuck Pending, LVMCluster not Ready, volume group failures, and TopoLVM CSI problems. Works on live clusters or must-gather data.
Ships in lvms. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
/lvms:analyze [must-gather-path] [--live] [--component <component>]
Examples:
# Full analysis on a live cluster
/lvms:analyze --live
# Analyze must-gather data offline
/lvms:analyze ./must-gather/registry-ci-openshift-org-origin-4-18.../
# Component-specific analysis
/lvms:analyze --live --component storage
/lvms:analyze ./must-gather/... --component logs
Diagnoses LVMS (Logical Volume Manager Storage) issues on OpenShift clusters. Operates in two modes:
oc commands for real-time diagnosticsDetects: PVCs stuck Pending, LVMCluster not Ready, volume group creation failures, device conflicts, TopoLVM CSI issues, thin pool capacity problems, and operator/vg-manager pod errors.
Live cluster: oc CLI with active cluster connection and read access to the LVMS namespace.
Must-gather: Python 3 with PyYAML (pip install pyyaml). The must-gather path must point to the subdirectory containing cluster-scoped-resources/ and namespaces/ (not the parent).
Namespace compatibility: LVMS namespace changed from openshift-storage to openshift-lvm-storage in recent versions. Both are auto-detected.
--live flag present → live cluster analysisParse arguments for component focus:
| Keywords in args | Scope |
|---|---|
storage, pvc, pv, volumes, pending | PVC/PV analysis only |
operator, lvmcluster, deployment, pods | Operator health only |
vg, volume group, disk, device | Volume group analysis only |
node, devices, lsblk | Node device analysis (live only) |
logs, errors | Pod log analysis only |
No keywords or all | Full comprehensive analysis |
Run the Python analysis script:
python3 plugins/lvms/skills/analyze/scripts/analyze_lvms.py <must-gather-path> [--component <component>]
Valid --component values: all, storage, operator, volumes, vg, pvc, pods, logs.
If the script is unavailable, fall back to reading must-gather files directly with the Read tool.
First detect the LVMS namespace:
LVMS_NS=$(oc get namespace openshift-lvm-storage -o name 2>/dev/null | cut -d/ -f2)
if [ -z "$LVMS_NS" ]; then
LVMS_NS="openshift-storage"
fi
Then collect and analyze resources depending on scope:
LVMCluster health:
oc get lvmcluster -n $LVMS_NS -o yaml
Check status.state (Ready/Progressing/Failed/Degraded), status.ready, and status.conditions (ResourcesAvailable, VolumeGroupsReady). Check status.deviceClassStatuses for per-node VG readiness.
Volume groups:
oc get lvmvolumegroup -A -o yaml
oc get lvmvolumegroupnodestatus -A -o yaml
Check VG creation per node, device availability, excluded devices and reasons. Common root causes for VG failures: device has existing filesystem (wipe with wipefs -a), duplicate VG names on the system conflicting with LVMS VG name, or device too small.
PVC/PV status:
oc get pvc -A -o json | jq '[.items[] | select(.spec.storageClassName | startswith("lvms-")) | select(.status.phase != "Bound")]'
oc get pv -o json | jq '[.items[] | select(.spec.csi.driver == "topolvm.io")]'
oc get storageclass -o json | jq '[.items[] | select(.provisioner == "topolvm.io")]'
For each pending PVC, check events: oc get events -n <ns> --field-selector involvedObject.name=<pvc>. Common causes: insufficient VG free space (thin pool full), VG missing on the node the PVC has affinity to, or node-specific device failure.
Operator health:
oc get pods -n $LVMS_NS -o wide
oc get deployment -n $LVMS_NS -o wide
oc get daemonset -n $LVMS_NS -o wide
Check for CrashLoopBackOff, high restart counts, missing replicas.
Pod logs:
oc logs -n $LVMS_NS deployment/lvms-operator --tail=500
for pod in $(oc get pods -n $LVMS_NS -l app.kubernetes.io/component=vg-manager -o name); do
oc logs -n $LVMS_NS $pod --tail=500
done
Extract error/warning messages. Deduplicate repeated reconciliation errors.
Node devices (live only):
oc debug node/<node> -- chroot /host lsblk --paths --json -o NAME,ROTA,TYPE,SIZE,MODEL,FSTYPE,MOUNTPOINT
oc debug node/<node> -- chroot /host vgs -o vg_name,pv_name,vg_size,vg_free
Structure the output with these sections (include only relevant sections based on scope):
oc commands and verification stepsUse visual indicators: ✓ (healthy), ⚠ (warning), ❌ (critical), ℹ (info).
Always end with actionable next steps including verification commands and a pointer to collect a fresh must-gather if needed:
oc adm must-gather --image=quay.io/lvms_dev/lvms-must-gather:latest
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
5 skills in this plugin
/check-release-readinesslvms:check-release-readinessCheck LVMS release readiness by verifying branches, dependencies, and configuration/run-integration-testslvms:run-integration-testsRun LVMS QE integration tests on a TNF cluster via SSH — deploys operator from source, runs tests, parses results, posts to JIRA. Use for RC/EC builds where OLM catalog is unavailable./setup-prereqlvms:setup-prereqSet up prerequisites to test unreleased LVMS operator builds on OpenShift clusters/z-stream-reportlvms:z-stream-reportGenerate z-stream release urgency report for all supported LVMS versionsnpx claudepluginhub openshift-eng/edge-tooling --plugin lvms