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

Procedure如何增加 Sun NAS 法定裝置

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


備註 –

Sun Cluster 僅在雙節點叢集配置上支援 Sun NAS 法定裝置。


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

  1. 使用 Sun NAS GUI 設定 Sun NAS Filer (NAS 裝置) 上的 iSCSI 裝置。

    1. 建立大小約 50 MB 的檔案磁碟區。


      File Volume Operations -> Create File Volume
    2. 對於每個節點,建立一個 iSCSI 存取清單。


      iSCSI Configuration -> Configure Access List
      1. 使用叢集的名稱做為 iSCSI 存取清單名稱。

      2. 將每個叢集節點的初始器節點名稱增加至存取清單。不需要 CHAP 和 IQN。

    3. 配置 iSCSI LUN


      iSCSI Configuration -> Configure iSCSI LUN

      您可以使用後備檔案磁碟區的名稱做為 LUN 的名稱。將每個節點的存取清單增加至 LUN。

  2. 在每個叢集節點上,探索 iSCSI LUN 並將 iSCSI 存取清單設為靜態配置。


    # iscsiadm modify discovery -s enable
    
    	# iscsiadm list discovery
    	Discovery:
    	        Static: enabled
    	        Send Targets: disabled
    	        iSNS: disabled
    
    	#  iscsiadm add static-config iqn.LUNName,IPAddress_of_NASDevice
    # devfsadm -i iscsi
    # cldevice refresh
    
  3. 從一個叢集節點,為 iSCSI LUN 配置 DID。


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

  5. 啟動 clsetup 公用程式。


    # clsetup
    

    螢幕將顯示 clsetup 主功能表。

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

    顯示 Quorum Menu。

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

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

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

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

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

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

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

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

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


    # clquorum list -v
    

範例 6–2 增加 Sun NAS 法定裝置

以下範例顯示 clsetup 增加 Sun NAS 法定裝置並進行驗證時,由其產生的 clquorum 指令。


Add an iSCSI device on the Sun NAS filer.
Use the Sun NAS GUI to create a file volume that is approximately 50mb in size.
File Volume Operations -> Create File Volume
For each node, create an iSCSI access list.
iSCSI Configuration -> Configure Access List
Add the initiator node name of each cluster node to the access list. 
*** Need GUI or command syntax for this step. ***
Configure the iSCSI LUN
iSCSI Configuration -> Configure iSCSI LUN
On each of the cluster nodes, discover the iSCSI LUN and set the iSCSI access list to static configuration.
iscsiadm modify discovery -s enable
iscsiadm list discovery
Discovery:
   Static: disable
   Send Targets: enables
   iSNS: disabled
iscsiadm add status-config
iqn.1986-03.com.sun0-1:000e0c66efe8.4604DE16.thinquorum,10.11.160.20
devsadm -i iscsi
From one cluster node, configure the DID devices for the iSCSI LUN.
/usr/cluster/bin/scgdevs
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