PowerStore:ESXi 的主機驗證指令檔

Resumo: 正確設定主機對於最佳 PowerStore 作業至關重要。本文說明主機驗證指令檔,驗證 ESXi 主機是根據最佳實務進行設定。

Este artigo aplica-se a Este artigo não se aplica a Este artigo não está vinculado a nenhum produto específico. Nem todas as versões do produto estão identificadas neste artigo.

Instruções

概觀

如需主機最佳實務的規格,請參閱 E-Lab 主機連線能力指南《VMware ESXi Server Guide》(VMware ESXi 伺服器指南)針對主機組態參數的影響 (穩定性、效能、空間效率) 和嚴重性 (強制、警告或建議) 指定建議值。此主機驗證指令檔會驗證主機是否符合這些最佳實務。
 

注意:主機驗證指令檔不適用於驗證 PowerStore X 節點主機。


驗證指令檔使用 PowerCLI,版本 6.5 及更新版本,這是適用於 Windows 的 VMware Shell。指令檔會在 VMware vCenter 上執行,驗證所有或部分主機的組態。它需要 VMware vCenter 認證,而且不會使用主機的登入資料。


使用案例。

建議在下列情況下使用主機驗證指令檔:

  1. 在軟體更新 (NDU) 之前
  2. 驗證新主機
  3. 故障診斷
  4. 定期執行狀況檢查

程序注意事項

死刑:
此程序是使用在 Windows 上使用 VMware vCenter 執行的 PowerCLI 執行。主控台必須以系統管理員身分執行。vCenter 登入資料必須具備管理員權限。

叢集或主機影響:
指令檔會讀取目前的組態。指令檔不會修改叢集或主機。
非破壞式升級 (NDU) 考慮事項:此程序不會對叢集或主機進行任何變更。

執行持續時間:
每個 ESXi 主機大約需要一 (1) 分鐘完成此工作的指令檔。

從 PowerCLI 執行 ESXi 主機驗證指令檔

  1. 從本文下載 ESX_Configuration_Validation 腳本。 
     套裝名稱 PowerStore_ESXi_Configuration_Validation_1.0.19.0_pkb.zip
     附件中顯示的檔名可能具有不同的後綴。
     指令檔名稱 check_esx_config.ps1
     版本  1.0.19.0
     MD5 總和檢查碼 64c97ce4218c97f03b718e68aa88c120
     SHA256 總和檢查碼 7d065192bc1715dd8c134e99158bfabeb74f8b733c7226c8f781a9fe39a26828

注意:有關包簽名驗證,請參閱標題為“如何驗證包簽名”的可選步驟。

 

  1. 下載 VMware PowerCLI 6.5 版或更新版本。這可能已安裝在您的個人電腦上。如果尚未安裝,請依照以下「下載」一節中的說明下載。
  2. 以系統管理員身分開啟 PowerCLI 主控台。執行此作業的方法之一是使用「以系統管理員身分執行」選項,從「開始」功能表開啟 PowerCLI。或者,PowerCLI 也可以從 PowerShell 主控台執行。
以系統管理員身分執行 VMware PowerCLI 的作業系統選項
  1. 設定 ExecutionPolicy 執行下列命令:
> Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
  1. 將 PowerCLI 組態設為忽略無效憑證 (PowerCLI 10.x 和更高版本)。
> Set-PowerCLIConfiguration -InvalidCertificateAction Ignore 
  1. 叫用 check_esx_config 命令:
> cd ESX
> .\check_esx_config.ps1 [parameters]


支援的參數:

參數 備註
強制 (除非是使用 -version or -help 選項)
-vcenter_server vCenter 伺服器名稱或 IP 位址
-vcenter_user vCenter 使用者名稱
-vcenter_password vCenter 密碼
-esx_host

以逗號分隔的 ESXi 主機名稱/IP 位址或「all」清單

如果 -esx_host all 的指定格式,指令檔則會驗證指定 vCenter 上所有主機的組態。

-logpath

記錄目錄完整路徑。

如果 -logpath 未指定,預設為記錄目錄 (與 ESXi 目錄同層級)。

如果使用者指定了不存在的目錄,腳本會要求確認創建該目錄。
在批次處理模式下,腳本不會確認即可創建目錄,並將目錄已創建添加到日誌中。

-batch 如果未指定參數,腳本不會提示輸入。
-version 列印指令檔版本並退出。
-help 列印說明頁面並退出。


ESXi 主機驗證指令檔的輸出

