快速入門:建立 Azure Stack HCI 叢集並向 Azure 註冊Quickstart: Create an Azure Stack HCI cluster and register it with Azure

適用于: Azure Stack HCI、版本20H2Applies to: Azure Stack HCI, version 20H2

在本快速入門中,您將瞭解如何部署兩部伺服器的單一網站 Azure Stack HCI 叢集,並向 Azure 註冊。In this quickstart, you'll learn how to deploy a two-server, single-site Azure Stack HCI cluster and register it with Azure. 針對多網站部署,請參閱延伸的叢集 總覽For multisite deployments, see Stretched clusters overview.

開始之前Before you start

在建立叢集之前,請執行下列動作:Before creating a cluster, do the following:

  • 透過您慣用的 Microsoft 硬體合作夥伴(已預先安裝 Azure Stack HCI 作業系統),從 Azure Stack HCI 目錄 購買兩部伺服器。Purchase two servers from the Azure Stack HCI Catalog through your preferred Microsoft hardware partner with the Azure Stack HCI operating system pre-installed. 請檢查 系統需求 ,確定您所選取的硬體將會支援您打算在叢集中執行的工作負載。Review the system requirements to make sure the hardware you select will support the workloads you plan to run on the cluster. 我們建議使用具有高速網路介面卡的系統,以使用 iWARP 進行簡單的設定。We recommend using a system with high-speed network adapters that use iWARP for simple configuration.
  • 在每部伺服器上建立屬於本機 Administrators 群組成員的使用者帳戶。Create a user account that’s a member of the local Administrators group on each server.
  • 取得 Azure 訂用帳戶(如果您還沒有的話)。Get an Azure subscription, if you don't already have one.
  • 在管理電腦上安裝 Windows Admin Center ,並向 Azure 註冊 Windows Admin CenterInstall Windows Admin Center on a management PC and register Windows Admin Center with Azure. 請注意,您的管理電腦必須加入您要在其中建立叢集的相同 Active Directory 網域,或是完全信任的網域。Note that your management computer must be joined to the same Active Directory domain in which you'll create the cluster, or a fully trusted domain.
  • 記下您的部署的伺服器名稱、功能變數名稱、IP 位址和 VLAN 識別碼。Take note of the server names, domain names, IP addresses, and VLAN ID for your deployment.

建立叢集Create the cluster

遵循下列步驟來建立簡單的雙節點單一網站叢集。Follow these steps to create a simple two-node, single-site cluster. 如需更多詳細資料或建立延伸叢集,請參閱 使用 Windows Admin Center 建立 Azure Stack HCI叢集。For more details or to create a stretched cluster, see Create an Azure Stack HCI cluster using Windows Admin Center.

  1. 在 Windows Admin Center 中,按一下 [ 所有連接] 底下的 [ 新增]。In Windows Admin Center, under All connections, click Add.
  2. 在 [ 新增資源 ] 面板的 [ Windows Server 叢集] 下,選取 [ 建立新 的]。In the Add resources panel, under Windows Server cluster, select Create new.
  3. [選擇叢集類型] 下,選取 [ Azure Stack HCI]。Under Choose cluster type, select Azure Stack HCI.
  4. 在 [ 選取伺服器位置] 下,選取 一個網站中的 [所有伺服器]。Under Select server locations, select All servers in one site.
  5. 按一下頁面底部的 [新增] 。Click Create. 您現在會看到 [建立叢集] wizard。You will now see the Create Cluster wizard. 如果 認證安全性服務提供者 (CredSSP) 快顯視窗,請選取 [是] 以暫時啟用它。If the Credential Security Service Provider (CredSSP) pop-up appears, select Yes to temporarily enable it.

