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

Procedure如何增加 SCSI 法定裝置

若要完成此程序,請透過磁碟機的裝置 ID (DID) 來識別節點共用的磁碟機。請使用 scdidadm 指令來查看 DID 名稱的清單。請參閱 scdidadm(1M) 線上手冊,以取得其他資訊。

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

  2. 啟動 scsetup 公用程式。


    # scsetup
    

    螢幕將顯示 scsetup 主功能表。

  3. 鍵入與 [Quorum] 選項相對應的數字。

    顯示 Quorum Menu。

  4. 鍵入與增加法定裝置的選項相對應的數字,然後在 scsetup 公用程式要求確認是否要增加法定裝置時鍵入 yes

    scsetup 公用程式將詢問要增加的法定裝置的類型。

  5. 鍵入與 SCSI 法定裝置的選項相對應的數字。

    scsetup 公用程式將詢問您希望使用哪一個全域裝置。

  6. 鍵入您要使用的全域裝置。

    scsetup 公用程式會要求您確認是否要將新的法定裝置增加至您所指定的全域裝置。

  7. 鍵入 yes 繼續增加新的法定裝置。

    如果新法定裝置增加成功,scsetup 公用程式會顯示增加成功的訊息。

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


    # scstat -q
    
  9. 對共用儲存體附件的每組節點重複執行步驟 3步驟 8


範例 5–1 增加 SCSI 法定裝置

以下範例顯示了在 scsetup 增加 SCSI 法定裝置和驗證步驟時由其產生的 scconf 指令。


Become superuser on any cluster node.

[執行 scsetup 公用程式:]
# scsetup
Select Quorum>Add a quorum device.
Select SCSI device.
Type the global device your are using.
d20
Type yes to continue adding the new quorum device.

yes
[驗證 scconf 指令是否已成功完成:]
 
scconf -a -q globaldev=d20
 
    Command completed successfully.
Quit the scsetup Quorum Menu and Main Menu.
[驗證是否已經增加了該法定裝置:]
# 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/d20s1  1        1       Online
  Device votes:  /dev/did/rdsk/d20s2  1        1       Online