指令檔會將其輸出列印到 PowerCLI 主控台和記錄檔。名為的輸出目錄 <vCenter_Server>_<date>_<time> 在日誌目錄中創建。

對於每個配置驗證,輸出指示驗證是否正確,如果不是,則指示不正確配置的嚴重性。訊息中的前置詞符合項目的嚴重性:問題、警告或通知、驗證文字和預期值

指令檔所執行動作的所有訊息都會顯示在主控台中。在主控台輸出的最後一節中,所有找到的問題都會依嚴重性和類別加以總結。此外,輸出會儲存在記錄檔中。記錄檔會依各節組織排列,建議可用來瞭解指令檔結果。

下列檔案位於輸出目錄中:

  • all.log - 包含所有輸出(與列印到主控台的內容相同)。
  • error.log - 僅包含錯誤消息或警告以及可疑錯誤。
  • Dell_EMC_EULA.txt - DELL 軟體工具授權合約

error.log 輸出檔案的範例:

***************************************************************************************************
Started processing at [22/07/2024 19:31:52] India Standard Time.
***************************************************************************************************
 
Running script version [1.0.19.0].
 
***************************************************************************************************
 
#########   START VALIDATIONS FOR ESX abc.abc.abc.com   ###########
NOTICE:# 0 PowerStore datastores were found
NOTICE:# Checking VM disks provisioning
NOTICE:# Checking VM SCSI controllers type
#########   FINISHED VALIDATIONS FOR ESX abc.abc.abc.com   ###########
 
 
#########################################################
########### Overview section for host abc.abc.abc.com ############
#########################################################
Warning issues for Configuration setting occurs 2 times
#########################################################
############ Detail section for host abc.abc.abc.com #############
#########################################################
WARNING:# NVMe Qualified Name format is not set. It must be set to 0.
WARNING:# Disk.DiskMaxIOSize is set to 32767 rather than the recommended value of 1024.
 
 
***************************************************************************************************
Problems found: 0 issues (0 instances)
Warnings found: 1 issues (2 instances)
Notices found: 0 issues (0 instances)
***************************************************************************************************
Finished processing at [22/07/2024 19:35:15].
***************************************************************************************************

如何驗證套件簽章

  • 下載以下兩個檔案:
  1. 簽字
檔案

PowerStore_ESXi_Configuration_Validation_1.0.19.0.zip.asc.signed
(附件後綴可能不同)

 大小  659 位元組
 MD5 16acecc8b0fba8ec255b63ccc2403ed8
 SHA256    903d826db7c0af897fd3300069c0271d14c3467df7f55fff211bbbc7c44b1041   
  1. 公鑰 
檔案

gpg_public_key.txt
(附件後綴可能不同)

 大小  1,306 位元組
 MD5 fe97eba75623bd1d5ff307f1fbb1a5ae
 SHA256    de141fc22a35deaa0753006b80a87c54d8b4e8ca47f434be3c61807a4d0b6d1d
  • 將這些檔案移至開發 VM (最好是 Linux,因為在此範例中使用 gpg 已預先安裝在大多數 Linux 系統中):
  • 使用以下方法匯入金鑰: gpg gpg --import gpg_public_key.txt
Expected output gpg: key B16F06CB37196B9C: public key "Dell Technologies Inc. support@dell.com" imported

gpg: Total number processed: 1

gpg:               imported: 1
  • 驗證已簽署套裝,使用 gpg gpg --verify PowerStore_ESXi_Configuration_Validation_1.0.19.0.zip.asc.signed PowerStore_ESXi_Configuration_Validation_1.0.19.0.zip
Expected output gpg: Signature made Thu 04 Jul 2024 07:06:24 AM EDT
 
gpg:                using RSA key EC31223156602232B2EBE7B0B16F06CB37196B9C
 
gpg: Good signature from "Dell Technologies Inc. support@dell.com" [unknown]
 
gpg: WARNING: This key is not certified with a trusted signature!
 
gpg:          There is no indication that the signature belongs to the owner.
 
Primary key fingerprint: EC31 2231 5660 2232 B2EB  E7B0 B16F 06CB 3719 6B9C
  • 將金鑰認證為「受信任」(可選步驟) gpg --edit-key EC31223156602232B2EBE7B0B16F06CB37196B9C
Enter “trust” when gpg prompts, then enter “5” (trust ultimately), then “y” to confirm. Finally, enter “q” to quit the gpg prompt.
 
