Disk Enclosures
1753776 Members
7561 Online
108799 Solutions
New Discussion юеВ

Re: Is there any command to see LUN's info together with HW path and device names?

 
zhaogui
Super Advisor

Is there any command to see LUN's info together with HW path and device names?

I am using VA7400 array. I was wondering is there any command that can see LUN's info together with HW Path and device name "cxtydz"?
armtopology can't tell HW_PATH and LUN's size and ioscan can't tell LUN's number. armdsp can't tell which device name. When I use SAM->disk drives, the info is quite complete except device names. I need a command line which can generate the output similar to SAM's. Anybody has idea?

Thanks in advance,
5 REPLIES 5
Stefan Saliba
Trusted Contributor

Re: Is there any command to see LUN's info together with HW path and device names?

From the commands used I am assuming you have an Autoraid box. well installing STM will give you a whole lot of information about your luns and there sizes on your Autoraid. but if you have the armserver deamon running you should also get a nice gui from sam under the disks section. You should get an option to select the Autoraid and see some stats over there.

as regards hardware path doing an ioscan -fnkC disk should give you all the disk device files you have. Check those which have HP C5447A as description. those are your luns.
now as a rule of thumb the device file has the form cxtydz. in the case of Autoraid luns your cxty's should be the same and only the tz should change.

so assuming you have your autoraid on 8/12 you device files should look c1t1d0 , c1t1d1 , c1t1d2. the c1t1 is always the same and only the dz changes were z is the lun number....

good luck
stefan

Stefan Saliba
Trusted Contributor

Re: Is there any command to see LUN's info together with HW path and device names?

oops you have a VA (I did not see that).. well same rules apply. Use stm and ioscan. Same rule applies for device files. what might not apply is the gui in sam .. i'm not sure..
Sanjay_6
Honored Contributor

Re: Is there any command to see LUN's info together with HW path and device names?

Hi,

Have you tried stm. That is xstm in graphical, cstm in command mode and mstm in menu mode. Run and info and infolog if you are running stm. This will hopefully provide you with the info you are looking for. You should have OnlineDiags installed on your system for STM to run. Check with "swlist" if you have stm.

Hope this helps.

Regds
Aaron Tatone
Frequent Advisor

Re: Is there any command to see LUN's info together with HW path and device names?

and ioscan can't tell LUN's number. armdsp

The ioscan -funCdisk DOES display the LUN number. It's the last 4 numbers - you need to convert from decimal to Base 8 (there's only 8 targets/SCSI address)

disk 26 1/10/0/0.1.16.0.0.1.0 sdisk CLAIMED DEVICE HP A6189A
/dev/dsk/c21t1d0 /dev/rdsk/c21t1d0

For example, this disk (c21t1d0) is octal LUN 0010 - or LUN 9.

disk 41 1/10/0/0.1.16.0.0.3.7 sdisk CLAIMED DEVICE HP A6189A
/dev/dsk/c21t3d7 /dev/rdsk/c21t3d7

This disk, c21t3d7 is octal lun 37 - or LUN 31.

Hope this helps. Let me know if this doesn't help.

Aaron
zhaogui
Super Advisor

Re: Is there any command to see LUN's info together with HW path and device names?

Thank you for your response. I am sorry for the delay in reply.
I believe you havn't got what I want. Basically I can get all this info together at one go with sam but it is quite tedious. I have to manually start SAM-->disks and file systems-->disk devices. I would rather have a script to run and get all this info and save the output into a file. Here is a sample or you may check the attachment.

Hardware Number Volume Total
Path of Paths Use Group Mbytes Description
0/0/2/0.6.0 1 LVM vg00 34732 SEAGATE ST336704LC
0/0/2/1.6.0 1 LVM vg00 34732 SEAGATE ST336704LC
0/4/0/0.1.20.0 4 -- -- -- HP SureStore Virtual Array Controller
0/4/0/0.1.20.0.0.0.0 4 Unused -- 10 HP SureStore Virtual Array 7405 LUN 0
0/4/0/0.1.20.0.0.10.1 4 LVM vgprz27 25 HP SureStore Virtual Array 7405 LUN 81
0/4/0/0.1.20.0.0.10.3 4 LVM vgprz17 25 HP SureStore Virtual Array 7405 LUN 83
0/4/0/0.1.20.0.0.10.5 4 LVM vgprz12 25 HP SureStore Virtual Array 7405 LUN 85
0/4/0/0.1.20.0.0.10.7 4 LVM vgprz22 25 HP SureStore Virtual Array 7405 LUN 87
0/4/0/0.1.20.0.0.11.1 4 LVM vgprz29 25 HP SureStore Virtual Array 7405 LUN 89
0/4/0/0.1.20.0.0.11.3 4 LVM vgprz19 25 HP SureStore Virtual Array 7405 LUN 91