Operating System - HP-UX
1824976 Members
3750 Online
109678 Solutions
New Discussion юеВ

Re: How to find LUN Masking from ioscan

 
S K Rajavelu
Occasional Contributor

How to find LUN Masking from ioscan

Hi All,

I would like to know some details for the below query:

1. How do you find from ioscan output that in Lun masking as occurred.

2. How to find the domain, area from ioscan output

3. Also, is there any way from HPUX to find out what is the node and wwn port number for any storage attached to the device.

Please let me know any link that describes or teaches.

Thanks in advance to all the HPUX gurus

Thanks,
Raj
5 REPLIES 5
Matti_Kurkela
Honored Contributor

Re: How to find LUN Masking from ioscan

1.) You only see the LUNs configured to be visible for this particular system, not everything contained in the storage device.

(If you saw everything before, there might now be several disk devices in the NO_HW state: you can clean them up with rmsf to keep things tidy.)

2.) These are included in the hardware path. Find the documentation for your HBA in the docs.hp.com website: the instructions for interpreting the hardware path for FibreChannel devices should be in there.

3.) With HP-UX 11.31 this is apparently easy with proper ioscan options; with older HP-UX versions, fcmsutil can do this but the command syntax is not very easy.

Example: if the HBA device name is /dev/td3 and the disk you're interested in is c36t15d3, the command is:

fcmsutil /dev/td3 get remote all < /dev/rdsk/c36t15d3

MK
MK
whiteknight
Honored Contributor

Re: How to find LUN Masking from ioscan

Raj,

If you are using 11iv3, HPUX has more robust in managing Mass Storage stack

#ioscan ├в m lun
Displays the multiple paths to a LUN.


# scsimgr get_attr -D /dev/rdisk/disk49 -a wwid ├в a serial_number
SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk49
name = wwid
current = 0x600805f30008389000000000bd6700af
default =
saved =
name = serial_number
current = P56350D9IOS0KR
default =
saved =

# scsimgr get_attr ├в H 0/2/1/0.0x500805f300083899.0x4011000000000000 -a lunid
SCSI ATTRIBUTES FOR LUN PATH : 0/2/1/0.0x500805f300083899.0x4011000000000000
name = lunid
current =0x4011000000000000 (LUN # 17, Flat Space Addressing)
default =
saved =


Hope this help
WK
Problem never ends, you must know how to fix it
Basheer_2
Trusted Contributor

Re: How to find LUN Masking from ioscan

Hello Rajavelu,
3. Also, is there any way from HPUX to find out what is the node and wwn port number for any storage attached to the device.

This will give you how many fiber channel adapters are installed.
$ /usr/sbin/ioscan -funC fc

This will give you the fc devices
ls /dev/td*

This will give you the WWN#s

/opt/fcms/bin/fcmsutil /dev/td0
/opt/fcms/bin/fcmsutil /dev/td1
skt_skt
Honored Contributor

Re: How to find LUN Masking from ioscan


These can give more information

# fcmsutil /dev/td2
#fcmsuitl /dev/td2 vpd
#fcmsutil /dev/td2 stat
#fcmsutil /dev/td3 stat -s
#fcmsutil /dev/fcd5 get remote all
Rita C Workman
Honored Contributor

Re: How to find LUN Masking from ioscan

If your not a SAN person, then you may just get information that you don't know how to use properly.

The information you get from CLI commands like ioscan is from the O/S viewpoint. So with ioscan you can identify what disk is available to that particular host. But that's all. Similar for HBA.
But SAN's look from their own perspective. So you may notice there are actually two WWN's associated to each HBA. And depending on the card's vendor if they are the same or not; and what the number starts with is also dependant on the vendor. So knowing them, and knowing which WWN to use properly is another.

Would recommend you pick up a good book on SAN technology if that is something your interested in learning more about.

Rgrds,
Rita