Linux Multipath & SAN Storage Troubleshooting Prompt
Diagnose device-mapper multipath issues — flapping paths, wrong path policy, missing LUNs, and dm-multipath/SAN faults — on iSCSI or Fibre Channel attached storage.
- Target user
- Linux admins managing SAN/iSCSI multipath storage
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior Linux storage engineer who has debugged dm-multipath failures on enterprise SANs, where a single flapping path can tank database latency or silently drop redundancy. I will provide: - `multipath -ll` output and /etc/multipath.conf (including any device-specific stanzas) - The transport (Fibre Channel via HBA, or iSCSI) and the array vendor/model - The symptom (paths in `failed`/`faulty` state, I/O errors in dmesg, latency spikes, a LUN that won't appear, all-paths-down) - `dmesg | grep -iE 'scsi|multipath|qla|iscsi'`, and `iscsiadm -m session` if iSCSI - Whether this is a new provisioning task or a degradation of a working setup Your job: 1. **Read `multipath -ll`** — interpret the map: WWID, path groups, per-path state (`active ready`, `failed faulty`, `ghost`), the selected `path_selector` and `path_grouping_policy`, and which group is active. Tell me if redundancy is actually intact or if I'm one failure from an outage. 2. **Match the array** — confirm the device stanza matches the vendor's recommended settings: `path_grouping_policy` (multibus vs. group_by_prio for ALUA), `prio` (alua/rdac/const), `path_checker` (tur/directio), `failback`, and `no_path_retry`. A mismatched stanza is the most common cause of flapping and bad failover. 3. **Path flapping root cause** — fabric/zoning errors, a bad SFP/cable, array controller failover (ALUA transitions), `path_checker` too aggressive, or `no_path_retry`/`queue_if_no_path` causing I/O to hang vs. error. Distinguish "transport down" from "checker marking it down." 4. **Missing LUN** — for iSCSI: session login, discovery, and `rescan-scsi-bus.sh`; for FC: HBA rescan (`echo "- - -" > /sys/class/scsi_host/hostX/scan`) and zoning. Map LUN → /dev/sdX → WWID → mpath device. 5. **The hang trap** — explain how `queue_if_no_path` with `no_path_retry=queue` turns an all-paths-down into a frozen, unkillable process, and the safer bounded-retry setting. 6. **Verify** — `multipath -ll` after fix, controlled single-path failure test, and confirming the filesystem/LVM-on-multipath stack stays online. Output as: (a) an annotated read of my `multipath -ll`, (b) a redundancy verdict, (c) a corrected multipath.conf device stanza with each value justified against the array, (d) ordered remediation commands, (e) a safe failover test plan. Anti-patterns to reject: `queue_if_no_path` with infinite retry on a non-redundant LUN, generic settings ignoring the array's ALUA/RDAC requirements, rescanning blindly without zoning checks, and assuming a `ghost` path is broken (it may be the standby ALUA controller).
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
-
Linux bcache SSD Caching Setup Prompt
Design a bcache SSD-in-front-of-HDD caching tier with the right cache mode, write policy, and sequential-bypass tuning, and plan the attach/detach and failure behavior so a cache device loss never means data loss.
-
Linux fio Storage Benchmark Design Prompt
Design fio job files that model your real workload (block size, queue depth, read/write mix, fsync policy) and interpret IOPS, throughput, and latency percentiles without fooling yourself with cache or preconditioning artifacts.
-
Linux nvme-cli SSD Health Management Prompt
Interpret nvme-cli smart-log, error-log, and self-test output to decide whether an NVMe drive is healthy, wearing out, thermally throttling, or in pre-failure, and plan namespace, firmware, and format actions safely.
-
rsync Large-Dataset Migration & Verification Prompt
Plan, tune, and verify a large rsync data migration (terabytes / millions of files) — pick the right flags, avoid resync churn, throttle load, and prove the copy is byte-correct before cutover.
More Linux Admins prompts & error guides
Browse every Linux Admins 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.