Sun Cluster 3.0 12/01 系統管理手冊

4.1.2 如何新增法定裝置

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

要完成這個程序,請指定一個由節點共用之磁碟裝置的裝置 ID (DID)。 請使用 scdidadm -L 指令來查看 DID 名稱的清單。 請參閱 scdidadm(1M) 線上援助頁,以取得其它詳細資訊。

請參閱 scsetup(1M)scconf(1M) 線上援助頁,以取得此程序中所使用指令的資訊。

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

  2. 輸入 scsetup 公用程式。


    # scsetup
    

    顯示 Main Menu。

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

    顯示 Quorum Menu。

  4. 要新增法定裝置,請鍵入 1 (新增法定磁碟)。

    請依指示進行,同時輸入要當作法定裝置的裝置名稱。

  5. 確認法定裝置新增成功。


    # scstat -q
    

  6. 對共用儲存裝置之節點的每一個群組重複 步驟 3步驟 5

4.1.2.1 範例-新增法定裝置

下列範例顯示 scconf 指令,這是由 scsetup 新增法定裝置和驗證步驟時所產生的。


Become superuser on any cluster node.
[Execute the scsetup utility:]
# scsetup
Select Quorum>Add a quorum disk.
Answer the questions when prompted.
[Verify that the scconf command completed successfully:]
 
scconf -a -q globaldev=d20
 
    Command completed successfully.
Quit the scsetup Quorum Menu and Main Menu.
[Verify the quorum device is removed:]
# scstat -q
 
-- Quorum Summary --
 
  Quorum votes possible: 4
  Quorum votes needed:   3
  Quorum votes present:  4
 
-- 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
  Device votes:  /dev/did/rdsk/d4s2  1        1       Online