Operating System - HP-UX
1824000 Members
4114 Online
109667 Solutions
New Discussion юеВ

How to determine Hard Disk / LUN serial number.

 
Suraj Singh_1
Trusted Contributor

How to determine Hard Disk / LUN serial number.

I need to figure out a way by which i can determine whether a given disk/lun is visible to a HP host through one path or more than one paths.

While determining a solution for this, i need to assume that the HP box does-not have any maltipathing software installed.

Thanks,
Suraj
What we cannot speak about we must pass over in silence.
5 REPLIES 5
Aneesh Mohan
Honored Contributor

Re: How to determine Hard Disk / LUN serial number.


Hi Suraj,


Try to read LVM header of the device files,if the two or more distinct device files give the exactly same information then you can say they are alternative paths.


root@hpeos003[] echo "0x2008?4D" | adb /dev/dsk/c0t1d0

2008: 894960601 1067429315 894960601 1067430042

root@hpeos003[] echo "0x2008?4D" | adb /dev/dsk/c5t1d0

2008: 894960601 1067429315 894960601 1067430042

root@hpeos003[]

If you have autopath installed on your server ,then you can use the below command for getting the exact information about the alternative links

fyi

#autopath discover
#autopath display


Thanks,
Aneesh
Suraj Singh_1
Trusted Contributor

Re: How to determine Hard Disk / LUN serial number.

Thanks for your response Aneesh.

I forgot to mention that the disks/luns may or may not be initialised by LVM / VxVM.

So the solution provided by you might not work for the LUNs which are not initialised by LVM.
What we cannot speak about we must pass over in silence.
john123
Trusted Contributor

Re: How to determine Hard Disk / LUN serial number.

Which storage you are using?
There would be storage specifc commands to find out this (Eg: Sympd, xpinfo, evainfo etc)

Regards
John
sreekanthtm
Trusted Contributor

Re: How to determine Hard Disk / LUN serial number.

Hi,

You can search for LUN ID. But this is storage specific. You can use evaifo ( in case its an EVA Array) xpinfo -i (For XP Array)

Rgds
Sreekanth
Aneesh Mohan
Honored Contributor

Re: How to determine Hard Disk / LUN serial number.