茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1669371 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_60D_00019.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

小企鵝開談 : [轉貼]在 ESX/ESXi 中配置高級驅動程序模塊參數

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[轉貼]在 ESX/ESXi 中配置高級驅動程序模塊參數
在 ESX/ESXi 中配置高級驅動程序模塊參數 (2078038)
Symptoms
免責聲明:本文為 Configuring advanced driver module parameters in ESX/ESXi (1017588) 的翻譯版本。儘管我們會不斷努力為本文提供最佳翻譯版本,但本地化的內容可能會過時。有關最新內容,請參見英文版本。

Purpose
本文介紹在 ESX/ESXi 主機中為驅動程序模塊指定高級配置選項的步驟。
可以在 ESX/ESXi 中為驅動程序模塊指定高級配置選項。每個驅動程序模塊可用的選項有所差別,但可以通過一個公共界面查看和設置模塊選項。在 VMware 支持、知識庫文章或產品文檔的指導下指定模塊選項。
每個配置選項的作用不在本文的範圍內。
ESX/ESXi 啟動期間加載驅動程序時會驗證選項。如果配置了無效的模塊選項,隨後重新引導時可能才會注意到該選項,並且關聯的驅動程序模塊可能無法成功加載。有關詳細信息,請參見 ESX/ESXi driver module fails to load, logs error "Bad parameter" (1038247)。
警告:對驅動程序模塊選項所做的配置更改將在 ESX/ESXi 主機啟動時生效。開始操作之前,請確保 ESX/ESXi 主機處於維護模式。有關詳細信息,請參見 Rebooting an ESX Server host (1003530)。

Resolution
使用 vSphere PowerCLI、vSphere 命令行界面或 ESX/ESXi 主機的本地控制台執行配置。有關每個界面的詳細信息,請參見:
    vSphere PowerCLI Documentation
    vSphere Command-Line Interface Documentation
    Using Tech Support Mode in ESXi 4.1 (1017910)

模塊選項指定為引號引起的鍵密鑰=值對的列表,以空格分隔。
例如:
"OptionName1=Value1 OptionName2=Value2"

可以使用不帶空格的默認空選項列表(例如 "")指示未指定任何配置。僅包含空格的選項列表(例如 " ")無效。
如果指定新選項,則會覆蓋所有現有選項。要附加一個新選項,但保留所有現有選項,請查看現有選項配置並設置一個新模塊配置,其中包括之前的選項和新選項。

過程概覽
更改驅動程序模塊選項的過程通常遵循以下模式:
將 ESX/ESXi 主機置於維護模式,關閉或遷離所有虛擬機。
使用首選方法更改模塊選項。
如果是 ESX(而非 ESXi),請使用以下命令重新構建 initrd:esxcfg-boot -b
重新引導 ESX/ESXi 主機以使配置更改生效。
驗證正確的操作。
退出維護模式。

使用 vSphere PowerCLI 操作特定模塊的選項
可以使用 PowerCLI 在安裝了 ESX 3.5 Update 2 或更高版本的 ESX/ESXi 主機上為特定模塊設置選項。有關 PowerCLI 安裝和用法的詳細信息,請參見 vSphere PowerCLI Documentation。
例如:
Get-VMHostModule ModuleName

Name Options
------- ----------
ModuleName OptionName1=Value1
Get-VMHostModule ModuleName | Set-VMHostModule -Options "OptionName1=Value1 OptionName2=Value2"

Name Options
------- ----------
ModuleName OptionName1=Value1 OptionName2=Value2


使用 esxcli 操作特定模塊的選項
可以使用 esxcli 在安裝了 ESX 5.0 或更高版本的 ESXi 主機上為特定模塊設置選項。有關用法的詳細信息,請參見 vSphere Command-Line Interface Documentation 中的「Managing Hosts - Managing VMkernel Modules」。
例如:
esxcli [connection_options] system module parameters list --module ModuleName

Name Type Value Description
------- ---- ----- ----------
OptionName1 int Value1 Option Description
OptionName2 int Option Description
esxcli [connection_options] system module parameters set --module ModuleName --parameter-string "OptionName1=Value1 OptionName2=Value2"
esxcli [connection_options] system module parameters list --module ModuleName

Name Type Value Description
------- ---- ----- ----------
OptionName1 int Value1 Option Description
OptionName2 int Value2 Option Description


使用 vSphere 命令行界面操作特定模塊的選項

可以使用 vCLI 在安裝了 ESX 3.5 Update 2 和更高版本的 ESX/ESXi 主機上為特定模塊設置選項。有關 vCLI 安裝和用法的詳細信息,請參見 vSphere Command-Line Interface Documentation。
例如:
vicfg-module.pl [connection_options] --get-options ModuleName
ModuleName options = 'OptionName1=Value1'
vicfg-module.pl [connection_options] --set-options "OptionName1=Value1 OptionName2=Value2" ModuleName


使用服務控制台或技術支持模式界面操作特定模塊的選項
可以使用物理控制台或 SSH 會話在 ESX/ESXi 主機上為特定模塊設置選項。有關詳細信息,請參見 Unable to connect to an ESX host using Secure Shell (SSH) (1003807) 或 Using Tech Support Mode in ESXi 4.1 (1017910)。
例如:
esxcfg-module --get-options ModuleName
ModuleName options = 'OptionName1=Value1'

