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

印刷ビューの終了

更新: 2014 年 9 月
 
 

Solaris ZFS 以外のファイルシステムを高可用性にするように HAStoragePlus リソースタイプを設定する方法

次の手順では、Solaris ZFS 以外のファイルシステムを高可用性にするように HAStoragePlus リソースタイプを設定する方法について説明します。


注 -  Oracle Solaris Cluster Manager GUI を使用して、HAStoragePlus リソースとそれを含む新しいリソースグループを 1 回の操作で作成することもできます。GUI のログイン手順については、Oracle Solaris Cluster システム管理 のOracle Solaris Cluster Manager にアクセスする方法を参照してください。ログインしたあと、「タスク」をクリックし、「高可用性ストレージ」をクリックしてウィザードを起動します。
  1. グローバルクラスタ内のいずれかのノードで、RBAC の承認 solaris.cluster.modify を提供する root 役割になります。
  2. フェイルオーバーリソースグループを作成します。
    # clresourcegroup create 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. HAStoragePlus リソースを含むリソースグループをオンラインおよび管理状態にします。
    # clresourcegroup online -M resource-group
使用例 2-38  UFS ファイルシステムをグローバルクラスタで高可用性にするための HAStoragePlus リソースタイプの設定

この例では、ファイルシステム /web-1 が、そのファイルシステムをグローバルクラスタで高可用性にするように 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 /web-1 ufs 2 no logging
# clresourcegroup create hasp-rg 
# clresourcetype register SUNW.HAStoragePlus
# clresource create -g hasp-rg -t SUNW.HAStoragePlus -p FileSystemMountPoints=/global/ufs-1 hasp-rs
# clresourcegroup online -M hasp-rg
使用例 2-39  UFS ファイルシステムをゾーンクラスタで高可用性にするための HAStoragePlus リソースタイプの設定

この例では、ファイルシステム /web-1 が、そのファイルシステムを sczone という名前のゾーンクラスタで高可用性にするように HAStoragePlus リソースに対して構成されると仮定します。ローカルファイルシステムが、SUNW.HAStoragePlus リソースタイプを使用してゾーンクラスタに対して高可用性ローカルファイルシステムとして構成されている場合、HAStoragePlus リソースは、そのゾーンクラスタ構成内のファイルシステム情報を読み取ります。

# clzonecluster configure sczone
clzc:sczone> add fs
clzc:sczone:fs> set dir=/web-1
clzc:sczone:fs> set special=/dev/md/apachedg/dsk/d0
clzc:sczone:fs> set raw=/dev/md/apachedg/rdsk/d0
clzc:sczone:fs> set type=ufs
clzc:sczone:fs> add options [logging]
clzc:sczone:fs> end
clzc:sczone:fs> exit
# clresourcegroup create -Z sczone hasp-rg
# clresourcetype register -Z sczone SUNW.HAStoragePlus
# clresource create -Z sczone -g hasp-rg \
-t SUNW.HAStoragePlus -p FileSystemMountPoints=/web-1 hasp-rs
# clresourcegroup online -Z sczone -M hasp-rg