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

Procedure如何增加 SCSI 法定裝置

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

此程序提供長形式的 Sun Cluster 指令。大多數指令還有簡短的形式。除了指令名稱有長形式和短形式之分外,指令本身是相同的。如需指令及其短形式的清單,請參閱附錄 ASun Cluster 以物件為導向的指令

  1. 在叢集的任一節點上成為超級使用者或成為提供 solaris.cluster.modify RBAC 授權的角色。

  2. 啟動 clsetup 公用程式。


    # clsetup
    

    螢幕將顯示 clsetup 主功能表。

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

    顯示 Quorum Menu。

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

    clsetup 公用程式會詢問所要增加的法定裝置類型。

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

    clsetup 公用程式將詢問您要使用哪一個全域裝置。

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

    clsetup 公用程式會要求您確認新的法定裝置應新增至您所指定的全域位置。

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

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

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


    # clquorum list -v
    

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

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


Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization 
on any cluster node.

[Start the clsetup utility:]
# clsetup
[Select Quorum>Add a quorum device]
[Answer the questions when prompted.]
[You will need the following information.]
  [Information:              Example:]
  [SCSI device               scsi]
  [Global device		       d20]

[Verify that the clquorum command was completed successfully:]
 clquorum add d20
 
    Command completed successfully.
[Quit the clsetup Quorum Menu and Main Menu.]
[Verify that the quorum device is added:]
# clquorum list -v
 
Quorums         Type
-------         ----
d20             scsi
scphyshost-1    node
scphyshost-2    node