免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8055 | 回复: 4
打印 上一主题 下一主题

Solaris连接存储(包含查询WWN的方法) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-25 16:42 |只看该作者 |倒序浏览

Solaris: 查看HBA卡WWN的方法
01. 使用prtconf命令
$ prtconf -vp | grep -i wwn
  port-wwn:  210000e0.8b9371b8  

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/83758/showart_2130842.html

论坛徽章:
0
2 [报告]
发表于 2010-03-25 15:28 |只看该作者
然后呢?来全套的啊

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:50:28
3 [报告]
发表于 2010-06-13 11:40 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2010-07-12 16:52 |只看该作者
) Use luxadm to display the path:

     # luxadm -e port

Found path to 1 HBA ports

      /devices/pci@4,4000/SUNW,qlc@4/fp@0,0:devctl    CONNECTED

NOTE: If the path does not report CONNECTED, it means that no devices are attached to the HBA. Therefore, the following 'luxadm dump_map' command will not report the WWN for the HBA.

2) Using the path shown in the previous command, use 'luxadm' to report the WWN:

     # luxadm -e dump_map /devices/pci@4,4000/SUNW,qlc@4/fp@0,0:devctl

     Pos AL_PA ID Hard_Addr Port WWN         Node WWN       Type

     0     2   7c    0   210000e08b05b4c1 200000e08b05b4c1 0x1f (Unknown Type)
     1     d9  8     d9  50020f230000a81b 50020f200000a81b 0x0  (Disk device)
     2     1   7d    0   210000e08b052b82 200000e08b052b82 0x1f (Unknown Type,
                                                                 Host Bus Adapter)
) Use luxadm to display the path:

     # luxadm -e port

Found path to 1 HBA ports

      /devices/pci@4,4000/SUNW,qlc@4/fp@0,0:devctl    CONNECTED

NOTE: If the path does not report CONNECTED, it means that no devices are attached to the HBA. Therefore, the following 'luxadm dump_map' command will not report the WWN for the HBA.

2) Using the path shown in the previous command, use 'luxadm' to report the WWN:

     # luxadm -e dump_map /devices/pci@4,4000/SUNW,qlc@4/fp@0,0:devctl

     Pos AL_PA ID Hard_Addr Port WWN         Node WWN       Type

     0     2   7c    0   210000e08b05b4c1 200000e08b05b4c1 0x1f (Unknown Type)
     1     d9  8     d9  50020f230000a81b 50020f200000a81b 0x0  (Disk device)
     2     1   7d    0   210000e08b052b82 200000e08b052b82 0x1f (Unknown Type,
                                                                 Host Bus Adapter)
--------------------------
1) If the system is not at the "ok" prompt, execute the following:

     # init 0

2) Once at the "ok" prompt:

       ok  cd /devices/pci@4,4000/SUNW,qlc@4
       ok  .properties

This is an example of the output. You can see the 'port-wwn' is listed.

       assigned-addresses       81022010 00000000 00002000 00000000 00000100
                                82022014 00000000 00200000 00000000 00002000
                                82022030 00000000 00220000 00000000 00020000
       port-wwn                 21 01 00 e0 8b 27 25 4f
       node-wwn                 20 00 00 e0 8b 27 25 4f
       reg                      00022000 00000000 00000000 00000000 00000000
                                01022010 00000000 00000000 00000000 00000100
                                02022014 00000000 00000000 00000000 00001000
       compatible               pci1077,2200.1077.4083.5
                                pci1077,2200.1077.4083
                                pci1077,4083
                                pci1077,2200.5
                                pci1077,2200
                                pciclass,010000
                                pciclass,0100
       manufacturer             QLGC
       #size-cells              00000000
       #address-cells           00000002
       device_type              scsi-fcp
       name                     SUNW,qlc
       version                  ISP2200 Host Adapter Driver: 1.14.02 05/28/03                                    
       fcode-rom-offset         00000000   
----------------
PRTPICL (get HBA properties, including WWN if "NOT CONNECTED" in 'luxadm -e port')

prtpicl -v -c scsi-fcp (for just Sun QLogic & Sun Emulex) } prtpicl will not show Emulex WWN (6297103)

prtpicl -v -c scsi (for just Sun JNI) } Use 'prtconf -vp' to get Ivory WWN (4981437)

-----------
sol 10

论坛徽章:
0
5 [报告]
发表于 2010-08-09 14:44 |只看该作者
Thank you~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP