设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 服务器 > 系统 > 正文

GCP - Running Windows Server Failover Clustering Step by Ste

发布时间:2021-01-08 16:04 所属栏目:52 来源:网络整理
导读:手把手介紹如何在 Google Platform 上面建立 Windows Server 容錯移轉叢集並達到IIS Web Application HA 的效果。此篇為下集從叢集容錯管理設定到如何在 GCP 中達成 IIS 的請求移轉。 本篇架構參考 Google 官方文件的 Running Windows Server Failover Clust

手把手介紹如何在 Google Platform 上面建立 Windows Server 容錯移轉叢集並達到IIS Web Application HA 的效果。此篇為下集從叢集容錯管理設定到如何在 GCP 中達成 IIS 的請求移轉。

本篇架構參考 Google 官方文件的 Running Windows Server Failover Clustering。主要針對整體操作完整的手把手教學並針對細節描述。而針對讀者在閱讀上更能融入整體教學,稍微調整了原文的順序。

在上篇已建置完 GCP 主機並加入至 AD 內做管理,這邊將接手完成叢集容錯的安裝與設定

Setting up failover clustering

接著在 wsfc-1wsfc-2 完成以下動作

  • 遠端登入主機
  • 安裝 Failover Clustering,安裝時要用 WSFC.TESTclusteruser 進行操作,不然會無法完成安裝。這邊要注意不用安裝該功能在 wsfc-dc 主機上。
  • 將 wsfc-1 與 wsfc-2 設為叢集內的節點(node)
  • 透過驗證步驟就可以知道當前設定是否正確,並透過 Create the cluster now using the validated nodes 這個按鈕即可立即為當前驗測過的步驟建立叢集。
  • 在 Create Cluster Wizard 中的 Access point 內設定叢集名稱為 testcluster
  • 將位置設定為 10.0.0.8

首先完成 Failover Clustering 安裝:

GCP - Running Windows Server Failover Clustering Step by Ste

接著開始加入節點:

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

完成後即可看到當前節點出現兩台新增的主機與當前配置狀態(Assigned Vote 與 Current Vote):

GCP - Running Windows Server Failover Clustering Step by Ste

詳細步驟可以參考微軟官方的 Create a Failover Cluster.aspx#Validate%20the%20configuration)

Creating the file share witness

而當成將兩台主機都加入叢集內作為可使用節點時,我們需要透過一個公平的投票機制選出誰為當前主要運作節點接手服務處理,為此我們需要建立一個 quorum 制度來做仲裁。

這部分很簡單的透過一個sharefolder的方式來傳給 AD ,告知當前哪一台主機離線則需要將判斷是否要將工作交給另外一台接手。 GCP 目前是相信可透過 Live Migration 與 automatic restart 來提供可信賴的 Share Witness 服務。

這邊透過以下步驟可以透過檔案分享建立起見證機制來控制當前叢集處理的角色分配:

建立檔案分享路徑

  1. 遠端連線進入 wsfc-dc
  2. 設定檔案分享的資料於該台主機上 C:shares ,透過滑鼠右鍵選擇分享。
  3. 分享成功後並在裡面再建立一個資料夾 clusterwitness-testcluster

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

在叢集容錯處理中加入見證判斷的分享檔案配置

  1. 在叢集節點上的 wsfc-1wsfc-2,開啟 Failover Cluster Manager.
  2. 於左側用滑鼠右鍵點選當前叢集 (testcluster.WSFC.TEST) 並移動至 More Actions 並點選 Configure Cluster Quorum Settings.
  3. 接著透過設定精靈,一步步按下一步確認.
  4. 當設定 quorum configuration option,選擇 quorum witness 並選擇 Configure a file share witness.
  5. 在路徑上選擇剛剛設定好的分享路徑(即可 “10.0.0.6clusterwitness-testcluster”). 這裡 10.0.0.6 的 IP 就是 wsfc-dc VM所設定配置的.
  6. 按下確認完成所有配置

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读