[建立叢集] wizard 有五個區段,各有幾個步驟。The Create Cluster wizard has five sections, each with several steps.

  1. 開始使用。Get started. 在本節中,您將檢查必要條件、新增伺服器、加入網域、安裝所需的功能和更新,然後重新開機伺服器。In this section, you'll check the prerequisites, add servers, join a domain, install required features and updates, and restart the servers.
  2. 網路功能。Networking. Wizard 的這個區段會確認是否已啟用正確的網路介面卡,並停用任何您未使用的網路介面卡。This section of the wizard verifies that the correct networking adapters are enabled and disables any you're not using. 您將選取管理介面卡、設定虛擬交換器設定,並提供 IP 位址來定義您的網路。You'll select management adapters, set up a virtual switch configuration, and define your network by supplying IP addresses.
  3. 聚 類。Clustering. 本節會驗證您的伺服器是否具有一致的設定,而且適用于叢集,並建立實際的叢集。This section validates that your servers have a consistent configuration and are suitable for clustering, and creates the actual cluster.
  4. 存儲。Storage. 接下來,您將清理並檢查磁片磁碟機、驗證您的存放裝置,並啟用儲存空間直接存取。Next, you'll clean and check drives, validate your storage, and enable Storage Spaces Direct.
  5. SDN.SDN. 您可以略過第5節,因為我們不會針對此叢集使用軟體定義的網路 (SDN) 。You can skip Section 5 because we won't be using Software Defined Networking (SDN) for this cluster.

如果您已在嚮導中啟用 CredSSP 通訊協定,您會想要在每一部伺服器上停用它,以供安全性之用。If you enabled the CredSSP protocol in the wizard, you'll want to disable it on each server for security purposes.

  1. 在 Windows Admin Center 的 [ 所有 連線] 下,選取您剛才建立的叢集。In Windows Admin Center, under All connections, select the cluster you just created.
  2. 在 [工具] 底下,選取 [伺服器]。Under Tools, select Servers.
  3. 在右窗格中,選取叢集中的第一部伺服器。In the right pane, select the first server in the cluster.
  4. [總覽] 底下,選取 [ 停用 CredSSP]。Under Overview, select Disable CredSSP. 您會看到頂端的 red CREDSSP 已啟用 橫幅消失。You will see that the red CredSSP ENABLED banner at the top disappears.
  5. 針對叢集中的第二部伺服器重複步驟3和4。Repeat steps 3 and 4 for the second server in the cluster.

設定叢集見證Set up a cluster witness

您必須設定見證資源,如此一來,如果叢集中的其中一部伺服器離線,就不會造成另一個節點變成無法使用。Setting up a witness resource is required so that if one of the servers in the cluster goes offline, it does not cause the other node to become unavailable as well. 在本快速入門中,我們將使用位於另一部伺服器上的 SMB 檔案共用做為見證。For this quickstart, we'll use an SMB file share located on another server as a witness. 如果叢集中的所有伺服器節點都有可靠的網際網路連線,您可能會想要使用 Azure 雲端見證。You may prefer to use an Azure cloud witness, provided all server nodes in the cluster have a reliable internet connection. 如需見證選項的詳細資訊,請參閱 設定叢集見證For more information about witness options, see Set up a cluster witness.

  1. 在 Windows Admin Center 中,從頂端的下拉式箭號選取 [叢集 管理員 ]。In Windows Admin Center, select Cluster Manager from the top drop-down arrow.
  2. 在 [叢集連線] 底下,選取叢集。Under Cluster connections, select the cluster.
  3. 在 [ 工具] 底下,選取 [ 設定]。Under Tools, select Settings.
  4. 選取右窗格中的 [ 見證]。In the right pane, select Witness.
  5. 針對 [ 見證類型],選取 [檔案 共用見證]。For Witness type, select File share witness.
  6. 指定檔案共用路徑(例如 \ servername. com\Witness $ ),並視需要提供認證。Specify a file share path such as \servername.domain.com\Witness$ and supply credentials if needed.
  7. 按一下 [儲存]Click Save.

向 Azure 註冊Register with Azure

Azure Stack HCI 需要連線至 Azure,而且您需要 Azure Active Directory 許可權才能完成註冊。Azure Stack HCI requires a connection to Azure, and you'll need Azure Active Directory permissions to complete the registration. 如果您還沒有這些帳戶,請要求您的 Azure AD 系統管理員授與許可權,或將其委派給您。If you don't already have them, ask your Azure AD administrator to either grant permissions or delegate them to you. 如需詳細資訊,請參閱 將 Azure Stack HCI 連線到 AzureSee Connect Azure Stack HCI to Azure for more information. 註冊之後,叢集會在背景自動連接。Once registered, the cluster connects automatically in the background.

後續步驟Next steps

在本快速入門中,您已建立 Azure Stack HCI 叢集並向 Azure 註冊。In this quickstart, you created an Azure Stack HCI cluster and registered it with Azure. 您現在已準備好 建立磁片 區,然後 建立虛擬機器You are now ready to Create volumes and then Create virtual machines.