Storage · Linux Storage
Multipath
Cheat sheet · https://pcornel.dk/topic.php?topic=4002
Answer
Linux multipath (dm-multipath) combines several paths to the same SAN LUN into one /dev/mapper device with failover and load balancing, configured in /etc/multipath.conf and checked with multipath -ll.
Remember
- dm-multipath merges paths into /dev/mapper devices.
- Blacklist local disks in multipath.conf.
- Use the mapper device, not sdX.
First checks
multipath -ll— mapssystemctl status multipathd— daemoncat /etc/multipath.conf— config
Commands
multipath -ll
Verify in this order
SCSI paths → multipathd → dm map
Where it usually breaks
First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4002