- Get info about the HBA
The output below indicates that I have 2 HBAs and both of them are online.
root@dat01:~# fcinfo hba-port | ggrep "HBA Port" root@dat01:~# fcinfo hba-port | ggrep "State"
HBA Port WWN: 21000024ff30b222
HBA Port WWN: 21000024ff30b223
- What remote device is the HBA connected to. Does it have SCSI target.
The output below indicates that both the HBAs have SCSI targets.
Active FC4 Types:
SCSI Target: yes
Port Symbolic Name:
Node WWN: 20060080e5249ad6
root@dat01:~# fcinfo remote-port -p 21000024ff30b223
Remote Port WWN: 20370080e5249ad6
Active FC4 Types:
SCSI Target: yes
Port Symbolic Name:
Node WWN: 20060080e5249ad6
The first HBA is connected to remote device 20360080e5249ad6 and the second HBA is connected to remote device 20370080e5249ad6
- Get detailed info about the SCSI targets (Optional)
Detailed info about the SCSI targets can be obtained by following 2 commands:
- fcinfo remote-port -sl -p 21000024ff30b223
- fcinfo lu -v
- Get WWNs from the storage
Storage has following WWN:
Node WWN: 20:06:00:80:E5:24:9A:D6
Array WWN: 60:08:0E:50:00:24:A7:7C:00:00:00:00:4E:CC:74:CF
It has two controllers:
Both the controllers have 4 ports out of which only 2 ports are enabled:
Both the controllers have 4 ports out of which only 2 ports are enabled:
Controller A: port 1:
Controller A: port 2
Controller B: Port 1
Controller B: Port 2
Note that the node WWN for all ports is identical: 20060080E5249AD6 (which is the node WWN of the storage)
20:36:00:80:E5:24:9A:D6
| |
20:06:00:80:E5:24:9A:D6
|
Controller A: port 2
20:46:00:80:E5:24:9A:D6
| |
20:06:00:80:E5:24:9A:D6
|
Controller B: Port 1
20:37:00:80:E5:24:9A:D6
| |
20:06:00:80:E5:24:9A:D6
|
Controller B: Port 2
20:47:00:80:E5:24:9A:D6
| |
20:06:00:80:E5:24:9A:D6
|
Note that the node WWN for all ports is identical: 20060080E5249AD6 (which is the node WWN of the storage)
- Find out which controller is connected to which HBA
Combining output from storage and fcinfo remote-port, we conclude that controller A port 1 is connected to first HBA and Controller B port 1 is connected to second HBA
- Additional info:
http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/
http://docs.oracle.com/cd/E19082-01/819-2240/fcinfo-1m/index.html
http://blogs.warwick.ac.uk/peggleton/entry/disks_cfgadm_fcinfo/
State: online
State: online
Thanks for your great job. i am confused in configuring storage and represent it to host.
ReplyDeleteSuppose that i have 2 hosts each one have 2 HBA single port and one storage with 2 controllers each controllers have 2 pors active . and i need to map one volume created by Storage CAM to the 2 hosts ( share this volume to the 2 hosts ),,, How can i do this ? Would you please show me this by example command ??? and can i map this volume to the 2 controllers ??
I realy appreciate your kindly help .
Basem
basem_sh2002@yahoo.com
This can be done by having a switch between the servers and host such that a HBA port from host is connected to controller 1 of storage via switch and HBA port of another host is also connected to controller 1 of storage via switch
ReplyDelete