Unsolved
This post is more than 5 years old
63 Posts
0
2512
February 13th, 2008 11:00
mapping ctd's to lun number to symm device number on HPUX
I was able to get the Symm Device number and the corresponding LUN # using the symcli. And on the HPUX box, I was able to run ioscan to get the ctd number.
Now, how do I map the ctd number to the corresponding LUN # on a HPUX box?
e.g.
Symm Device 101, LUN # 0
and from the HPUX I see c5t2d0, how do I find out what c5t2d0 is mapped to?
Thanks!
Now, how do I map the ctd number to the corresponding LUN # on a HPUX box?
e.g.
Symm Device 101, LUN # 0
and from the HPUX I see c5t2d0, how do I find out what c5t2d0 is mapped to?
Thanks!
No Events found!
xe2sdc
2 Intern
•
2.8K Posts
0
February 13th, 2008 12:00
If you look at the last three digits of every "disk" instance in ioscan output, you'll clearly see that they match what you choose for VBUS, TARGET and LUN. Matching the vbus with the controller part is a challenging task since hpux will create a new controller for every different vbus/storage port in the SAN. If you look at the rightmost 6 values in the hardware path you'll see both the FCID of the storage port and the vbus,tgt,lun values as configured in your storage. As I said before the rightmost 2 values are exactly the T and D for your disk .. while the whole FCID + the VBUS identifies a controller for hpux.
Since however it's possible to use heterogeneous_on and hba_flags (with symmask command) to "bend" the behaviour of the FA port to your host's preferences, it may happen to have an hpux host connected to non-hpux ports. And when you map devices on a non-hpux port, you simply specify a LUN value. Now take the LUN value, pad with leading zeroes to have three digits and split it in 3 .. you'll have again VBUS TGT and LUN
So if I map a device on a FA port configured for HPUX, I will assign vbus=3, tgt=2, lun=0 and the device will show up on your host as /dev/dsk/cXt2d0
If I map a device on a FA port configured for Solaris I will assign LUN=144 ,, that will give you vbus=1, tgt=4 and lun=4 .. and it will show up on the host as /dev/dsk/cYt4d4
Please note that however lun-offset may be used to screw up the math
I hope I've shaded some light on this obscure topic
xe2sdc
2 Intern
•
2.8K Posts
0
February 13th, 2008 12:00
FrankMS
26 Posts
0
February 14th, 2008 00:00
Hopt this helps as well,
Frank
xe2sdc
2 Intern
•
2.8K Posts
0
February 14th, 2008 01:00
I completly lost myself in trying to help him .. And the answer was easier then what I thought !!
RRR
2 Intern
•
5.7K Posts
0
February 14th, 2008 03:00
RRR
2 Intern
•
5.7K Posts
0
February 14th, 2008 03:00
xe2sdc
2 Intern
•
2.8K Posts
0
February 14th, 2008 03:00
emcers
63 Posts
0
February 14th, 2008 07:00
SKT2
2 Intern
•
1.3K Posts
0
March 3rd, 2008 18:00
Symmetrix ID=xxxxxxxxxxxxx
Logical device ID=004C
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
23 0/0/8/0/0.99.25.19.0.4.4 c23t4d4 FA 5bA active alive 0 0
93 1/0/8/0/0.101.29.19.0.4.4 c93t4d4 FA 12aA active alive 0 0
Message was edited by:
santhosh theyyan
xe2sdc
2 Intern
•
2.8K Posts
0
March 4th, 2008 07:00
Note that the hardware path contains the VBUS (0 in the supplied example) and also the FCID of the storage ports(0/0/8/0/0.99.25.19.0.4.4 and 1/0/8/0/0.101.29.19.0.4.4)
-s-
Message was edited by:
Stefano Del Corno
dynamox
9 Legend
•
20.4K Posts
0
March 4th, 2008 07:00
xe2sdc
2 Intern
•
2.8K Posts
0
March 4th, 2008 14:00
http://www.docs.hp.com/en/J2635-90017/J2635-90017.pdf (page 16)
The FCID is made up of 3 parts (24 bit) .. Domain, Area, Port.
You can easily see them in the hardware path. As you guess, 101 and 99 are the domain id of the two switches where the storage is connected.
I'd say that Santhosh have McData switches .. But I may be wrong. The Area and Port portion of the FCID are strictly "implementation" dependent so every switch vendor uses them as they like .. Sometime changing a "flag" in the firmware changes the way that the hardware ports are mapped to Area/Port.
Message was edited by:
Stefano Del Corno