px csi diags
Collect diagnostics from PX-CSI components
Examples:
# Collect all diagnostics (logs + cluster info)
kubectl px csi diags --all
# Collect only pod logs (controller and node plugin logs)
kubectl px csi diags --logs
# Collect node plugin logs from specific nodes
kubectl px csi diags --logs --node node-1,node-2
# Collect logs from the last hour with custom output directory
kubectl px csi diags --logs --since 1h --output-dir /tmp/px-csi-diags
Flags
| Flag | Input type | Description | Default | Required |
|---|---|---|---|---|
--all, -a | bool | Collect all diagnostics: logs, pod info, PVCs, PVs, and CSI resources | false | Optional |
--logs, -l | bool | Collect only pod logs from controller and node plugins | false | Optional |
--namespace, -n | string | (optional) Kubernetes namespace where PX-CSI pods are running | - | Optional |
--node | string | Collect node plugin logs from specific nodes (comma-separated) | - | Optional |
--output-dir, -o | string | Target directory to store diagnostic files (defaults to px-csi-diags directory) | - | Optional |
--since | string | Only return logs newer than a relative duration like 5s, 2m, or 3h | - | Optional |