Friday, 22 April 2016

Formula to Calculate LUN Number in HP-UX

***** This formula only works if the LUN number isn't too high (ie over 100ish) *****

The disk in HP-UX has the identifier /dev/dsk/cxtydz

Take the /cxtydz portion and apply the formula below;

(y x 8) + z

This should give you the LUN number from the SAN device. In the example below this would be;

c52t2d1

t =2, d = 1

(2 x 8) + 1 = 17

LUN number is 17

No comments:

Post a Comment