你可以將 Windows Admin Center 部署在故障轉移叢集中,為你的 Windows Admin Center 閘道服務提供高可用性。 所提供的解決方案是主動被動式,只有一個 Windows Admin Center 實例是活躍的。 如果叢集中的某個節點故障,Windows Admin Center 會優雅地切換到另一個節點,讓你能無縫管理環境中的伺服器。
這很重要
由於架構變更,Windows Admin Center 版本 2311 及以上的高可用性部署直接升級至 2410 及更新版本,不被支援。 要升級,你必須先卸載並重新安裝 Windows Admin Center。
Prerequisites
- 來自 Windows Admin Center HA 腳本壓縮檔的高可用性部署腳本。 將包含腳本的 .zip 檔案下載到本地機器,然後根據本文的指引複製部署腳本。
- 一個由兩個或以上節點組成的故障轉移叢集,運行於 Windows Server 2016 或更新版本。 深入了解如何部署容錯移轉叢集。
- 一個叢集共享卷(CSV)用於 Windows Admin Center,用來儲存叢集中所有節點都能存取的持久資料。 10 GB 足以供 CSV 使用。
- 從有效憑證授權機構(CA)取得的憑證指紋,並將私鑰安裝在每個節點上。
Note
該 Deploy-GatewayV2Ha.zip 檔案包含以下腳本:
Deploy-GatewayV2Ha.Deploy.ps1Deploy-GatewayV2Ha.Validate.ps1Deploy-GatewayV2Ha.Inspect.ps1Deploy-GatewayV2Ha.Uninstall.ps1
在故障轉移叢集上安裝 Windows Admin Center
- 將
Deploy-GatewayV2Ha.Deploy.ps1指令碼複製到叢集中的節點。 下載或複製 Windows Admin Center.exe到同一個節點。 - 透過 RDP 連接節點,前往包含腳本的資料夾,並以管理員身份執行腳本,並依以下參數執行
Deploy-GatewayV2Ha.Deploy.ps1:-
-clusterStorage:叢集共享卷的本地路徑,用於儲存Windows Admin Center資料。 -
-clientAccessPoint:選擇一個用來存取Windows Admin Center的名稱。 例如,如果你執行參數為-clientAccessPoint contosoWindowsAdminCenter的腳本,你透過造訪https://contosoWindowsAdminCenter.<domain>.com來存取 Windows Admin Center 服務。 -
-staticAddress: 選用。 叢集一般服務的一或多個靜態位址。 -
-InstallerPath:Windows Admin Center.exe檔案的路徑。 -
-CertificateThumbprint: 每個節點上都有 TLS 憑證的指紋。 -
-generateSslCert: 選用。 如果您不想提供已簽署的憑證,請包含此參數旗標以產生自我簽署的憑證。 自我簽署憑證會在 60 天內到期。 -
-HttpsPort: 選用。 如果您未指定連接埠,閘道服務會部署於連接埠 443 (HTTPS)。 若要使用不同的連接埠,請在此參數中指定 。 如果您使用的是 443 以外的自訂埠,您可以透過造訪https://\<clientAccessPoint\>:<port>來進入 Windows Admin Center。
-
Note
腳 Deploy-GatewayV2Ha.Deploy.ps1 本支援 -WhatIf 與 -Verbose 參數。
這很重要
若要對高可用性安裝執行進一步的生命週期操作,請確保檔案中 Deploy-GatewayV2Ha.zip 的所有腳本都存在於所有節點上。
Example
$parameters = @{
ClusterStorage = "C:\ClusterStorage\Volume1\Gateway"
ClientAccessPoint = gateway-ha
StaticAddress = '10.0.0.50'
InstallerPath = "C:\Installers\WindowsAdminCenter2511.exe"
CertificateThumbprint = "AA11BB22CC33DD44EE55FF66AA77BB88CC99DD00"
}
Deploy-GatewayV2Ha.Deploy @parameters
更新現有的高可用性安裝
使用相同的 Deploy-GatewayV2Ha.Deploy.ps1 指令碼來更新 HA 部署,而不會遺失您的連線資料。
更新至 Windows Admin Center 的新版本
當新版本的 Windows Admin Center 發布時,請再次執行 Deploy-GatewayV2Ha.Deploy.ps1 腳本,並使用在 -InstallerPath 參數中指定的更新後的執行檔:
$parameters = @{
ClusterStorage = "C:\ClusterStorage\Volume1\Gateway"
ClientAccessPoint = gateway-ha
StaticAddress = '10.0.0.50'
InstallerPath = "C:\Installers\WindowsAdminCenter2511new.exe"
CertificateThumbprint = "AA11BB22CC33DD44EE55FF66AA77BB88CC99DD00"
}
Deploy-GatewayV2Ha.Deploy @parameters
你也可以在更新 Windows Admin Center 平台時,使用新的 .exe 檔案來更新憑證。
更新 Windows Admin Center 使用的憑證
你可以隨時使用 -UpdateCertificate 標誌更新 HA 部署 Windows Admin Center 所使用的憑證。
$parameters = @{
UpdateCertificate = $true
ClusterStorage = "C:\ClusterStorage\Volume1\Gateway"
ClientAccessPoint = gateway-ha
CertificateThumbprint = "AA11BB22CC33DD44EE55FF66AA77BB88CC99DD00"
}
Deploy-GatewayV2Ha.Deploy @parameters
請卸載此高可用性部署
要從故障移轉叢集中解除安裝 Windows Admin Center 的 HA 部署,請執行 Deploy-GatewayV2Ha.Uninstall.ps1 腳本。
$parameters = @{
ClusterStorage = "C:\ClusterStorage\Volume1\Gateway"
ClientAccessPoint = gateway-ha
}
Deploy-GatewayV2Ha.Uninstall @parameters
Troubleshooting
記錄會儲存在 CSV 的暫存資料夾中。 例如: C:\ClusterStorage\Volume1\temp 。
如果需要,你可以使用-Mode旗標來通過Diagnostics腳本執行診斷。 以下範例顯示過去 24 小時在叢集上執行診斷資料收集:
$parameters = @{
Mode = Diagnostics
ClusterStorage = "C:\ClusterStorage\Volume1\Gateway"
ClientAccessPoint = gateway-ha
DiagnosticLookbackHours = 24
DiagnosticsOutputPath = "C:\Temp\wac-ha-diag"
}
Deploy-GatewayV2Ha.Inspect @parameters