Operating System - HP-UX
1828153 Members
2715 Online
109975 Solutions
New Discussion

Re: identify disks using LUN numbers, without GUIDs

 
SOLVED
Go to solution
silusan
Regular Advisor

identify disks using LUN numbers, without GUIDs

 

when a new disk has been assigned to our hpux server, from HP EVA, the storage guys give us a GUID using which we can identify the disks in server OS

example:
a disk with GUID 12e

 

#evainfo -a| grep -i 12e
/dev/rdsk/c6t1d2        5001-4380-025D-9890 6005-08B4-000B-3F9F-0000-6000-012E-0000       41984MB       Ctl-B/FP-2/Optimized
/dev/rdsk/c8t1d2        5001-4380-025D-9890 6005-08B4-000B-3F9F-0000-6000-012E-0000       41984MB       Ctl-B/FP-1/Optimized
/dev/rdsk/c12t1d2       5001-4380-025D-9890 6005-08B4-000B-3F9F-0000-6000-012E-0000       41984MB       Ctl-B/FP-1/Optimized
/dev/rdsk/c10t1d2       5001-4380-025D-9890 6005-08B4-000B-3F9F-0000-6000-012E-0000       41984MB       Ctl-B/FP-1/Optimized

 

There is another storage team maintaining P6500 storage.
Recently they assigned the disks but have not given any GUIDs and suggest us to identify the disks using the LUN numbers.
Is there anyway, from the hpux OS, we can identify the disks using their LUN numbers?

5 REPLIES 5
Ken Grabowski
Respected Contributor

Re: identify disks using LUN numbers, without GUIDs

Torsten.
Acclaimed Contributor

Re: identify disks using LUN numbers, without GUIDs

You can decode the h/w path, this will tell you the LUN number.

Better to use evainfo as you know.

Do you run 11.31? More options there ...

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!   
silusan
Regular Advisor

Re: identify disks using LUN numbers, without GUIDs

from eva storage, when a vm host was assigned with a disk, we were given a GUID and we use evainfo -a | grep <GUID> to identify the disk...as I said in my earlier post.

To identify a disk using its loun decimal? I am not sure how to do this.

 

yes, we have 11.31 hpux OS

silusan
Regular Advisor
Solution

Re: identify disks using LUN numbers, without GUIDs

evainfo -a -l shos the output with lun decimal and GUID as well.

 

this is the solution for my problem.

 

thanks all for your responses.

Torsten.
Acclaimed Contributor

Re: identify disks using LUN numbers, without GUIDs

There are many post about how to convert the legacy h/w path of a LUN into the LUN number within this forum.

 

With 11.31 you have other ways to find a specific LUN.

 

Here is a 3PAR example:

 

 

 

On the array get the WWID of a specific LUN:

 

> showvv -d vv01

Id Name  Rd Mstr  Prnt Roch Rwch PPrnt PBlkRemain -----VV_WWN----- ------CreationTime------
 1 vv01  RW 1/0/-  ---  ---  ---   ---         -- 50002AC000012257 2012-09-07 08:52:53 CEST
-------------------------------------------------------------------------------------------

 

 

then do on the host

 

# scsimgr -p get _attr all _lun -a hw _path -a device _file -a wwid -a serial _number 
...
64000/0xfa00/0xd:/dev/rdisk/disk17:0x50002ac000012257:01401234

 

 

 

 

and in this case you see vv01 on the array is disk17 on your host.

 

This works very similar with each other array, you just need to get the LUN wwid from the array (from command view or sssu in case of EVA).

 

 

 

 

The scsimgr command

 

# scsimgr -p get_attr all_lun -a hw_path -a device_file -a wwid -a serial_number -a lunid

 

has a problem with "lunid", but a command like this for instance 16 works:

 

# scsimgr  get_attr -C lunpath -I 16 -a lunid

        SCSI ATTRIBUTES FOR LUN PATH : lunpath16

name = lunid
current =0x4002000000000000 (LUN # 2, Flat Space Addressing)
default =
saved =


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!