How to Verify HBA Status on Oracle Solaris SPARC Servers

Na semana passada, precisei monitorar e identificar problemas nas HBAS de duas sparcs M7. Segue procedimento que realizei.

1 – Verificar status, portas em uso e speed das portas FC das M7:

fcinfo hba-port | nawk '
/HBA Port WWN/ { wwn=$4 }
/State:/       { state=$2 }
/Current Speed/ { 
    speed=$3; 
    printf "Porta: %s | Status: %-8s | Vel: %s\n", wwn, state, speed 
}'

Porta: 2100000e1ef1  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef2  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef3  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef4  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef5  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef6  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef7  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef8  | Status: online   | Vel: 16Gb
Porta: 2100000e1ef9  | Status: offline  | Vel: not
Porta: 2100000e1ef10 | Status: offline  | Vel: not
Porta: 2100000e1ef11 | Status: offline  | Vel: not
Porta: 2100000e1ef12 | Status: offline  | Vel: not

2 – Verificar portas, status, speed usada atualmente e speed suportadas:

fcinfo hba-port | nawk '
/HBA Port WWN/ {
    if (wwn) {
        printf "Porta: %s | Status: %-8s | Vel: %-4s | Sup: %s\n", wwn, state, speed, supp
    }
    wwn=$4; speed="--"; supp="--"; state="--"
}
/State:/            { state=$2 }
/Current Speed:/    { speed=$3 }
/Supported Speeds:/ { 
    sub(/.*Supported Speeds: /, ""); 
    supp=$0 
}
END {
    if (wwn) {
        printf "Porta: %s | Status: %-8s | Vel: %-4s | Sup: %s\n", wwn, state, speed, supp
    }
}'



Porta: 2100000e1ef65c60 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65c61 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65bc0 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65bc1 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65c10 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65c11 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65940 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65941 | Status: online   | Vel: 16Gb | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65bd0 | Status: offline  | Vel: not  | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65bd1 | Status: offline  | Vel: not  | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65910 | Status: offline  | Vel: not  | Sup: 4Gb 8Gb 16Gb
Porta: 2100000e1ef65911 | Status: offline  | Vel: not  | Sup: 4Gb 8Gb 16Gb

3 – verificar contador de erros nas portas FC das M7:

fcinfo hba-port -l | egrep "HBA Port WWN|Link Failure|Loss of|Invalid|CRC"
HBA Port WWN: 2100000e1ef652a112
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef652a032
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef65b2032
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef65b2132
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef656e032
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef656e45
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef65b142
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef65b19
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef65c708
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef65c715
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef658103
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
HBA Port WWN: 2100000e1ef658113
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0

4 – Verificar informações de uma porta FC especifica:

root@m7-1-control:~# fcinfo hba-port 2100000e1e
HBA Port WWN: 2100000e1e
        Port Mode: Initiator
        Port ID: a1800
        OS Device Name: /dev/cfg/c13
        Manufacturer: QLogic Corp.
        Model: 7023303
        Firmware Version: 8.05.00
        FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
        Serial Number: 463916A+1716348225
        Driver Name: qlc
        Driver Version: 170201-5.06b
        Type: N-port
        State: online
        Supported Speeds: 4Gb 8Gb 16Gb
        Current Speed: 16Gb
        Node WWN: 2000000e1e
        Max NPIV Ports: 253
        NPIV port list:
search previous next tag category expand menu location phone mail time cart zoom edit close