Oracle® Solaris Cluster データサービス計画および管理ガイド

印刷ビューの終了

更新: 2014 年 9 月
 
 

クラスタファイルシステムの HAStoragePlus リソースを設定する方法

  1. クラスタ内のいずれかのノードで、RBAC の承認 solaris.cluster.modify を提供する root 役割になります。
  2. 必要に応じて、フェイルオーバーまたはスケーラブルリソースグループを作成します。

    フェイルオーバーグループを作成するには、次の手順を実行します。

    # clresourcegroup create resource-group

    スケーラブルグループを作成するには、次の手順を実行します。

    # clresourcegroup create -S [-p Maximum_primaries=m] [-p Desired_primaries=n] \
    [-n node-zone-list] resource-group
  3. HAStoragePlus リソースタイプを登録します。
    # clresourcetype register SUNW.HAStoragePlus
  4. HAStoragePlus リソースを作成し、ファイルシステムマウントポイントを定義します。
    # clresource create -g resource-group -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints="mount-point-list" hasp-resource

    リソースは有効状態で作成されます。

  5. resource-group にデータサービスリソースを追加し、それらの依存関係を hasp-resource に設定します。
    # clresource set -p  Resource_dependencies_offline_restart= \
    hasp-resource application-resource
  6. HAStoragePlus リソースを含むリソースグループをオンラインおよび管理状態にします。
    # clresourcegroup online -M resource-group
使用例 2-34  グローバルクラスタ内のクラスタファイルシステムを使用した HAStoragePlus リソースタイプの設定

この例では、フェイルオーバーリソースグループのために、グローバルクラスタ内のクラスタファイルシステム /global/ufs を使用して HAStoragePlus リソースを構成する方法を示します。

phys-schost-1# vi /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
/dev/md/apachedg/dsk/d0 /dev/md/apachedg/rdsk/d0 /global/ufs ufs 2 yes global, logging
# clresourcegroup create hasp-rg
# clresourcetype register SUNW.HAStoragePlus
# clresource create -g hasp-rg -t SUNW.HAStoragePlus -p \
FileSystemMountPoints=/global/ufs hasp-rs
# clresourcegroup online -M hasp-rg
使用例 2-35  ゾーンクラスタ内のクラスタファイルシステムを使用した HAStoragePlus リソースタイプの設定

この例では、スケーラブルリソースグループのために、ゾーンクラスタ内のクラスタファイルシステム /global/ufs を使用して HAStoragePlus リソースを構成する方法を示します。このクラスタファイルシステムは、マウントポイント /zone/ufs 上でゾーンクラスタノードに対して使用できます。この構成例は、グローバルファイルシステム /global/ufs がグローバルクラスタ内にマウントされ、あとでリソースグループがオンラインである 2 つのゾーンクラスタノードにループバックマウントされるようにします。

phys-schost-1# vi /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
/dev/md/apachedg/dsk/d0 /dev/md/apachedg/rdsk/d0 /global/ufs ufs 2 yes global, logging
# clzonecluster configure sczone
clzc:sczone> add fs
clzc:sczone:fs> set dir=/zone/ufs
clzc:sczone:fs> set special=/global/ufs
clzc:sczone:fs> set type=lofs
clzc:sczone:fs> end
clzc:sczone:fs> exit
# clresourcegroup create -Z sczone -p desired_primaries=2 -p maximum_primaries=2 hasp-rg
# clresourcetype register -Z sczone SUNW.HAStoragePlus
# clresource create -Z sczone -g hasp-rg -t SUNW.HAStoragePlus -p
FileSystemMountPoints=/zone/ufs hasp-rs
# clresourcegroup online -Z sczone -M hasp-rg