Saturday, February 4, 2012

5 . Find the HBA details of a Solaris machine.


 mdu-wc-2p.cable.comcast.com:/# fcinfo hba-port


####################################################

root@ sunserver:/root# fcinfo hba-port | grep WWN

root@ sunserver:/root# fcinfo hba-port

root@ sunserver:/root# prtconf -vp | grep -i wwn

root@ sunserver:/root# prtpicl -v | grep wwn

Run the following command to obtain the physical path to the HBA Ports

    root@ sunserver:/root$ luxadm -e port
    /devices/pci@400/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl              CONNECTED
    /devices/pci@400/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0:devctl            NOT CONNECTED


With the physical path obtained from the above command, we can trace the WWN numbers as follows. here I use the physical path to the one that is connected:

    root@ sunserver:/root$ luxadm -e dump_map /devices/pci@400/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl
    Pos  Port_ID Hard_Addr Port WWN         Node WWN         Type
    0    123456  0         1111111111111111 2222222222222222 0×0  (Disk device)
    1    789123  0         1111111111111111 2222222222222222 0×0  (Disk device)
    2    453789  0         2100001b32xxxxxx 2000001b32xxxxxx 0x1f (Unknown Type,Host Bus Adapter

No comments:

Post a Comment