實測 vSAN 6

測試 vMotion 速度

既然所有的資料都被分配到各個不同的主機內,那很好奇做 vMotion 會不會變更快呢? 首先選擇 Windows 7 的 Test7 主機,確認他使用 1G RAM, 實際所占空間越6.52G,放置在 10.1.207.12 的這台主機上面執行

VMGuest Settings for testing vmotion in vSAN 6
VMGuest Settings for testing vmotion in vSAN 6

強制他改到另一台 Host 上執行

VMGuest Settings for testing vmotion in vSAN 6
VMGuest Settings for testing vmotion in vSAN 6

選擇 10.1.207.11

VMGuest Settings for testing vmotion in vSAN 6
VMGuest Settings for testing vmotion in vSAN 6

以 vMotion 優先的方式來進行移轉,這樣機器效能會稍微頓一下,但整個過程會比較快速一點

VMGuest Settings for testing vmotion in vSAN 6
VMGuest Settings for testing vmotion in vSAN 6

依照 Log 所顯示,指令從執行到結束只要13秒鐘,神速。

vmotion took 13 secs in vSAN 6
vmotion took 13 secs in vSAN 6

測試 Host 進入Maintain模式

這個測試看看其中一台 Host 進入了 Maintain Mode,機器是否會自動分配,保持不斷線。

Testing vSAN6 when one host enter maintain mode
Testing vSAN6 when one host enter maintain mode

進入前會讓你確認是否要把Guest移到其他 host 執行

Testing vSAN6 when one host enter maintain mode
Testing vSAN6 when one host enter maintain mode

警告訊息,告訴你可能會很久才會進入維護模式

Testing vSAN6 when one host enter maintain mode
Testing vSAN6 when one host enter maintain mode

這時可以在 DRS 的紀錄看到移轉的紀錄

Testing vSAN6 when one host enter maintain mode
Testing vSAN6 when one host enter maintain mode

離開Maintain模式後立即自動執行 DRS 再重新分配資源

Testing vSAN6 when one host enter maintain mode

Testing vSAN6 when one host enter maintain mode

測試 Host 主機硬碟故障無法回復,短時間內不會有硬碟置換

Host 硬碟故障, 模擬由 Host 上刪除一顆硬碟

確定 Test3 主機是在 10.1.207.11 上面執行

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

到該主機強制刪除一顆硬碟並刪除檔案

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

當然到 WebClient 就可以看到有硬碟故障的錯誤

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

同時在 vSAN 的畫面可以驗證有硬碟遺失(absent)

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

但此時在Test3 的 vm guest 持續的執行Ping 指令,並沒有中斷

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

此時選擇把故障的硬碟移除掉,因為硬碟不在了勾選”撤除資料”會有問題,記得要改一下 default 設定

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

因為硬碟有故障被移除,就會有些物件不符合 vSAN的 Policy,有部分主機(5台)並沒有在其他主機保留2份完整資料

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

此時可以手動每台主機去重新套用規則,但這個動作會隨著主機變多就會很繁瑣

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

當然也可以一口氣全部套用,但此時 Host 間會有大量的資料交換,可能會影響執行效能

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

雖然系統回應馬上就完成,但實際上重新去檢查還是會出現不符vSAN的Policy

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

實際去看 ESX Host 上,就可以得知有大量的 Disk I/O

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

等過了一陣子後,所有的複製動作完成再重新檢查是否符合 policy 就可以看到符合的數量

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

此時再去觀察ESX Host的 Disk I/O 似乎還沒有降回來,但系統已經回復正常狀態

Testing vSAN6 when host hdd damaged
Testing vSAN6 when host hdd damaged

新增HOST磁碟機

因為前述測試由 .11 主機移除掉一個 70G 的硬碟,所以我加了一顆 90G 的硬碟, 在系統上就可看到一顆硬碟沒有加入到 vSAN

Testing vSAN6 host added new hdd
Testing vSAN6 host added new hdd

選到該硬碟群組選擇加入硬碟的選項,選入沒有被使用的那顆新加入的硬碟

Testing vSAN6 host added new hdd
Testing vSAN6 host added new hdd

由事件也可以得知整個 vSAN 硬碟空間有座增長

Testing vSAN6 host added hdd
Testing vSAN6 host added hdd

此時應該不會影響現有的虛擬儲存裝置的原則才對,所以全都是綠燈

Testing vSAN6 host added hdd

Testing vSAN6 host added hdd

最終測試,強制關閉一台 ESX Host,驗證HA 及 vSAN機制是否能正常運作

首先選擇要”模擬”故障的 ESX Host

Testing vSAN6 host totally failed
Testing vSAN6 host totally failed

直接使用 VMWare 功能強制關閉電源,過不久(或手動refresh webclient)就會出現該主機異常的警示

Testing vSAN6 host totally failed
Testing vSAN6 host totally failed

馬上可以看得到Host 無回應的錯誤,同時其他兩台也亮出黃牌

Testing vSAN6 host totally failed
Testing vSAN6 host totally failed

在其中一台 ESX Host 掛掉的情況,其他 VMWare 是否都能正常執行,因為台數還算少,所以我就每台連入 Guest 確認電腦還活著

Testing vSAN6 host totally failed
Testing vSAN6 host totally failed

Host 替換

同場加碼模擬 .12 的Host 掛了就無法啟動,只能要新機替換,就重新安裝了一台, CPU/RAM 跑持同樣,但 HDD 只掛一顆200G,加入到 Cluster 裡面未經過設定還是出現紅字

Testing vSAN6 added new host
Testing vSAN6 added new host

此時要記得調整 .14 上面的網路設定(如同前份安裝文件), 確定 DataStore 刪掉等,再用手動的方式把 .14 的硬碟空間配置給 vSAN 使用

Testing vSAN6 added new host
Testing vSAN6 added new host

勾選要提供空間出來的硬碟及SSD

Testing vSAN6 added new host
Testing vSAN6 added new host

完成後就會看到下圖,系統已經把空間加入

Testing vSAN6 added new host
Testing vSAN6 added new host

這時候發現 .11 這台的 HA 機制產生問題,

Testing vSAN6 added new host
Testing vSAN6 added new host

針對這個 Host 按右鍵選擇”針對 vSphere HA 重新設定”

Testing vSAN6 added new host
Testing vSAN6 added new host

讓系統跑一下就恢復正常了

Testing vSAN6 added new host
Testing vSAN6 added new host

再驗證一下 vSAN 的虛擬儲存原則設定都是符合的,就可以確認本次置換動作完成,如果不相容就要手動同步的動作喔

發表迴響

%d 位部落客按了讚: