descubra todos os HBAs usando
fcinfo hba-port
para filtrar o wwid
fcinfo hba-port | awk '/HBA Port WWN/ { print $4 ; } ' | while read wwid
do
echo fcinfo remote-port -sl -p $wwid
fcinfo remote-port -sl -p $wwid
done
que lhe dará qual equipamento está conectado ao seu HBA local.
para configurar o uso da zona de troca Remote Port WWN:
field. (por favor, note que você só pode ver esta informação após o zoneamento)
No meu caso, HBA local e remoto são
## local
HBA Port WWN: 2100001b329ca67b
Node WWN: 2000001b329ca67b
HBA Port WWN: 2101001b32bca67b
Node WWN: 2001001b32bca67b
HBA Port WWN: 2100001b329b4169
Node WWN: 2000001b329b4169
HBA Port WWN: 2101001b32bb4169
Node WWN: 2001001b32bb4169
## disk (HUS)
Remote Port WWN: 50060e80103efe51
Node WWN: 50060e80103efe51
Remote Port WWN: 50060e80103efe59
Node WWN: 50060e80103efe59
## Tape
Remote Port WWN: 500104f000cd769d
Node WWN: 500104f000cd769c
Remote Port WWN: 500104f000cd76a3
Node WWN: 500104f000cd76a2
Remote Port WWN: 500104f000cd768b
Node WWN: 500104f000cd768a
Remote Port WWN: 500104f000cd7691
Node WWN: 500104f000cd7690
## disk
Remote Port WWN: 50060e80103efe50
Node WWN: 50060e80103efe50
Remote Port WWN: 50060e80103efe58
Node WWN: 50060e80103efe58
### tape
Remote Port WWN: 500104f000cd769a
Node WWN: 500104f000cd7699
Remote Port WWN: 500104f000cd76a0
Node WWN: 500104f000cd769f
Remote Port WWN: 500104f000cd7688
Node WWN: 500104f000cd7687
Remote Port WWN: 500104f000cd768e
Node WWN: 500104f000cd768d
observe que a porta e o nó são diferentes, a porta é usada para zoneamento.