Sun Cluster のシステム管理 (Solaris OS 版)

ProcedureSun NAS 定足数デバイスを追加する

この手順を実行するには、ノードが共有するデバイス ID (Device Identifier、DID) によりディスクドライブを確認します。cldevice show コマンドを使用して、DID 名の一覧を参照します。詳細は、cldevice(1CL) のマニュアルページを参照してください。


注 –

Sun Cluster は、2 ノードクラスタ構成でのみ Sun NAS 定足数デバイスをサポートしています。


phys-schost# プロンプトは、グローバルクラスタのプロンプトを表します。この手順は、グローバルクラスタ上で実行します。

この手順では、長形式の Sun Cluster コマンドを使用して説明します。多くのコマンドには短縮形もあります。コマンド名の形式の長短を除き、コマンドは同一です。コマンドのリストとその短縮形については、付録 B Sun Cluster オブジェクト指向コマンドを参照してください。

  1. Sun NAS GUI を使用して、Sun NAS ファイラ上で iSCSI デバイスを設定します。

    1. 約 50 M バイトのサイズのファイルボリュームを作成します。


      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. 1 つのクラスタノードから DID を iSCSI LUN 用に構成します。


    # /usr/cluster/bin/scgdevs
  4. クラスタの任意のノードで、スーパーユーザーになるか、RBAC の承認 solaris.cluster.modify を提供する役割になります。

  5. clsetup ユーティリティーを起動します。


    # clsetup
    

    clsetup のメインメニューが表示されます。

  6. 定足数のオプションに対応する番号を入力します。

    「定足数メニュー」が表示されます。

  7. 定足数デバイスを追加するためのオプションに対応する番号を入力し、追加する定足数デバイスを確認するメッセージ clsetup ユーティリティーのプロンプトが表示されたら「yes」と入力します。

    追加する定足数デバイスの種類を確認するメッセージが表示されます。

  8. 共有ディスク定足数デバイスのオプションに対応する番号を入力します。

    どのグローバルデバイスを使用するかを確認するメッセージが表示されます。

  9. 使用しているグローバルデバイスを入力します。

    指定したグローバルデバイスに新しい定足数デバイスを追加するか確認を求めるメッセージが表示されます。

  10. yes」と入力し、新しい定足数デバイスの追加を続行します。

    新しい定足数デバイスが正常に追加されると、clsetup ユーティリティーではその旨のメッセージが表示されます。

  11. 定足数デバイスが追加されていることを確認します。


    # clquorum list -v
    

例 6–2 Sun NAS 定足数デバイスの追加

次の例は、Sun NAS 定足数デバイスを追加する際に clsetup によって生成される 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

/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:]

  [Directly attached shared disk device   shared_disk]

  [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

 

Quorum         Type

-------         ----

d20             shared_disk

scphyshost-1    node

scphyshost-2    node