Sun Cluster 系統管理指南(適用於 Solaris 作業系統)

清除舊法定伺服器叢集資訊

若要移除類型為 quorumserver 的法定裝置,請如如何移除法定裝置所述,使用 clquorum remove 指令。在正常作業下,此指令也會移除法定伺服器主機上的法定伺服器資訊。但是,如果叢集失去與法定伺服器主機的通訊,移除法定裝置將無法清除此資訊。

在以下情況中,法定伺服器叢集資訊會無效:


注意 – 注意 –

如果類型為 quorumserver 的法定裝置尚未從叢集移除,使用此程序來清除有效的法定伺服器,將會損害叢集法定。


Procedure如何清除法定伺服器配置資訊

開始之前

如何移除法定裝置所述,從叢集移除法定伺服器法定裝置。


注意 – 注意 –

只有在符合「Sun Cluster Quorum Server User’s Guide」中的「Cleaning Up Stale Quorum Server Cluster Information」所述情況時,才使用此程序。如果叢集仍使用此法定伺服器,執行此程序會損害叢集法定裝置。


  1. 成為法定伺服器主機上的超級使用者。

  2. 使用 clquorumserver clear 指令清除配置檔案。


    # clquorumserver clear -c clustername -I clusterID quorumserver [-y]
    -c clustername

    之前使用法定伺服器做為法定裝置的叢集名稱。

    您可以在叢集節點上執行 cluster show,來取得叢集名稱。

    -I clusterID

    叢集 ID。

    叢集 ID 是 8 位數的十六進位數字。您可以在叢集節點上執行 cluster show,來取得叢集 ID。

    quorumserver

    一個或多個伺服器的識別碼。

    法定伺服器可以由連接埠號碼或實例名稱來識別。叢集節點使用連接埠號碼與法定伺服器進行通訊。實例名稱是在法定伺服器配置檔案 /etc/scqsd/scqsd.conf 中指定。

    -y

    強制執行 clquorumserver clear 指令,在不先提示確認的情況下,從配置檔案中清除叢集資訊。

    只有在您確定要從法定伺服器移除過時的叢集資訊時才使用此選項。

  3. (可選擇) 如果此伺服器實例上沒有配置其他法定裝置,請停止法定伺服器。

    如需具體指示,請參閱「Sun Cluster Quorum Server User’s Guide」中的「How to Stop a Quorum Server」


範例 6–18 從法定伺服器配置清除過時的叢集資訊

此範例將有關叢集 sc-cluster 的資訊從使用連接埠 9000 的法定伺服器中移除。


# clquorumserver clear -c sc-cluster -I 0x4308D2CF 9000
The quorum server to be unconfigured must have been removed from the cluster.  
Unconfiguring a valid quorum server could compromise the cluster quorum.  Do you 
want to continue? (yes or no) y