unixthisyear 发表于 2009-12-25 16:42

Solaris连接存储(包含查询WWN的方法)


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

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

lichun_2_4 发表于 2010-03-25 15:28

然后呢?来全套的啊

free4us 发表于 2010-06-13 11:40

:sleepy:

yzkj01 发表于 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   d98   d950020f230000a81b 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   d98   d950020f230000a81b 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:

       okcd /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

qgqceo 发表于 2010-08-09 14:44

Thank you~:em09:
页: [1]
查看完整版本: Solaris连接存储(包含查询WWN的方法)