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

如何移除法定裝置

您也可以使用 SunPlex Manager GUI 來完成此程序。 請參閱 SunPlex Manager 線上說明,以取得詳細資訊。

法定磁碟被移除後,它將不再參與建立法定數目的投票。 請注意,所有兩個節點的叢集都要求至少配置一個法定裝置。 如果這是叢集上的最後一個法定裝置,scconf(1M) 從配置移除裝置時將會失敗。


註解 –

如果您要移除的裝置是叢集中的最後一個法定裝置,請參閱 如何從叢集移除最後一個法定裝置 的程序。


  1. 成為叢集中任何節點的超級使用者。

  2. 決定要移除的法定裝置。


    # scconf -pv | grep Quorum
    

  3. 執行 scsetup(1M) 公用程式。


    # scsetup
    

    顯示 Main Menu。

  4. 要使用法定裝置,請鍵入 1 (法定)。

  5. 要移除法定裝置,請鍵入 2 (移除法定磁碟)。

    在移除程序期間回答顯示的問題。

  6. 退出 scsetup

  7. 確認法定裝置移除成功。


    # scstat -q
    

範例—移除法定裝置

這個範例顯示如何從配置二個或以上法定裝置的叢集移除一個法定裝置。


Become superuser on any node and place the node to be removed in maintenance state.
[Determine the quorum device to be removed:]
# scconf -pv | grep Quorum
[Execute the scsetup utility:]
# scsetup
Select Quorum>Remove a quorum disk.
Answer the questions when prompted.
[Verify that the scconf command completed successfully:]
 
scconf -r -q globaldev=d4
 
    Command completed successfully.
Quit the scsetup Quorum Menu and Main Menu.
[Verify the quorum device is removed:]
# scstat -q
 
-- Quorum Summary --
 
  Quorum votes possible:      3
  Quorum votes needed:        2
  Quorum votes present:       3
 
-- Quorum Votes by Node --
 
                    Node Name           Present Possible Status
                    ---------           ------- -------- ------
  Node votes:       phys-schost-1       1        1       Online
  Node votes:       phys-schost-2       1        1       Online
 
-- Quorum Votes by Device --
 
                 Device Name         Present Possible Status
                 -----------         ------- -------- ------
  Device votes:  /dev/did/rdsk/d3s2  1        1       Online