Download Red Hat ENTERPRISE LINUX 4 - DM MULTIPATH User guide
Transcript
7.4 LINUX SCSI DEVICE ENUMERATION Linux enumerates SCSI devices in order of Host:BUS:ID:LUN # lsscsi -g [0:0:0:0] [0:0:6:0] [1:0:0:0] [1:0:0:1] [1:0:0:2] [2:0:0:0] [2:0:0:1] [2:0:0:2] disk process disk disk disk disk disk disk SEAGATE PE/PV DDN DDN DDN DDN DDN DDN ST373207LC 1x2 SCSI BP S2A 6620 S2A 6620 S2A 6620 S2A 6620 S2A 6620 S2A 6620 D703 1.0 1.03 1.03 1.03 1.03 1.03 1.03 /dev/sda /dev/sdd /dev/sde /dev/sdg /dev/sdb /dev/sdc /dev/sdf /dev/sg0 /dev/sg1 /dev/sg3 /dev/sg5 /dev/sg7 /dev/sg2 /dev/sg4 /dev/sg6 The lsscsi utility is part of some Linux distributions, but is also available for free download. It displays SCSI path information, Vendor and Product inquiry strings, block devices, and associated SCSI generic devices in a nice easy to read output. 7.5 FUNCTIONING MULTIPATH OUTPUT (ON RHEL 5 AND SLES 10) # multipath -ll mpath19 (360001ff0721160000000002688e10002) dm-2 DDN,S2A 6620 [size=21T][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=50][active] \_ 1:0:0:2 sdg 8:96 [active][ready] \_ round-robin 0 [prio=10][enabled] \_ 2:0:0:2 sdf 8:80 [active][ready] mpath19 (360001ff0721160000000002688e10002) dm-2 DDN,S2A 6620 ^ ^ ^ ^ ^ | | | | |___ Product | | | |_______ Vendor | | |__________ Sysfs Name | |_____________________________ WWID of the Device |_________________________________________________ User Defined Alias Name Product and Vendor are returned from the SCSI inquiry string The sysfs name is the device mapper SCSI block device name WWID is the unique identifier for the multipath device, which includes OEM vendor strings, owning controller MAC, and LUN id’s The alias name is optional and can be defined in /etc/multipath.conf in conjunction with enabling user_friendly_names © DataDirect Networks 2011. Multipath (V1.8) User Guide | 14