Expected output à gpg (GnuPG) 2.2.20; Copyright (C) 2020 Free Software Foundation, Inc.
 
This is free software: you are free to change and redistribute it.
 
There is NO WARRANTY, to the extent permitted by law.
 
pub  rsa3072/B16F06CB37196B9C
 
     created: 2024-04-29  expires: 2027-04-29  usage: SCE
 
     trust: unknown       validity: unknown
 
[ unknown] (1). Dell Technologies Inc. support@dell.com
 
 
gpg> trust
 
pub  rsa3072/B16F06CB37196B9C
 
     created: 2024-04-29  expires: 2027-04-29  usage: SCE
 
     trust: unknown       validity: unknown
 
[ unknown] (1). Dell Technologies Inc. support@dell.com
 
 
Please decide how far you trust this user to correctly verify other users' keys
 
(by looking at passports, checking fingerprints from different sources, etc.)
 
 
  1 = I don't know or won't say
 
  2 = I do NOT trust
 
  3 = I trust marginally
 
  4 = I trust fully
 
  5 = I trust ultimately
 
  m = back to the main menu
 
 
Your decision? 5
 
Do you really want to set this key to ultimate trust? (y/N) y
 
 
pub  rsa3072/B16F06CB37196B9C
 
     created: 2024-04-29  expires: 2027-04-29  usage: SCE
 
     trust: ultimate      validity: unknown
 
[ unknown] (1). Dell Technologies Inc. support@dell.com
 
The shown key validity is not necessarily correct
 
unless you restart the program.
 
 
gpg> q
 
  
Rerun the gpg verification now gpg --verify PowerStore_ESXi_Configuration_Validation_1.0.19.0.zip.asc.signed PowerStore_ESXi_Configuration_Validation_1.0.19.0.zip
 
Expected output gpg: Signature made Thu 04 Jul 2024 07:06:24 AM EDT
 
gpg:                using RSA key EC31223156602232B2EBE7B0B16F06CB37196B9C
 
gpg: checking the trustdb
 
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
 
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
 
gpg: next trustdb check due at 2027-04-29
 
gpg: Good signature from "Dell Technologies Inc. support@dell.com" [ultimate]

已知問題

  1. HVS 指令檔提出回收參數的錯誤警告。回收參數的正確值為:
  • 回收優先度使用
  • 回收方法使用優先
[~] esxcli storage vmfs reclaim config get --volume-label VMFS1
 Reclaim Granularity: 1048576 Bytes
 Reclaim Priority: low      <<<<<<<<<<<< priority Low
 Reclaim Method: priority   <<<<<<<<<<<< use priority and not fixed
 Reclaim Bandwidth: 26 MB/s 

下載:

 
注意:您必須先向 VMware 訂閱免費帳戶,才能下載 PowerCLI。或者,也可以在 PowerShell 主控台內下載 PowerCLI。
 
  • 驗證指令檔會附加到本文。從 Dell 支援選取本文左側面板 中的附件
附件在左側面板中的位置

修訂歷史:

  • 1.0.15:
    • 初始版本
  • 1.0.18
    • 通過 PowerCLI 12.5 認證
    • 透過 NVMe 對應的資料存放區現在已可正確處理。
    • 已更新免責聲明,說明多重路徑不會評估 HPP NVMe 路徑原則。 
    • 系統模組會檢查 FC HBA 以評估建議的 NVMe 設定:vmknvme_hostnqn_format=0
    • 將記錄檔位置移至輸出的結尾。 
    • iSCSI VMkernel 已評估為建議的 iSCSI 無操作間隔 5 秒
    • 已移除無關的模組集合
    • 輸出包含遺失的成功測試正面的意見反應。
    • 已解決 config.vpxd.ResourceManager.maxCostPerHost 的驗證問題
    • 已解決驗證預設 NMP 循環制路徑切換頻率的問題 PSP 選項: policy=iops;iops=1
  • 1.0.19
    • 《Dell 主機組態指南》的參考資料已變更為「E-Lab 連線能力指南」。相關的驗證和免責聲明也已更新。 
    • 支援的 ESXi 版本已更新。 

Produtos afetados

PowerStore
Propriedades do artigo
Número do artigo: 000192904
Tipo de artigo: How To
Último modificado: 11 dez. 2025
Versão:  14
Encontre as respostas de outros usuários da Dell para suas perguntas.
Serviços de suporte
Verifique se o dispositivo está coberto pelos serviços de suporte.