linux hba卡超时时间,如何设置QLogic HBA卡超时参数

查看QLogic HBA卡生效驱动,执行esxcfg-scsidevs -a命令,下图生效的驱动为“qlnativefc”。

[root@localhost:~] esxcfg-scsidevs -a

vmhba0 ata_piix link-n/a sata.vmhba0 (0000:00:1f.2) Intel Corporation ICH10 4 port SATA IDE Controller

vmhba1 ata_piix link-n/a sata.vmhba1 (0000:00:1f.5) Intel Corporation ICH10 2 port SATA IDE Controller

vmhba2 lpfc link-up fc.20000000c9bfe3e6:10000000c9bfe3e6 (0000:05:00.0) Emulex Corporation Emulex LPe12000 8Gb PCIe Fibre Channel Adapter

vmhba3 lpfc link-up fc.20000000c9bfe3e7:10000000c9bfe3e7 (0000:05:00.1) Emulex Corporation Emulex LPe12000 8Gb PCIe Fibre Channel Adapter

vmhba4 mptsas link-n/a sas.500062b000000280 (0000:07:00.0) LSI Logic / Symbios Logic LSI1068E

vmhba5 qlnativefc link-up fc.20000024ff2e780e:21000024ff2e780e (0000:06:00.0) QLogic Corp ISP2432-based 4Gb Fibre Channel to PCI Express HBA

vmhba6 qlnativefc link-up fc.20000024ff2e780f:21000024ff2e780f (0000:06:00.1) QLogic Corp ISP2432-based 4Gb Fibre Channel to PCI Express HBA

vmhba32 ata_piix link-n/a sata.vmhba32 (0000:00:1f.2) Intel Corporation ICH10 4 port SATA IDE Controller

vmhba33 ata_piix link-n/a sata.vmhba33 (0000:00:1f.5) Intel Corporation ICH10 2 port SATA IDE Controller

[root@localhost:~]

查看QLogic HBA驱动“Port down retry”参数的当前值。

ESXi操作系统为6.5和6.7版本,执行/usr/lib/vmware/vmkmgmt_keyval/vmkmgmt_keyval -a命令。[root@localhost:~] /usr/lib/vmware/vmkmgmt_keyval/vmkmgmt_keyval -a

Listing all system keys:

Key Value Instance: vmhba3/Emulex

Listing keys:

Name:adapter

Type:string

value:

lpfc Adapter Page

Emulex LightPulse FC SCSI 10.2.309.8

EMC LPe12002-E 8Gb 2-port PCIe Fibre Channel Adapter on PCI bus 0000:05 device 00 fn 1 port 1 Link Speed: 8000 Gb

BoardNum:1

FW Version: 2.00A5

HW Version: 31004549

ROM Version:5.03a13

SerialNum:VM14949181

Vendor Id:f10010df

SLI Rev: 3

MQ: Unavailable

NPIV Supported: VPIs max 255 VPIs used 0

RPIs max 4096 RPIs used 13 IOCBs inuse 0 IOCB max 9 txq cnt 0 txq max 0 txcmplq 0

XRIs max 4096 FCP 1344

FCP BDEs max 66 DMA buf size 1024

....

Dpc flags = 0x0

Link down Timeout = 045

Port down retry = 010

Login retry count = 010

Execution throttle = 2048

ZIO mode = 0x6, ZIO timer = 1

Commands retried with dropped frame(s) = 0

Product ID = 4953 5020 2432 0003

NPIV Supported : Yes

Max Virtual Ports = 127

....

Host Device Name vmhba6

BIOS version 3.00

FCODE version 3.15

EFI version 2.21

Flash FW version 5.04.01

ISP: ISP2432, Serial# RFD1111M56011

MSI-X enabled

Request Queue = 0x4302cb00a000, Response Queue = 0x4302cb02b000

Request Queue count = 2048, Response Queue count = 512

Number of response queues for CPU affinity operation: 0

Total number of interrupts = 1632347

Device queue depth = 0x40

Number of free request entries = 751

Total number of outstanding commands: 0

Number of mailbox timeouts = 0

Number of ISP aborts = 0

Number of loop resyncs = 59

Host adapter:Loop State = [READY], flags = 0xaa60

Link speed = [4 Gbps]

Dpc flags = 0x0

Link down Timeout = 045

Port down retry = 010

Login retry count = 010

Execution throttle = 2048

ZIO mode = 0x6, ZIO timer = 1

Commands retried with dropped frame(s) = 0

Product ID = 4953 5020 2432 0003

NPIV Supported : Yes

Max Virtual Ports = 127

....

Module Parameters

...

ql2xloadfwbin = 1

ql2xdbwr = 1

ql2xbypass_log_throttle = 0

ql2xt10protmask = 85

ql2xt10enable = 1

ql2xt10guard = 3

ql2xenablehba_err_chk = 2

qlfxdisablewatchdogtimer = 0

qlfxdisablereset = 0

qlfxmaxqdepth = 32

qlfxmaxqueues = 1

qlfxmaxlun = 65535

qlfxtargetreset = 1

qlfxcmdtimeout = 20

qlfxmaxsgs = 0

qlfxmaxxfersize = 0

[root@localhost:~]

修改QLogic HBA驱动“Port down retry”参数的值,建议根据实际环境测试配置参数值大小。例如将参数值修改为1,执行esxcli system module parameters set -p qlport_down_retry=1-mqlnativefc命令。

[root@localhost:~] esxcli system module parameters set -p qlport_down_retry=1 -m qlnativefc

[root@localhost:~]

其中“qlnativefc”就是1中查询的生效驱动名称。

5cb9a727

若只有一张卡,该命令会将该卡的两个端口的参数都改变。

若有多张卡,并且卡的生效驱动名称一样,该命令会将所有卡的端口的参数都改变。

重启ESXi主机。

用2的方式查看重启后的主机的设置是否生效。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值