Operating System - HP-UX
1753521 Members
5692 Online
108795 Solutions
New Discussion юеВ

Re: Command to get lun number in hp ux

 
Prasanth V Aravind
Trusted Contributor

Re: Command to get lun number in hp ux

Wow Johnson !!! is it possible to derive lunid from ioscan output??

[root@mumprod]/opt/IBMsdd/bin# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 110 2/0/1/1/0/4/0.201.66.0.41.14.3 sdisk CLAIMED DEVICE IBM 2107900
/dev/dsk/c33t14d3 /dev/rdsk/c33t14d3
disk 109 2/0/10/1/0.101.66.0.41.14.3 sdisk CLAIMED DEVICE IBM 2107900
/dev/dsk/c32t14d3 /dev/rdsk/c32t14d3

[root@mumprod]/# datapath query device

Serial: 75BW13114F3
==================================================================================
Path# Adapter H/W Path Hard Disk State Mode Select Error
0 2/0/10/1/0 c32t14d3 CLOSE NORMAL 1 0
1 2/0/1/1/0/4/0 c33t14d3 CLOSE NORMAL 0 0


14F3 is the actual lunid on this server.. will you pls explain .. how we can derive lunid from ioscan output.

Prasanth
KK07
New Member

Re: Command to get lun number in hp ux

Hi All,

Thanks for your replies, storage being used is 3par. As such there is no storage/external tool installed. so used the vxdisk list command and used the formula method to get lun numbers(cxtydz--> (y*8)+z)
Torsten.
Acclaimed Contributor

Re: Command to get lun number in hp ux

The formula is good as long as the LUN number is not too high and it is the same cx(dytz) value. With another "x" you need another formula.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
hpuxadm1
Occasional Advisor

Re: Command to get lun number in hp ux

LUN Identification command:-
------------------------------------
syminq |grep -i "ABCD"

Where ABCD = 4 digit unique number of disk. It is for EMC

For HP XP Storage .

xpinfo |grep -i "ABCD"


Where ABCD = 4 digit unique number of disk.
Jasvir819
Frequent Advisor

Re: Command to get lun number in hp ux

Simple command to get LUN details from storage (LUN present on HP UX server) is:

 

# xpinfo -i

 

 

To Recognise only physical disk status:

 

# ioscan -fnC disk