首页 > 硬件 > 查看HBA卡的端口WWN

查看HBA卡的端口WWN

2005年5月5日 2,003 views 发表评论 阅读评论

 查看HBA卡的端口WWN

查看HBA卡的端口WWN
root@xxxbackup # format
Searching for disks…done

 
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>  disk2
/pci@1c,600000/scsi@2/sd@1,0
2. c3t50060E80035BA013d0 <HITACHI-OPEN-V-CM-2113 cyl 105 alt 2 hd 15 sec 128>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,0
3. c3t50060E80035BA013d5 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,5
4. c3t50060E80035BA013d6 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,6
5. c3t50060E80035BA013d7 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,7
6. c3t50060E80035BA013d8 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,8
7. c3t50060E80035BA013d36 <HITACHI-OPEN-V*6-SUN-2113 cyl 65533 alt 2 hd 30 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,24
8. c3t50060E80035BA013d37 <HITACHI-OPEN-V*7-SUN-2113 cyl 65533 alt 2 hd 15 sec 434>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,25
9. c3t50060E80035BA013d38 <HITACHI-OPEN-V*3-SUN-2113 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,26
10. c3t50060E80035BA013d39 <HITACHI-OPEN-V*5-SUN-2114 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,27
11. c3t50060E80035BA013d40 <HITACHI-OPEN-V*6-SUN-2114 cyl 65533 alt 2 hd 30 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,28
12. c3t50060E80035BA013d41 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,29
13. c3t50060E80035BA013d42 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,2a
14. c3t50060E80035BA013d44 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,2c

15. c3t50060E80035BA013d42 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,2a
16. c3t50060E80035BA013d44 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,2c
17. c3t50060E80035BA013d49 <HITACHI-OPEN-V*7-SUN-2114 cyl 65533 alt 2 hd 15 sec 434>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,31

– hit space for more or s to select –
root@mslbackup #
root@mslbackup #
root@mslbackup #
root@mslbackup # luxadm disp /dev/rdsk/c3t50060E80035BA013d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c3t50060E80035BA013d0s2
Vendor:               HITACHI
Product ID:           OPEN-V-CM
Revision:             2114
Serial Num:           04515BA00060
Unformatted capacity: 100.312 MBytes
Write Cache:          Enabled
Read Cache:           Enabled
Minimum prefetch:   0x0
Maximum prefetch:   0x0
Device Type:          Disk device
Path(s):

 

/dev/rdsk/c3t50060E80035BA013d0s2
/devices/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,0:c,raw
LUN path port WWN:          50060e80035ba013
Host controller port WWN:   210000e08b019d9a   #HBA卡(?是150上的hba卡 gary)
Path status:                O.K.

—————–查看其他

luxadm disp /dev/rdsk/c3t50060E80035BA013d5s2

luxadm disp /dev/rdsk/c3t50060E80035BA013d40s2

luxadm disp /dev/rdsk/c3t50060E80035BA013d49s2 同以上

 

root@mslbackup #  luxadm disp /dev/rdsk/c3t20030003BA4E7C51d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c3t20030003BA4E7C51d0s2
Vendor:               SUN
Product ID:           T4
Revision:             0301
Serial Num:           Unsupported
Unformatted capacity: 204800.000 MBytes
Device Type:          Disk device
Path(s):

 

/dev/rdsk/c3t20030003BA4E7C51d0s2
/devices/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w20030003ba4e7c51,0:c,raw
LUN path port WWN:          20030003ba4e7c51
Host controller port WWN:   210000e08b019d9a
Path status:                O.K.

 

 

#查看相關光纖卡(HBA)端口

root@mslbackup # luxadm -e port

 

Found path to 1 HBA ports

 

/devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:devctl                    CONNECTED
root@mslbackup #
root@mslbackup #
#查看HBA卡連接的Switch Port Map
root@mslbackup # luxadm -e dump_map /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:devctl
Pos  Port_ID Hard_Addr Port WWN         Node WWN         Type
0    20000   0         210000e08b0f31b4 200000e08b0f31b4 0x1f (Unknown Type)
1    20100   0         210000e08b0f09b0 200000e08b0f09b0 0x1f (Unknown Type)
2    20200   0         500601603021925e 50060160b021925e 0x0  (Disk device)
3    20300   0         210000e08b016e9b 200000e08b016e9b 0x1f (Unknown Type)
4    20400   0         50060e80035ba011 50060e80035ba011 Failed to get the type.
5    20500   0         20030003ba4e7c51 10000003ba4e7c51 0x0  (Disk device)
6    20600   0         20030003ba13ebf4 10000003ba13ebf4 0x0  (Disk device)
7    20700   0         50060e80035ba013 50060e80035ba013 0x0  (Disk device)
8    20800   0         50060e80035ba012 50060e80035ba012 Failed to get the type.
9    20900   0         50060e80035ba010 50060e80035ba010 Failed to get the type.
10   20a00   0         500104f0007f0039 500104f0007f0038 0x8  (Medium changer device)
11   20b00   0         500104f0007f0043 500104f0007f0042 0x1  (Tape device)
12   20c00   0         210000e08b8357dc 200000e08b8357dc 0x1f (Unknown Type)
13   20e00   0         210000e08b8370dd 200000e08b8370dd 0x1f (Unknown Type)
14   20f00   0         210000e08b83e7dd 200000e08b83e7dd 0x1f (Unknown Type)
15   20d00   0         210000e08b019d9a 200000e08b019d9a 0x1f (Unknown Type,Host Bus Adapter)

 

紫色的210000e08b019d9a對應switch上連接入端口的設備HBA卡的WWN,而node WWN則是switch的name service提供用於內部交換的NS名,並不是所謂的nodeWWN。

 

如Telnet  fiber switch 10.86.0.69

SANBox2 #> show fabric

 

Switch     ID     WWN                     Eth0IPAddress
——     —     —                     ————-
2 (0x2)    fffc02 10:00:00:c0:dd:01:f3:2e 10.86.0.69

 

note: 10:00:00:c0:dd:01:f3:2e 為switch node wwn

 

SANBox2 #> show ns

 

Seq Domain    Port   Port
No  ID        ID     Type COS PortWWN                 NodeWWN
— ——    —— —- — ——-                 ——-
1   2 (0x2)   020000 N    3   21:00:00:e0:8b:0f:31:b4 20:00:00:e0:8b:0f:31:b4
2   2 (0x2)   020100 N    3   21:00:00:e0:8b:0f:09:b0 20:00:00:e0:8b:0f:09:b0
3   2 (0x2)   020200 N    3   50:06:01:60:30:21:92:5e 50:06:01:60:b0:21:92:5e
4   2 (0x2)   020300 N    3   21:00:00:e0:8b:01:6e:9b 20:00:00:e0:8b:01:6e:9b
5   2 (0x2)   020400 N    3   50:06:0e:80:03:5b:a0:11 50:06:0e:80:03:5b:a0:11
6   2 (0x2)   020500 N    3   20:03:00:03:ba:4e:7c:51 10:00:00:03:ba:4e:7c:51
7   2 (0x2)   020600 N    3   20:03:00:03:ba:13:eb:f4 10:00:00:03:ba:13:eb:f4
8   2 (0x2)   020700 N    3   50:06:0e:80:03:5b:a0:13 50:06:0e:80:03:5b:a0:13
9   2 (0x2)   020800 N    3   50:06:0e:80:03:5b:a0:12 50:06:0e:80:03:5b:a0:12
10  2 (0x2)   020900 N    3   50:06:0e:80:03:5b:a0:10 50:06:0e:80:03:5b:a0:10
11  2 (0x2)   020a00 N    3   50:01:04:f0:00:7f:00:39 50:01:04:f0:00:7f:00:38
12  2 (0x2)   020b00 N    3   50:01:04:f0:00:7f:00:43 50:01:04:f0:00:7f:00:42
13  2 (0x2)   020c00 N    3   21:00:00:e0:8b:83:57:dc 20:00:00:e0:8b:83:57:dc
14  2 (0x2)   020d00 N    3   21:00:00:e0:8b:01:9d:9a 20:00:00:e0:8b:01:9d:9a   HBA卡的port wwn
15  2 (0x2)   020e00 N    3   21:00:00:e0:8b:83:70:dd 20:00:00:e0:8b:83:70:dd
16  2 (0x2)   020f00 N    3   21:00:00:e0:8b:83:e7:dd 20:00:00:e0:8b:83:e7:dd

 

 

 

#查找shadowimage slave disk

 

root@mslbackup # cat /etc/horcm0.conf
HORCM_MON
#ip_address        service         poll(10ms)     timeout(10ms)
mslbackup             horcm0         1000              3000

 

HORCM_CMD
#dev_name                dev_name                dev_name
/dev/rdsk/c3t50060E80035BA013d0s2

