この手順を実行するには、ノードが共有するデバイス ID (DID) によりディスクドライブを確認します。cldevice show コマンドを使用して、DID 名の一覧を参照します。詳細は、cldevice(1CL) のマニュアルページを参照してください。
Sun Cluster は、2 ノードクラスタ構成でのみ Sun NAS 定足数デバイスをサポートしています。
この手順では、長形式の Sun Cluster コマンドを使用して説明します。多くのコマンドには短縮形もあります。コマンド名の形式の長短を除き、コマンドは同一です。コマンドのリストとその短形式については、付録 A 「Sun Cluster オブジェクト指向コマンド」を参照してください。
Sun NAS GUI を使用して、Sun NAS ファイラ上で iSCSI デバイスを設定します。
各クラスタノードで、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 |
1 つのクラスタノードから DID を iSCSI LUN 用に構成します。
# /usr/cluster/bin/scgdevs |
クラスタの任意のノードで、スーパーユーザーになるか、RBAC の承認 solaris.cluster.modify を提供する役割になります。
clsetup ユーティリティーを起動します。
# clsetup |
clsetup のメインメニューが表示されます。
定足数のオプションに対応する番号を入力します。
「定足数メニュー」が表示されます。
定足数デバイスを追加するためのオプションに対応する番号を入力し、追加する定足数デバイスを確認するメッセージが表示されたら「yes」と入力します。
追加する定足数デバイスの種類を確認するメッセージが表示されます。
SCSI 定足数デバイスのオプションに対応する番号を入力します。
どのグローバルデバイスを使用するかを確認するメッセージが表示されます。
使用しているグローバルデバイスを入力します。
指定したグローバルデバイスに新しい定足数デバイスを追加するか確認を求めるメッセージが表示されます。
「yes」と入力し、新しい定足数デバイスの追加を続行します。
新しい定足数デバイスが正常に追加されると、その旨のメッセージが表示されます。
定足数デバイスが追加されていることを確認します。
# clquorum list -v |
次の例は、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 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 |