Operating System - HP-UX
1752808 Members
5523 Online
108789 Solutions
New Discussion юеВ

Re: WWID of disk devices on HP-UX

 
Michael Bornstein_1
New Member

WWID of disk devices on HP-UX

Does anyone know how to find (show) the WWID of a disk device with HP-UX? I can't seem to find this information.
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: WWID of disk devices on HP-UX

Hi,

It would be WWN (World Wide Name) of the controller corresponding to fiber channel.

You can find it using 'fcmsutil' command. Depending on the type of the card|driver, you will see the device files /dev/fcms* or /dev/td*. Or use the command

ioscan -fnkC fc

and it should display all the fiber channel interfaces with the corresponding device files. Find the device file based on the path of the controller and run fcmsutil on it. For ex., td0

fcmsutil /dev/td0

The number associated with "Port World Wide Name" is what you are looking for, for that controller.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Bornstein_1
New Member

Re: WWID of disk devices on HP-UX

This only shows the WWID of the HBA. What I'm looking for is the WWIDs of the disks connected to the HBA.
Jeff Schussele
Honored Contributor

Re: WWID of disk devices on HP-UX

Hi,

Well, if your fibre channel is switched then all you can get is the WWN of the fibre channel adapter & the WWN of the switch port it logs into.
But if it's a direct attached unit to like an FC10 JBOD enclosure then all the drives would have N-Port-IDs & they could be obtained with:

fcmsutil /dev/tdX get all

use the appropriate instance number for X

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: WWID of disk devices on HP-UX

You can also try

fcmsutil /dev/tdX -k ns_query_ports

And that first command should have been

fcmsutil /dev/tdX get remote all


HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Bornstein_1
New Member

Re: WWID of disk devices on HP-UX

Those commands have a lot of output, but how to I match WWIDs with actual disks?

szabolcsk
New Member

Re: WWID of disk devices on HP-UX

Hello,

check this ioscan command below.

 

# echo $(uname) $(uname -r)
HP-UX B.11.31

 

# ioscan -P wwid -C disk

Class I H/W Path wwid
===============================
disk 2 64000/0xfa00/0x0 0x5000cca00ab23ce0
disk 3 64000/0xfe00/0x1 0x5000cca00ab23d6c
disk 17 64000/0xfa00/0xb 0x60060e8014224f00000224f000000f05

..

 

(disk n = /dev/rdisk/diskn)

 

Detailed description in iscan(1M) manual.

 

HTH