esxcfg-module --set-options "OptionName1=Value1 OptionName2=Value2" ModuleName

要使用 esxcli 更改 ESXi 5.0 中的參數,請使用以下命令:
esxcli system module parameters set -m ModuleName -p parameter=value


Additional Information
可以使用控制台上提供的工具或使用 esxcli 遠程檢查 ESX/ESXi 主機模塊上可能的配置選項。可以通過 vicfg-module 遠程完成該操作,也可以使用 PowerCLI 完成。
列出 ESX/ESXi 主機上的所有模塊
要列出 ESX/ESXi 主機上當前加載的所有模塊,請執行以下操作:
ESXi 5.0:在 ESXi Shell 或 vCLI 中使用 esxcli:
    esxcli [connection_options] system module list

ESX/ESXi 3.x 和 4.x:在控制台上使用 esxcfg-module:
    esxcfg-module -l

ESX/ESXi 3.x 和 4.x:在 vCLI 中使用 vicfg-module:
    vicfg-module [connection_options] -l


為 ESX/ESXi 主機上的特定模塊列出所有可用選項
要為特定模塊列出所有可用選項,請在控制台上使用 vmkload_mod 命令或遠程使用 esxcli 命令,通過 esxcfg-module、vicfg-module 或 esxcli 命令指定其中一個模塊名稱。有關詳細信息,請參見 Unable to connect to an ESX host using Secure Shell (SSH) (1003807) 或 Using Tech Support Mode in ESXi 4.1 (1017910)。
例如:
ESXi 5.0:在 ESXi Shell 或 vCLI 中使用 esxcli:
    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
    ...

注意:並非所有模塊都具有可配置的選項。參數列表可能為空。

原文出處:在 ESX/ESXi 中配置高级驱动程序模块参数 (2078038) | VMware KB
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[轉貼]ESX/ESXi 驅動程序模塊加載失敗,並報告錯誤: 參數錯誤
ESX/ESXi 驅動程序模塊加載失敗,並報告錯誤: 參數錯誤 (2128135)

Symptoms
免責聲明: 本文為 ESX/ESXi driver module fails to load and reports the error: Bad parameter (1038247) 的翻譯版本。 儘管我們會不斷努力為本文提供最佳翻譯版本,但本地化的內容可能會過時。 有關最新內容,請參見英文版本。

從以前版本的 ESX/ESXi 升級後或應用高級驅動程序模塊選項後,一個或多個驅動程序模塊加載失敗
硬件設備(如網卡或 HBA)無法運行
/var/log/vmkernel 或 /var/log/messages 日誌文件包含類似以下內容的條目:
    'VmkCtl' warning] Loading module ModuleName failed. Unable to load module /usr/lib/vmware/vmkmod/ModuleName.o: Bad parameter

配置文件 /etc/vmware/esx.conf 包含引用的驅動程序的驅動程序模塊選項。 例如:
    /vmkernel/module/ModuleName.o/options = "InvalidParameter=value"
    /vmkernel/module/ModuleName2.o/options = " "

注意: 如果網絡驅動程序未成功加載,則 ESX/ESXi 主機可能無法正常引導。

Resolution
如果為驅動程序模塊指定的選項無效,則會發生此問題。 在 ESX/ESXi 啟動過程中,將對驅動程序模塊選項進行驗證。 如果配置的模塊選項無效,除非進行後續重新引導,否則可能注意不到該情況。
警告: 請勿直接編輯 /etc/vmware/esx.conf 配置文件。
要驗證當前配置的驅動程序模塊選項,請執行以下操作:
將控制台打開到 ESX/ESXi 主機。 有關詳細信息,請參見無法使用 Secure Shell (SSH) 連接到 ESX 主機 (2048344) 或在ESXi 4.1和ESXi 5.x下使用技術支持模式 (2030463)。
運行此命令以查看驅動程序模塊可用的選項列表:
    vmkload_mod -s ModuleName

運行此命令以查看當前配置的驅動程序模塊選項:
    esxcfg-module -g ModuleName

例如:
    ModuleName enabled = X options = 'option1=value1 option2=value2'

查看步驟 2 和 3 中的選項列表,以確定無效的選項名稱。 模塊配置選項的格式為空格分隔的 key=value 對列表。
注意: 僅包含空格的選項列表是無效的。 例如:
 ModuleName enabled = X options = ' '

使用 esxcfg-module 命令,為驅動程序模塊指定正確的選項或刪除所有模塊選項。 要刪除所有模塊選項,只需在該選項中輸入一個空值,顯示為 ""。 例如:
    esxcfg-module --set-options "" ModuleName

注意: 要使更改生效,必須重新引導主機。
有關詳細信息,請參見在 ESX/ESXi 中配置高級驅動程序模塊參數 (2078038)。

原文出處:ESX/ESXi 驱动程序模块加载失败,并报告错误: 参数错误 (2128135) | VMware KB
冷日
(冷日)
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:
ls /proc/scsi:

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:
#esxcfg-boot -b

4.For the preceding changes to take effect, reboot the server as follows:
#reboot



冷日補充:
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.
~ #
前一個主題 | 下一個主題 | 頁首 | | |



Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|