啟動及停止 Azure Stack HubStart and stop Azure Stack Hub

遵循本文中的程序,適當地關閉然後重新啟動 Azure Stack Hub 服務。Follow the procedures in this article to properly shut down and restart Azure Stack Hub services. 「停止」 將實際關閉整個 Azure Stack Hub 環境的電源。Stop will physically shut down and power off the entire Azure Stack Hub environment. 「啟動」 會開啟所有基礎結構角色的電源,並在關機之前讓租用戶資源回復為電源狀態。Start powers on all infrastructure roles and returns tenant resources to the power state they were in before shutdown.

停止 Azure Stack HubStop Azure Stack Hub

使用以下步驟來停止或關閉 Azure Stack Hub:Stop or shut down Azure Stack Hub with the following steps:

  1. 針對即將的關機,準備在 Azure Stack Hub 環境的租用戶資源上執行的所有工作負載。Prepare all workloads running on your Azure Stack Hub environment's tenant resources for the upcoming shutdown.

  2. 從可以網路存取 Azure Stack Hub ERCS VM 的機器開啟特殊權限端點工作階段 (PEP)。Open a privileged endpoint session (PEP) from a machine with network access to the Azure Stack Hub ERCS VMs. 如需相關指示,請參閱使用 Azure Stack Hub 中具有特殊權限的端點For instructions, see Using the privileged endpoint in Azure Stack Hub.

  3. 從 PEP 執行:From the PEP, run:

      Stop-AzureStack
    
  4. 等待所有實體 Azure Stack Hub 節點關閉電源。Wait for all physical Azure Stack Hub nodes to power off.

注意

您可以遵循提供 Azure Stack Hub 硬體的原始設備製造商 (OEM) 的指示,以確認實體節點的電源狀態。You can verify the power status of a physical node by following the instructions from the original equipment manufacturer (OEM) who supplied your Azure Stack Hub hardware.

啟動 Azure Stack HubStart Azure Stack Hub

使用以下步驟來啟動 Azure Stack Hub。Start Azure Stack Hub with the following steps. 請遵循這些步驟,而不論 Azure Stack Hub 是如何停止的。Follow these steps regardless of how Azure Stack Hub stopped.

  1. 將您 Azure Stack Hub 環境中每個實體節點的電源開啟。Power on each of the physical nodes in your Azure Stack Hub environment. 遵循提供 Azure Stack Hub 硬體的 OEM 指示,以確認實體節點的電源開啟指示。Verify the power on instructions for the physical nodes by following the instructions from the OEM who supplied the hardware for your Azure Stack Hub.

  2. 等待直到 Azure Stack Hub 基礎結構服務啟動。Wait until the Azure Stack Hub infrastructure services starts. Azure Stack Hub 基礎結構服務完成啟動程序可能需要兩個小時。Azure Stack Hub infrastructure services can require two hours to finish the start process. 您可以使用 Get-ActionStatus Cmdlet 來確認 Azure Stack Hub 的啟動狀態。You can verify the start status of Azure Stack Hub with the Get-ActionStatus cmdlet.

  3. 確定所有您的租用戶資源都已回復為關機之前的狀態。Ensure that all of your tenant resources have returned to the state they were in before shutdown. 在啟動之後,工作負載管理員可能需要重新設定租用戶資源上執行的工作負載。Workloads running on tenant resources may need to be reconfigured after startup by the workload manager.

取得 Azure Stack Hub 的啟動狀態Get the startup status for Azure Stack Hub

使用以下步驟來啟動 Azure Stack Hub 啟動程序:Get the startup for the Azure Stack Hub startup routine with the following steps:

  1. 從可以網路 Azure Stack Hub ERCS VM 的機器開啟特殊權限端點工作階段。Open a privileged endpoint session from a machine with network access to the Azure Stack Hub ERCS VMs.

  2. 從 PEP 執行:From the PEP, run:

      Get-ActionStatus Start-AzureStack
    

針對 Azure Stack Hub 的啟動及關機進行疑難排解Troubleshoot startup and shutdown of Azure Stack Hub

如果開啟 Azure Stack Hub 環境的電源兩小時後基礎結構和租用戶服務未成功啟動,請採取以下步驟。Take the following steps if the infrastructure and tenant services don't successfully start two hours after you power on your Azure Stack Hub environment.

  1. 從可以網路 Azure Stack Hub ERCS VM 的機器開啟特殊權限端點工作階段。Open a privileged endpoint session from a machine with network access to the Azure Stack Hub ERCS VMs.

  2. 請執行:Run:

      Test-AzureStack
    
  3. 檢閱輸出並解決任何健康情況錯誤。Review the output and resolve any health errors. 如需詳細資訊,請參閱執行 Azure Stack Hub 的驗證測試For more information, see Run a validation test of Azure Stack Hub.

  4. 請執行:Run:

      Start-AzureStack
    
  5. 如果執行 Start-AzureStack 的結果為失敗,請連絡 Microsoft 支援服務。If running Start-AzureStack results in a failure, contact Microsoft Support.

後續步驟Next steps

深入了解 Azure Stack Hub 診斷工具Learn more about Azure Stack Hub diagnostic tools