設定適用於 Windows Azure 套件管理資料庫的 SQL AlwaysOn 可用性群組
適用于:Windows Azure Pack
若要支援Windows Azure Pack 管理資料庫的高可用性和災害復原,您可以使用 SQL AlwaysOn 可用性群組功能。
資源控管未執行的每個SQL Server都屬於多個可用性群組。 這表示您可以有不同的應用程式,每個應用程式位於不同的可用性群組中,都使用相同的SQL Server。
如需 AlwaysOn 可用性群組SQL Server的詳細資訊,請移至 https://msdn.microsoft.com/en-us/library/hh510230.aspx 。
設定包含 SQL AlwaysOn 可用性群組的 Windows Azure 套件管理資料庫
檢閱並符合此處所列的SQL AlwaysOn 可用性群組必要條件。
使用預設埠 1433 建立具有對應可用性群組接聽程式的可用性群組。 如需詳細資訊,請參閱 CREATE AVAILABILITY GROUP 資料定義語言語句。
在可用性群組中的每個 SQL 執行個體上執行下列程式碼。
sp_configure 'contained database authentication', 1; GO RECONFIGURE; GO
如需此腳本的詳細資訊,請參閱 自主資料庫驗證服務器組態選項 主題。
部署適用于 Windows Server 的 Azure Pack Windows。 設定每個Windows Azure Pack 元件時,請使用資料庫伺服器名稱的可用性群組接聽程式名稱。 這會將可用性群組接聽程式主資料庫設定為Windows Azure Pack 管理資料庫。
備份先前步驟中建立的資料庫。 這些資料庫包括:
Microsoft.MgmtSvc.Config
Microsoft.MgmtSvc.MySQL
Microsoft.MgmtSvc.PortalConfigStore
Microsoft.MgmtSvc.SQLServer
Microsoft.MgmtSvc.Store
Microsoft.MgmtSvc.Usage
Microsoft.MgmtSvc.WebAppGallery
如需如何備份資料庫的指示,請參閱如何:備份和還原資料庫 (SQL Server) 。
將先前步驟中備份的資料庫新增到可用性群組中。 如需如何執行這項操作的指示,請參閱將次要複本聯結至可用性群組 (SQL Server) 。 這會將資料庫同步至次要資料庫。
對於 UR1 及較舊的部署,管理資料庫不會建立為包含的資料庫。 因此,Windows Azure Pack 的主資料庫使用者登入必須同步至次要資料庫,如如何在SQL Server實例之間傳輸登入和密碼中所述。
AdminSiteNotificationServiceUser
AuthSiteNotificationServiceUser
MgmtSvc-AdminSite
MgmtSvc-AuthSite
MgmtSvc-Monitoring
MgmtSvc-MySQL
MgmtSvc-SQLServer
MgmtSvc-TenantAPI
MgmtSvc-TenantPublicAPI
MgmtSvc-TenantSite
MgmtSvc-Usage
MgmtSvc-UsageCollector
MgmtSvc-UsageCollector_Management
MgmtSvc-WebAppGallery
MgmtSvc-WindowsAuthSite
TenantSiteNotificationServiceUser
注意
部署 UR2 版本的新安裝Windows Azure Pack 時,您不需要傳輸登入,因為資料庫會建立為自主資料庫。 如果您將部署從 UR1 更新到 UR2,UR2 更新不會將現有的資料庫變更為包含的資料庫,因此您必須以上所述的方式傳輸使用者登入資訊。
使用 SQL Server Management Studio 選項對話方塊中的 AlwaysOn 儀表板驗證資料庫複寫。 如需詳細資訊,請參閱使用 AlwaysOn 儀表板 (SQL Server Management Studio) 。
如需Windows Azure Pack 和 SQL Server AlwaysOn 的詳細資訊,請參閱在 Windows Azure Pack 中設定 SQL AlwaysOn 可用性群組。