Go to main content
Oracle® Server X5-2L 安装指南(适用于 VMware ESXi)

退出打印视图

更新时间: 2014 年 10 月
 
 

启用 megaraid_sas 驱动程序

要确保正确安装 VMware ESXi,必须为 Oracle Storage 12 Gb/s SAS PCIe RAID 内部 HBA(host bus adapter,主机总线适配器)安装 megaraid_sas 驱动程序。然后,必须禁用默认驱动程序。要更改 HBA 驱动程序,请参见以下过程。

  1. 复位服务器或打开服务器电源以访问 VMware ESXi 直接控制台。

    例如,要复位服务器,请执行以下操作之一:

    • 在本地服务器中,按服务器前面板上的电源按钮(大约 1 秒钟)关闭服务器电源,然后再次按该电源按钮打开服务器电源。

    • 在 Oracle ILOM Web 界面中,选择 "Host Management" -> "Power Control",然后从 "Select Action" 列表框中选择 "Reset"。

    • 在 Oracle ILOM 命令行中,键入 reset /System

  2. 在直接控制台屏幕中,按 F2 键选择 "Customize System/View Logs"。
  3. 登录到 VMware ESXi Server。

    此时将显示 "System Customization" 屏幕。

  4. 在 "System Customization" 屏幕中,选择 "Troubleshooting Options"。

    此时将显示 "Troubleshooting Mode Options" 屏幕。

  5. 在 "Troubleshooting Mode Options" 屏幕中,启用以下项:
    • ESXi Shell

    • SSH

  6. 在能够通过网络访问 VMware ESXi 管理端口的系统上,使用 SSH 客户机连接到服务器。

    指令将因 SSH 客户机而异。通常,您将需要提供服务器的 IP 地址或主机名以及用户凭证。

    此时将显示 VMware ESXi 提示符。

  7. 从 VMware Web 站点下载 LSI MegaRAID SAS 适配器的 VMware ESXi 5.5 驱动程序 zip 文件:

    https://my.vmware.com/web/vmware/details?downloadGroup=DT-ESXI55-LSI-SAS-MEGARAID_SAS-660355001VMW&productId=353

  8. 提取 megaraid_sas-6.603.55.00-1712343.zip 文件。
  9. megaraid_sas-6.603.55.00-offline_bundle-1712343.zip 文件复制到 ESXi 5.5 服务器上的 vmfs/volumes/cert_datastore_UEFI/ 目录:
    [johnsmith@hostname ESXi55]$ ~ # cd vmfs/volumes/cert_datastore_UEFI/
    /vmfs/volumes/53dfb90c-df6f16cf-7366-0010e057792c # scp  root@192.168.1.30:/root/megaraid_sas-6.603.55.00-offline_bundle-1712343.zip
    .root@192.168.1.30's password: password
    megaraid_sas-6.603.55.00-offline_bundle-1712343.zip 100%   57KB   56.9KB/s   00:00    
    /vmfs/volumes/53dfb90c-df6f16cf-7366-0010e057792c #
    
  10. 发出以下命令来检验 Oracle Storage 12 Gb/s SAS PCIe RAID 内部 HBA 是否正在使用 lsi_mr3 本机模式驱动程序:
    [johnsmith@hostname ESXi55]$ ~ # esxcfg-scsidevs -a 
    vmhba38 ahci link-n/a sata.vmhba38 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller 
    vmhba39 ahci link-n/a sata.vmhba39 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller 
    vmhba0 ahci link-n/a sata.vmhba0 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller 
    vmhba1 lsi_mr3 link-n/a pscsi.vmhba1 (0:3:0.0) LSI MegaRAID SAS Invader Controller 
    vmhba40 ahci link-n/a sata.vmhba40 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller 
    .
    .
    .
  11. 使主机进入维护模式:
    [johnsmith@hostname ESXi55]$ vim-cmd /hostsvc/maintenance_mode_enter
  12. megaraid_sas-6.603.55.00-offline_bundle-1712343.zip 文件安装到 /vmfs/volumes/cert_datastore_UEFI/ 目录:
    [johnsmith@hostname ESXi55]$ ~ # esxcli software vib install -d "/vmfs/volumes/cert_datastore_UEFI/megaraid_sas-6.603.55.00-offline_bundle-1712343.zip"
    Installation Result 
    Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
    Reboot Required: true 
    VIBs Installed: LSI_bootbank_scsi-megaraid-sas_6.603.53.00-1OEM.550.0.0.1331820
    VIBs Removed: VMware_bootbank_scsi-megaraid-sas_5.34-9vmw.550.0.0.1331820 
    VIBs Skipped:
    
  13. 重新引导主机,然后使用 SSH 客户机重新连接到它。

    要重新引导主机,可以发出 reboot 命令。

  14. 发出以下命令检验是否存在 LSI scsi-megaraid-sas 安装包。
    [johnsmith@hostname ESXi55]$ ~ # esxcli software vib list
    Name                    Version                            Vendor  Acceptance Level   Install Date
    ---------------------------------------------------------------------------------------------------
    scsi-megaraid-sas      6.603.53.00-1OEM.550.0.0.1331820    LSI     VMwareCertified    2014-04-23
    ata-pata-amd           0.3.10-3vmw.550.0.0.1331820         VMware  VMwareCertified    2014-04-21 
    ata-pata-atiixp        0.4.6-4vmw.550.0.0.1331820          VMware  VMwareCertified    2014-04-21 
    .
    .
    .
    
  15. 禁用 lsi_mr3 本机模式驱动程序:
    [johnsmith@hostname ESXi55]$ ~ # esxcli system module set --enabled=false --module=lsi_mr3
  16. 将服务器恢复到正常运行模式:
    [johnsmith@hostname ESXi55]$ ~ # vim-cmd hostsvc/maintenance_mode_exit
  17. 重新引导主机,然后使用 SSH 客户机重新连接到它。

    要重新引导主机,可以发出 reboot 命令。

  18. 发出以下命令来检验 Oracle Storage 12 Gb/s SAS PCIe RAID 内部 HBA 是否正在使用 megaraid-sas 驱动程序:
    [johnsmith@hostname ESXi55]$ ~ # esxcfg-scsidevs -a
    vmhba38 ahci link-n/a sata.vmhba38 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller
    vmhba39 ahci link-n/a sata.vmhba39 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller
    vmhba0 ahci link-n/a sata.vmhba0 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller
    vmhba1 megaraid_sas link-n/a unknown.vmhba1 (0:3:0.0) LSI / Symbios Logic MegaRAID SAS Invader Controller
    vmhba40 ahci link-n/a sata.vmhba40 (0:0:31.2) Intel Corporation Wellsburg AHCI Controller
    .
    .
    .