# Functions
Check if the path is a multipath device.
NAME RO sdb 0 └─36006016003b03a00da41ad58e6ab1cc0 0 sdd 0 └─36006016015e03a00bea7c7588c91d581 0 sde 0 sdf 0 └─36006016003b03a00da41ad58e6ab1cc0 0 sdg 0 └─36006016015e03a00bea7c7588c91d581 0 sr0 0 vda 0 └─vda1 0.
Commands example: echo 1 > /sys/bus/scsi/drivers/sd/9:0:0:6/rescan.
Use multipath -l <path> to discover multipath device Valid <path> could be WWN or /dev/sdb like path.
Return the multipath by wwn 1) When multipath friendly names are ON: a device file will show up in /dev/disk/by-id/dm-uuid-mpath-<WWN> /dev/disk/by-id/dm-name-mpath<N> /dev/disk/by-id/scsi-mpath<N> /dev/mapper/mpath<N>
2) When multipath friendly names are OFF: /dev/disk/by-id/dm-uuid-mpath-<WWN> /dev/disk/by-id/scsi-<WWN> /dev/mapper/<WWN>.
No description provided by the author
path = "/dev/sdb" or " "/dev/disk/by-path/ip-10.244.213.177:3260-iscsi-iqn.1992-04.com.emc:cx.fnm00150600267.a0-lun-10".
Flush device(s) via multipath -f <device>/-F.
output: sudo sg_scan /dev/disk/by-path/pci-0000:05:00.1-fc-0x5006016d09200925-lun-0 /dev/disk/by-path/pci-0000:05:00.1-fc-0x5006016d09200925-lun-0: scsi9 channel=0 id=0 lun=0 [em].
Get block device size.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Reconfigure multipath.
Force multipath reloads devices via multipath -r.
path = "/dev/sdb" or "sdb" Use echo 1 > /sys/block/%s/device/delete to force delete the device.
Do a more specific scan instead of a wildcard.
No description provided by the author
use echo "c t l" > to /sys/class/scsi_host/%s/scan.
No description provided by the author
No description provided by the author