要确保正确安装 VMware ESXi,必须为 Oracle Storage 12 Gb/s SAS PCIe RAID 内部 HBA(host bus adapter,主机总线适配器)安装 megaraid_sas 驱动程序。然后,必须禁用默认驱动程序。要更改 HBA 驱动程序,请参见以下过程。
例如,要复位服务器,请执行以下操作之一:
在本地服务器中,按服务器前面板上的电源按钮(大约 1 秒钟)关闭服务器电源,然后再次按该电源按钮打开服务器电源。
在 Oracle ILOM Web 界面中,选择 "Host Management" -> "Power Control",然后从 "Select Action" 列表框中选择 "Reset"。
在 Oracle ILOM 命令行中,键入 reset /System。
此时将显示 "System Customization" 屏幕。
此时将显示 "Troubleshooting Mode Options" 屏幕。
ESXi Shell
SSH
指令将因 SSH 客户机而异。通常,您将需要提供服务器的 IP 地址或主机名以及用户凭证。
此时将显示 VMware ESXi 提示符。
[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 #
[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 . . .
[johnsmith@hostname ESXi55]$ vim-cmd /hostsvc/maintenance_mode_enter
[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:
要重新引导主机,可以发出 reboot 命令。
[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 . . .
[johnsmith@hostname ESXi55]$ ~ # esxcli system module set --enabled=false --module=lsi_mr3
[johnsmith@hostname ESXi55]$ ~ # vim-cmd hostsvc/maintenance_mode_exit
要重新引导主机,可以发出 reboot 命令。
[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 . . .