HORCM_DEV
# dev_group        dev_name        port#          TargetID        LU#      MU#
erp_app            msldb1          CL1-A                0          1
erp_app            msldb2          CL1-A                0          2
erp_app            msldb3          CL1-A                0          3
erp_app            msldb4          CL1-A                0          4
erp_app            msldb5          CL1-A                0          10

 

sfcm               sfcm_data       CL1-B                1          1
sfcm               sfcm_data1      CL1-B                1          5

 

asrs               asrs_data       CL1-B                1          4
asrs               asrs_data1      CL1-B                1          6

 

sfcsys             sfcsys_data     CL1-B                1          3
sfcsys             sfcsys_data1    CL1-B                1          7

HORCM_INST
#dev_group        ip_address      service
erp_app           mslbackup         horcm1
sfcm              mslbackup         horcm1
asrs              mslbackup         horcm1
sfcsys            mslbackup         horcm1
root@mslbackup # pairdisplay -g sfcsys -fd
Group   PairVol(L/R) Device_File    M  ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
sfcsys  sfcsys_data(L)  Unknown        0  23456     9.P-VOL PAIR,23456     266 –
sfcsys  sfcsys_data(R)  c3t50060E80035BA013d38s2  0  23456   266.S-VOL PAIR,—–       9 –
sfcsys  sfcsys_data1(L)  Unknown        0  23456   261.P-VOL PAIR,23456     286 –
sfcsys  sfcsys_data1(R)  c3t50060E80035BA013d42s2  0  23456   286.S-VOL PAIR,—–     261 –

 

 

 

ASRS domain shadowImage slave disk:

 

num pair_name Mount_point 10.86.0.150 10.86.0.142/50
 1  sfcsys_data  sfcsys  c3t50060E80035BA013d38  c4t50060E800000000000005BA00000010Ad0
 2  sfcsys_data1  sfcsys1  c3t50060E80035BA013d42  c4t50060E800000000000005BA00000011Ed0
 3  asrs_data  asrs_data  c3t50060E80035BA013d37  c4t50060E800000000000005BA000000108d0
 4  asrs_data1  asrs_data1  c3t50060E80035BA013d41  c4t50060E800000000000005BA00000011Dd0
         

 

 

0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>  disk2
/pci@1c,600000/scsi@2/sd@1,0
2. c3t50060E80035BA013d0 <HITACHI-OPEN-V-CM-2113 cyl 105 alt 2 hd 15 sec 128>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,0
3. c3t50060E80035BA013d5 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,5
4. c3t50060E80035BA013d6 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,6
5. c3t50060E80035BA013d7 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,7
6. c3t50060E80035BA013d8 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,8
7. c3t50060E80035BA013d15 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,f
8. c3t50060E80035BA013d16 <HITACHI-OPEN-V*5-SUN-2113 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,10
9. c3t50060E80035BA013d36 <HITACHI-OPEN-V*6-SUN-2113 cyl 65533 alt 2 hd 30 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,24
10. c3t50060E80035BA013d37 <HITACHI-OPEN-V*7-SUN-2113 cyl 65533 alt 2 hd 15 sec 434>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,25
11. c3t50060E80035BA013d38 <HITACHI-OPEN-V*3-SUN-2113 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,26
12. c3t50060E80035BA013d39 <HITACHI-OPEN-V*5-SUN-2114 cyl 65533 alt 2 hd 15 sec 310>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,27

13. c3t50060E80035BA013d40 <HITACHI-OPEN-V*6-SUN-2114 cyl 65533 alt 2 hd 30 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,28
14. c3t50060E80035BA013d41 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,29
15. c3t50060E80035BA013d42 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,2a
16. c3t50060E80035BA013d44 <HITACHI-OPEN-V*3-SUN-2114 cyl 65533 alt 2 hd 15 sec 186>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,2c
17. c3t50060E80035BA013d49 <HITACHI-OPEN-V*7-SUN-2114 cyl 65533 alt 2 hd 15 sec 434>
/pci@1d,700000/SUNW,qlc@1/fp@0,0/ssd@w50060e80035ba013,31
 

 

bash-2.05# luxadm -e port

 

Found path to 1 HBA ports

 

/devices/pci@1e,600000/SUNW,qlc@2/fp@0,0:devctl                    CONNECTED

 » 转载保留版权:老陈 » 《查看HBA卡的端口WWN》
 » 如果喜欢可以: 点此订阅本站
分类: 硬件 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.