Beruflich Dokumente
Kultur Dokumente
Howtoidentify/matchLUNpresentedfromSANwithunderlyingOSdisk(DocID
1944148.1)
InthisDocument
Goal
Solution
References
APPLIESTO:
LinuxOSVersionOracleLinux5.7toOracleLinux7.0[ReleaseOL5U7toOL7]
Linuxx8664
Linuxx86
GOAL
HowtoidentifyLUNpresentedfromSANwithunderlyingOSdiskandfindWWIDofLUN
SOLUTION
Firstoption
ExecutecommandbelowcommandtoobtainVendor,ModelandPort,Channel,SCSIID,LUN
#cat/proc/scsi/scsi
Host:scsi4Channel:00Id:00Lun:00
Vendor:IBMModel:1750500Rev:5.17
Type:DirectAccessANSISCSIrevision:05
Host:scsi4Channel:00Id:00Lun:01
Vendor:IBMModel:1750500Rev:5.17
Type:DirectAccessANSISCSIrevision:05
Thenbelowcommandcanbeused
#lsld/sys/block/sd*/device
lrwxrwxrwx1rootroot0Jun821:09/sys/block/sda/device>
../../devices/pci0000:00/0000:00:1f.2/host4/target0:0:0/0:0:0:0
lrwxrwxrwx1rootroot0Jun821:10/sys/block/sdb/device>
../../devices/pci0000:00/0000:00:1f.2/host4/target1:0:0/1:0:0:0
AndcomparehostXinfowithtargetwithpreviouscommand(/proc/scsi/scsi)toobtaindetailswhichdiskismappedto
whichLUNID
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=awks4gm4s_248&id=1944148.1 1/3
6/8/2016 Document1944148.1
TogetaswellWWIDofLUNtolocaldiskmappingbelowcommandcanbeused:
#lsla/dev/disk/byid/
scsi3600508b400105e210000900000490000>../../dm1
Nowitseasiertounderstandthatdm1hasWWID3600508b400105e210000900000490000
Secondoption
Anotherwayistousesg3utilscommand
#yuminstallsg3utils
#sg_scani
/dev/sg2:scsi1channel=0id=0lun=1[em]type=0
SanDiskImageMateCFSM0100[wide=0sync=0cmdq=0sftre=0pq=0x0]
Abovecommandwillgivemappingfordevices
Thenexecute
#sg_mapx
/dev/sg200200/dev/sdc
Nowitcanbeeasilydeterminedthatsg2(SANDISK)isactually/dev/sdcdevice
Thirdoption
Ifmultipathisbeingused(devicemapper)belowcommandcanbeused:
#multipathv4ll
mpathc(360000970000195900437533030382310)dm1EMC,SYMMETRIX
size=253Gfeatures='1queue_if_no_path'hwhandler='0'wp=rw
`+policy='roundrobin0'prio=1status=active
|3:0:0:1sde8:64activereadyrunning
`5:0:0:1sdc8:32activereadyrunning
Howtounderstandtheoutput
mpathcuserdefinedname
360000970000195900437533030382310WWID
dm1sysfsname
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=awks4gm4s_248&id=1944148.1 2/3
6/8/2016 Document1944148.1
EMCVendor
3:0:0:1host,channel,scsiid,lun
AbovemethodsshouldhelptoproperlyidentifyLUNwithunderlyingOSdevice
REFERENCES
NOTE:1507828.1DiagnosticMethodsTofindFCStorageIssueOnLinuxUsingSystool
Didn'tfindwhatyouarelookingfor?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=awks4gm4s_248&id=1944148.1 3/3