DataCore WITNESS 見證設定

當虛擬磁碟失去所有鏡像路徑時,管理溝通路徑將用於通知軟體哪個儲存節點是最新的資料狀態,以便可以拒絕前端主機存取不是最新的存儲端。

當管理通信路徑也出現故障時,此消息將無法傳遞到ServerGroup中的其他DataCore主機時,並且前端主機可能會繼續往非最新的存儲端存取,從而導致數據副本之間可能不匹配。

在這種情況下,見證功能提供了額外的保護措施。當發生上述故障事件並配置了見證主機時,軟體將非同步的向DataCore主機組中的所有節點發出請求,以嘗試聯繫指定的見證主機。

無法聯繫見證主機的DataCore節點將拒絕前端主機存取該DataCore節點上的虛擬磁碟。

這可以確保,當鏡像和管理通信路徑失效時,允許哪些前端主機存取那些DataCore節點。

管理員可以為主機組配置預設的見證主機,也可以為特定虛擬磁碟分配見證主機。

可以將多個見證主機添加到配置中,然後與指定的虛擬磁碟一起搭配設定,以用於不同的目的。

DataCore主機組的預設見證主機(只能有一個)適用於所有未單獨配置為使用特定見證主機的多副本虛擬磁碟(鏡像和3副本虛擬磁碟)。

見證功能在叢集環境中或不同站點位置中存在鏡像虛擬磁碟且站點間通信失敗時特別有用。

可以根據管理員的偏好在任何一個站點上指定見證主機。

 

Witness Configuration

見證必須可以讓ServerGroup中所有DataCore節點都可以聯繫到,並可以回應ping的各種網絡設備。

必須為見證主機配置靜態IP地址(無DNS解析)。該設備應具有高MTBF(故障間隔時間)的高可用性。設置完畢後,可以根據需要更改見證。

對於位於不同實體位置(兩地)DataCore主機虛擬磁碟,建議見證主機應可放置於兩地之指定一方。發生通訊中斷時,請確保只有一台DataCore節點可以通過網路ping到見證主機。

用以發生故障時,以此方式來建立偏好端。

 

Important Notes

o不建議將DataCore主機作為見證,因為它們會不斷進行軟體更新以及可能需要停機和重新啟動操作系統的維護程序。

o如果ServerGroup中的節點之一離線,這時候不能修改見證IP設定。ServerGroup的預設見證,指定用作於虛擬磁碟的見證時,這時無法刪除它。如果證當前正在使用中,也無法將其刪除。

o見證的超時時間為三秒鐘。此值不能更改。

 

Witness Options

當無法聯繫見證時,可設定的行為。 可以針對"ServerGroup""指定的虛擬磁碟"來設置這些選項。

o靜態IP地址-見證可以使用靜態IP地址進行配置。 在這種情況下,前端主機可以繼續存取能夠跟見證溝通的DataCore節點。無法聯繫見證的DataCore節點將不提供存取服務。

o I/O隔離-一種特殊設定,它禁止前端主機存取受影響的兩台DataCore節點。

·這也是一種當DataCore節點之一意外重新啟動(通常稱為“崩潰”)的情況下,刻意的禁用所有前端主機存取虛擬磁盤方法。

o關閉(或無見證)-沒有配置見證,這是預設值。

·這是預設的設定,不會以任何方式禁用前端主機存取。前端主機可以繼續通過可用的路徑進行資料存取。

要恢復鏡像同步,管理員將必須判斷哪個Datacore節點有最新的資料狀態,然後根據需要,切開並重新鏡像虛擬磁碟。

·作為虛擬磁碟設置,此選項將行為設置為“預設”,它將用於ServerGroup預設見證配置的任何內容。

 

若要為特定的虛擬磁碟設置見證,必須使用cmdlet

請參閱以下部分以獲取更多信息

 

o           Add-DcsWitness - Adds a witness as an object in the server group configuration. This cmdlet is used when adding a witness that will be configured for a specific virtual disk.  After the witness is added, set the witness properties for the virtual disk using Set-DcsVirtualDiskWitnessProperties.

o           Set-DcsServerGroupDefaultWitnessProperties - Sets the default witness properties for the server group. The default server group setting  is applied to all virtual disks that are not individually configured to use a specific witness with the cmdlet Set-DcsVirtualDiskWitnessProperties.

·            The witness is configured by providing an IP address for that witness. If the witness already exists, the new IP address is applied to the existing witness. If a witness does not exist, the witness is automatically created using the provided IP address and assigned a default name. 

 

·            If there is an existing witness and it is set as either the -IOFenced or -NoWitness option, the witness is no longer needed and automatically deleted from the configuration.

 

o           Set-DcsVirtualDiskWitnessProperties - Sets the witness properties for a specified virtual disk. Setting a witness or the -IOFenced option overrides any default server group witness setting for the virtual disk. The -NoWitness option sets the behavior back to Default, which uses whatever is configured for the server group default witness.

·            The witness is configured by providing an IP address for that witness. If the witness does not already exist in the configuration, it should be added using the cmdlet Add-DcsWitness prior to setting the witness properties for the virtual disk. 

·            If there is an existing witness for a virtual disk, it can be set as either the -IOFenced or -NoWitness option. In either of these cases, if the witness is no longer needed it can be removed using Remove-DcsWitness.

o           Set-DcsWitnessProperties - Changes the name and/or IP address for a specified witness.

o           Invoke-DcsWitnessContact - Tests witness connectivity by issuing a request asynchronously to all servers in the local server group to attempt to contact the specified witness, and returns the results.

o           Get-DcsWitness - Returns all witnesses configured in the server group configuration.

·            Use Get-DcsServerGroup to display current values for DefaultWitness (Witness ID), and DefaultWitnessOption in the returned object.

o           Remove-DcsWitness - Removes the specified witness from the server group.

arrow
arrow
    文章標籤
    DataCore witness configuration
    全站熱搜

    小兵 發表在 痞客邦 留言(0) 人氣()