Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hdisk to lun mapping

Status
Not open for further replies.

ccook123

IS-IT--Management
May 1, 2009
21
0
0
US
I'm having a hard time figuring out how to tell what LUN a disk is mapped to on my SAN. I'm needing to remove hdisk4 or hdisk5 but I can't tell which one is which in the storage manager, any suggestions?

OS AIX 5.3
SAN DS6800

# lscfg -vl hdisk4
hdisk4 U787B.001.DNWFW20-P1-C5-T1-W500507630E040093-L4011400200000000 MPIO Other FC SCSI Disk Drive

Manufacturer................IBM
Machine Type and Model......1750500
Part Number.................
ROS Level and ID............2E343431
Serial Number...............13004691
EC Level....................
FRU Number..................
Device Specific.(Z0)........000005329F101002
Device Specific.(Z1)........102
Device Specific.(Z2)........013
Device Specific.(Z3)........15405
Device Specific.(Z4)........

# lscfg -vl hdisk5
hdisk5 U787B.001.DNWFW20-P1-C5-T1-W500507630E040093-L4011400300000000 MPIO Other FC SCSI Disk Drive

Manufacturer................IBM
Machine Type and Model......1750500
Part Number.................
ROS Level and ID............2E343431
Serial Number...............13004691
EC Level....................
FRU Number..................
Device Specific.(Z0)........000005329F101002
Device Specific.(Z1)........103
Device Specific.(Z2)........013
Device Specific.(Z3)........15405
Device Specific.(Z4)........
Device Specific.(Z5)........
Device Specific.(Z6)........

Device Specific.(Z5)........
Device Specific.(Z6)........

# lscfg -vl hdisk6
hdisk6 U787B.001.DNWFW20-P1-C5-T1-W500507630E000EB8-L4000400000000000 MPIO Other FC SCSI Disk Drive

Manufacturer................IBM
Machine Type and Model......1750500
Part Number.................
ROS Level and ID............2E343937
Serial Number...............68223830
EC Level....................
FRU Number..................
Device Specific.(Z0)........000005329F101002
Device Specific.(Z1)........000
Device Specific.(Z2)........068
Device Specific.(Z3)........18707
Device Specific.(Z4)........
Device Specific.(Z5)........
Device Specific.(Z6)........
 
Can you also show details of the LUNs for this server from Storage Manager? I may be able to figure something out for you.

You are using the standard AIX path control module and that isn't really helping you. You could have used SDDPCM for DS6800 SAN and that shows a lot more detail. As it is now, it's really hard to find the LUN numbers...



HTH,

p5wizard
 
Yes I can but it will probably me Monday before I get a chance to check it out.

In the mean time, what exactly are the benefits of using SDDPCM and is it to late for me to load it up?

 
AIXPCM is the default AIX PathControlModule and it only has path failover, no load balancing. Also it does not "know" all the different SAN storage boxes (as you have found out).
SDDPCM does both path failover and load balancing and it is easier to identify LUNs.

It's not too late to install it but it will mean some serious downtime. (in short: unmount, varyoffvg, delete disks, install SDDPCM and maybe some other required filesets, reboot to finalize and rediscover disks, importvg, mount)

On monday: look for LUN numbers 1102, 1103 and 0000 in StorageManager

[tt]# lscfg -vl hdisk4
hdisk4 U787B.001.DNWFW20-P1-C5-T1-W500507630E040093-L40[red]11[/red]40[red]02[/red]00000000 MPIO Other FC SCSI Disk Drive
-> 1102

# lscfg -vl hdisk5
hdisk5 U787B.001.DNWFW20-P1-C5-T1-W500507630E040093-L40[red]11[/red]40[red]03[/red]00000000 MPIO Other FC SCSI Disk Drive
-> 1103

# lscfg -vl hdisk6
hdisk6 U787B.001.DNWFW20-P1-C5-T1-W500507630E000EB8-L40[red]00[/red]40[red]00[/red]00000000 MPIO Other FC SCSI Disk Drive
-> 0000[/tt]


HTH,

p5wizard
 
I usually use this command:

Code:
fget_config -Av

Regars,
Khalid
 
fget_config is only for DS4K family IMHO


HTH,

p5wizard
 
p5wizard you were right on the money. Those numbers lined up to the LUN number, thank you very much.

After you showed me how to identify the LUN numbers I noticed something else interesting. The above command lscfg -vl hdisk4/5 is being run on a vio server and the last digit of the serial number and the Device Specific (Z1) also seem to combine to correspond to the correct LUN number. But on my regular non-vio machines, the last 4 digits on the serial number seem to directly identify to the lun they are related to.

Serial Number...............68223830
Device Specific.(Z1)........000
=LUN 0000

Again, thank you for your help!
 
Probably a difference in device driver fileset level between your non-vio LPARs and the underlying AIX level of VIOS install.


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top