Case 2

This case is applicable to SUSE11, SUSE12, CentOS6.X, CentOS7.X, RedHat6.X, RedHat7.X, OEL7.X and Ubuntu operating systems.

Collecting HBA Timeout Parameters

  1. After logging in to the device, run the cat /etc/*-release command to obtain the operating system version. If the operating system is SUSE Linux Enterprise Server 11, go to step 2.

    linux:~ # cat /etc/*-release 
     SUSE Linux Enterprise Server 11 (x86_64) 
     VERSION = 11 
     PATCHLEVEL = 3 
     LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"

  2. Run the ls /sys/class/fc_host command to obtain a list of HBA ports.

    ls /sys/class/fc_host 
    host1  host10  host11  host9

  3. Run the cat /sys/class/fc_host/hostX/port_state command to query the port status. X in hostX indicates the HBA port number. Record information about all the ports in Online state.

  4. Run the cat /sys/class/scsi_host/hostX/model*name command to query the model of every HBA port and record the results. X in hostX indicates the HBA port number. Or you can replace hostX with host* to query the models of all HBA ports.

    cat /sys/class/scsi_host/host1/model*name 
    QLE2462 
    linux-mmgn:~ # cat /sys/class/scsi_host/host10/model*name 
    LPe16002B-M6 
    linux-mmgn:~ # cat /sys/class/scsi_host/host11/model*name 
    QLE2462 
    linux-mmgn:~ # cat /sys/class/scsi_host/host9/model*name 
    LPe16002B-M6

  5. Run the cat /sys/class/fc_host/hostX/dev_loss_tmo command to query the timeout setting of every HBA port and record the results. X in hostX indicates the HBA port number. Or you can replace hostX with host* to query the timeout settings of all HBA ports.

  6. Run the cat /sys/class/fc_host/hostX/port_name command to obtain the WWPN of every port when an error occurs. X in hostX indicates the HBA port number.

    cat /sys/class/fc_host/host1/port_name 
    0x2100001b320a3629 
    linux-mmgn:~ # cat /sys/class/fc_host/host10/port_name 
    0x10000090fa92bbe5 
    linux-mmgn:~ # cat /sys/class/fc_host/host11/port_name 
    0x2101001b322a3629 
    linux-mmgn:~ # cat /sys/class/fc_host/host9/port_name 
    0x10000090fa92bbe4

Error When Querying HBA Timeout Settings

If the timeout setting of an HBA does not pass the check, the error information is as follows:

(HBA model:  QLE2462, host ID: host1,WWPN:0x2100001b320a3629)(Timeout:45);
(HBA model:  LPe16002B-M6, host ID: host9,WWPN:0x10000090fa92bbe4)(Timeout:30);
CAUTION:

If the command querying HBA information fails to be executed, an error will be reported and 命令执行失败:执行出错!”is added in the HTML file. Add the error information in the TXT document. Fill in Error in the HBA timeout setting in the Excel. Continue to collect information about other HBAs.

Modifying HBA Timeout Settings

Run the echo X > /sys/class/fc_host/hostY/dev_loss_tmo command to modify the HBA timeout setting, where X indicates the timeout value and Y the FC port number. As shown in the following figure, the timeout parameter is set to 5s.

Verifying the Modification of HBA Timeout Settings

The modification takes effect immediately but will become invalid after a restart. You can collect timeout parameters again for verification.

Recommended Actions

If you have any questions or any other exceptions exist, contact Huawei technical support.


Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.