|
|
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已! |
|
恭喜您是本站第 1729595
位訪客!
登入 | 註冊
|
|
|
|
發表者 |
討論內容 |
冷日 (冷日) |
發表時間:2016/7/18 2:57 |
- Webmaster

- 註冊日: 2008/2/19
- 來自:
- 發表數: 15771
|
- [轉貼]Install QLogic Driver on VMWare ESX
- Install QLogic Driver
Using Console OS You can use the console OS to identify QLogic FC adapters on a VMware ESX system. To identify QLogic FC adapters using console OS: 1.To list the subdirectories, run the following command: 2.To list the QLogic storage adapters present on the system, run the following command:
ls /proc/scsi/qla2300
An example output may be:
# ls /proc/scsi/qla2300/
1 2 3 4 5 6 HbaApiNode
3.To view additional details, run the following command:
cat /proc/scsi/qla2300/<adapter_number>Where<adapter_number>
To verify that the QLogic FC adapter driver is loaded:
1.Log in to the service console as root user.
2.Execute the following command:
#esxcfg-module -l | grep qla2300
Depending on the ESX Server version, the listed module will be one of the following: qla2300_707 on ESX 3.0.x qla2300_707_vmw on ESX 3.5 and later
To configure driver parameters: 1.To list the driver parameters, execute the following command:
#esxcfg-module -g qla2300_707_vmw
2.To set the driver parameters, execute the following command:
#esxcfg-module -s <options> qla2300_707_vmwwhere <options>
For example, the following command sets the maximum device queue depth reported by the QLogic to a value of 32:
#esxcfg-module -s ql2xmaxqdepth=32 qla2300_707_vmw
3.To update the ESX bootstrap image, execute following command: 4.For the preceding changes to take effect, reboot the server as follows:
冷日補充: VMWare ESXi 要更新 Driver 的話,首先要去下載 Driver 檔,大多都是 Zip 檔! 然後可以用以下指令看 Zip 檔的內容:
esxcli software sources vib list --depot=/vmfs/volumes/datastore1/update-from-esxi5.0-5.0_update01.zip
在來利用下列指令看看更新是否需要開進維護模式:
esxcli software sources vib get --depot=/vmfs/volumes/datastore1/update-from-esxi5.0-5.0_update01.zip
要關注的是Maintenance Mode Required:
Maintenance Mode Required: True
如果是 Install 的話,請執行(Zip 檔版本):
esxcli software vib install -d {OFFLINE_BUNDLE}
如果是 Install 已經解壓縮好的 VIB 請執行:
esxcli software vib install -v {VIBFILE}
有一個關鍵,就是上述的 Install 都要給『絕對路徑』!EX:
esxcli software vib install -v /tmp/VMware_bootbank_net-driver.1.1.0-1vmw.0.0.372183.vib
若是 Update 的話:
esxcli software vib update -v {VIBFILE}
esxcli software vib update -d {OFFLINE_BUNDLE}
安裝完成後可以用下列指令檢查:
esxcfg-module --get-options ModuleName
或是直接列出所有模組:
esxcli [connection_options] system module list
更細一點還可以看所有模組的參數:
esxcli [connection_options] system module parameters list --module ModuleName
Name Type Value Description
------- ---- ----- ----------
OptionName1 int Value1 Option Description
OptionName2 int Value2 Option Description
ESX/ESXi 3.x 和 4.x:在控制台上使用 vmkload_mod:
vmkload_mod --showinfo ModuleName
vmkload_mod module information
input file: /usr/lib/vmware/vmkmod/ModuleName
Parameters:
OptionName1: type
Description of the effects of option 1
OptionName2: type
Description of the effects of option 2
...
如果驅動不順利,可以用以下命令查看驅動模組可用的選項列表:
vmkload_mod -s ModuleName
或者使用以下命令以查看當前配置的驅動模組選項:
esxcfg-module -g ModuleName
然後使用 esxcfg-module 命令,可以為驅動模組指定正確的選項。 若須刪除所有模組選項,只需在該選項中輸入一個空值,顯示為 ""。 例如:
esxcfg-module --set-options "" ModuleName
以下是一些額外可以參考的指令:
~ # esxcli software vib list | grep qla2
scsi-qla2xxx 901.k1.1-14vmw.500.0.0.469512 VMware VMwareCertified 2013-12-03
~ # lspci | grep qlogic -i
000:004:00.0 Serial bus controller: QLogic Corp ISP2532-based 8Gb Fibre Channel to PCI Express HBA [vmhba2]
000:033:00.0 Serial bus controller: QLogic Corp ISP2532-based 8Gb Fibre Channel to PCI Express HBA [vmhba3]
~ # cat /proc/scsi/qla2xxx/3
QLogic PCI to Fibre Channel Host Adapter for HPAK344A:
FC Firmware version 5.03.15 (d5), Driver version 901.k1.1-14vmw
Host Device Name vmhba2
BIOS version 3.13
FCODE version 0.00
EFI version 6.15
Flash FW version 5.09.00
ISP: ISP2532
Request Queue = 0x83810000, Response Queue = 0x83851000
Request Queue count = 2048, Response Queue count = 512
Number of response queues for multi-queue operation: 0
Total number of interrupts = 381687
Device queue depth = 0x40
Number of free request entries = 1608
Total number of outstanding commands: 0
Number of mailbox timeouts = 0
Number of ISP aborts = 0
Number of loop resyncs = 1
Host adapter:Loop State = <READY>, flags = 0x1a868
Link speed = <4 Gbps>
Dpc flags = 0x0
Link down Timeout = 008
Port down retry = 005
Login retry count = 008
Execution throttle = 2048
ZIO mode = 0x6, ZIO timer = 1
Commands retried with dropped frame(s) = 0
Product ID = 4953 5020 2532 0002
NPIV Supported : Yes
Max Virtual Ports = 254
SCSI Device Information:
scsi-qla0-adapter-node=50014380266861cf:440029:0;
scsi-qla0-adapter-port=50014380266861ce:440029:0;
FC Target-Port List:
scsi-qla0-target-0=50060e801534bd09:440014:81:Online;
~ # esxcli system settings kernel list -o iovDisableIR
Name Type Description Configured Runtime Default
------------ ---- --------------------------------------- ---------- ------- -------
iovDisableIR Bool Disable Interrrupt Routing in the IOMMU FALSE FALSE FALSE
~ # esxcli system module parameters list -m qla2xxx
Name Type Value Description
-------------------------- ---- ----- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
heap_initial int Initial heap size allocated for the driver.
heap_max int Maximum attainable heap size for the driver.
ql2xallocfwdump int Option to enable allocation of memory for a firmware dump during HBA initialization. Memory allocation requirements vary by ISP type. Default is 1 - allocate memory.
ql2xcmdtimeout int Timeout value in seconds for scsi command, default is 20
ql2xcmdtimermin int Minimum command timeout value. Default is 30 seconds.
ql2xdevdiscgoldfw int Option to enable device discovery with golden firmware Default is 0 - no discovery. 1 - discover device.
ql2xenablemsi int Enables MSI-X/MSI interrupt scheme Default is 1 - enable MSI-X/MSI. 0 - disable MSI-X/MSI.
ql2xenablemsi2422 int Enables MSI interrupt scheme on 2422sDefault is 0 - disable MSI-X/MSI. 1 - enable MSI-X/MSI.
ql2xenablemsi24xx int Enables MSIx/MSI interrupt scheme on 24xx cardsDefault is 0 - disable MSI-X/MSI. 1 - enable MSI-X/MSI.
ql2xexecution_throttle int IOCB exchange count for HBA.Default is 0, set intended value to override Firmware defaults.
ql2xextended_error_logging int Option to enable extended error logging, Default is 0 - no logging. 1 - log errors.
ql2xfdmienable int Enables FDMI registratons Default is 0 - no FDMI. 1 - perfom FDMI.
ql2xfwloadbin int Option to specify location from which to load ISP firmware:
2 -- load firmware via the request_firmware() (hotplug)
interface.
1 -- load firmware from flash.
0 -- use default semantics.
ql2xiidmaenable int Enables iIDMA settings Default is 1 - perform iIDMA. 0 - no iIDMA.
ql2xintrdelaytimer int ZIO: Waiting time for Firmware before it generates an interrupt to the host to notify completion of request.
ql2xioctltimeout int IOCTL timeout value in seconds for pass-thur commands. Default is 66 seconds.
ql2xloginretrycount int Specify an alternate value for the NVRAM login retry count.
ql2xlogintimeout int Login timeout value in seconds.
ql2xmaxqdepth int Maximum queue depth to report for target devices.
ql2xmaxsgs int Maximum scatter/gather entries per request,Default is the Max the OS Supports.
ql2xmqcpuaffinity int Enables CPU affinity settings for the driver Default is 0 for no affinity of request and response IO. Set it to 1 to turn on the cpu affinity.
ql2xoperationmode int Option to disable ZIO mode for ISP24XX: Default is 1, set 0 to disable
ql2xplogiabsentdevice int Option to enable PLOGI to devices that are not present after a Fabric scan. This is needed for several broken switches. Default is 0 - no PLOGI. 1 - perfom PLOGI.
ql2xqfullrampup int Number of seconds to wait to begin to ramp-up the queue depth for a device after a queue-full condition has been detected. Default is 120 seconds.
ql2xqfulltracking int Controls whether the driver tracks queue full status returns and dynamically adjusts a scsi device's queue depth. Default is 1, perform tracking. Set to 0 to disable dynamic tracking and adjustment of queue depth.
ql2xusedefmaxrdreq int
ql2xusedrivernaming int Enables Consistent Device Naming feature Default is 0, set 1 to enable.
qlport_down_retry int Maximum number of command retries to a port that returns a PORT-DOWN status.
usedefmaxrdreq Default is 0 - adjust PCIe Maximum Read Request Size. 1 - use system default.
~ #
|
|
討論串
|