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

Procedure如何增加 Network Appliance 網路連結式儲存體 (NAS) 法定裝置

在將 Network Appliance (NetApp) 網路連結式儲存體 (NAS) 裝置用做法定裝置時,有以下要求:

請參閱以下 Network Appliance NAS 文件,以取得有關建立與設置 Network Appliance NAS 裝置及 LUN 的資訊。您可以在 http://now.netapp.com 存取以下文件。

請參閱以下 Sun Cluster 說明文件,以取得有關在 Sun Cluster 環境中安裝 NetApp NAS 儲存裝置的資訊:「Sun Cluster 3.1 With Network-Attached Storage Devices Manual for Solaris OS」

步驟
  1. 請確定所有 Sun Cluster 節點均處於線上狀態,並可與 NetApp 叢集化檔案伺服器進行通訊。

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

  3. 啟動 scsetup 公用程式。


    # scsetup
    

    螢幕將顯示 scsetup 主功能表。

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

    顯示 Quorum Menu。

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

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

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

    scsetup 公用程式將要求您提供新的法定裝置的名稱。

  7. 鍵入要增加之法定裝置的名稱。

    該法定裝置名稱可以是您選擇的任意名稱。該名稱僅用於處理將來的管理指令。

    scsetup 公用程式將要求您提供新法定裝置的檔案伺服器名稱。

  8. 鍵入新法定裝置的檔案伺服器名稱。

    該名稱為檔案伺服器的網路可存取名稱或位址。

    scsetup 公用程式將要求您提供檔案伺服器的 LUN ID。

  9. 鍵入檔案伺服器上法定裝置的 LUN ID。

    scsetup 公用程式將要求您確認是否確定要將新的法定裝置增加至檔案伺服器。

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

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

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


    # scstat -q
    
  12. 對共用儲存體附件之節點的每個群組均重複執行步驟 4步驟 11


範例 5–2 增加 NetApp NAS 法定裝置

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


Make sure that all Sun Cluster nodes are online and can communicate with the NetApp clustered filer.

Become superuser on any cluster node.
[執行 scsetup 公用程式:]
# scsetup
Select Quorum>Add a quorum device.
Select Netapp_nas quorum device.
Type the name of the quorum device you are adding.

qd1
Type the name of the filer of the new quorum device.

nas1.sun.com
Type the ID of the quorum device LUN on the filer.
0
Type yes to continue adding the new quorum device.

yes
[驗證 scconf 指令是否已成功完成:]
 
scconf -a -q name=qd1,type-=netapp_nas,filer=nas1.sun.com,lun_id=0
 
    Command completed successfully.
Quit the scsetup Quorum Menu and Main Menu.
[驗證法定裝置是否已增加:]
# scstat -q
 
-- Quorum Summary --
 
  Quorum votes possible: 5
  Quorum votes needed:   3
  Quorum votes present:  5
 
-- 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:     qd1                  1        1       Online
 Device votes:     /dev/did/rdsk/d3s2   1        1       Online
 Device votes:     /dev/did/rdsk/d4s2   1        1       Online