Sun Cluster データサービスの計画と管理 (Solaris OS 版)

ProcedureHAStoragePlus リソースタイプを設定して Solaris ZFS 以外のファイルシステムを高可用性にする

次に、Solaris ZFS 以外のファイルシステムを高可用性にするために HAStoragePlus リソースタイプを設定する手順を示します。

  1. グローバルクラスタ内の任意のノードで、スーパーユーザーになるか、solaris.cluster.modify RBAC の承認を提供する役割になります。

  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–35 HAStoragePlus リソースタイプを設定して UFS ファイルシステムをグローバルクラスタに対して高可用性にする

この例では、ファイルシステム /web-1HAStoragePlus リソースに構成し、グローバルクラスタに対して高可用性にするものとします。


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–36 HAStoragePlus リソースタイプを設定して UFS ファイルシステムをゾーンクラスタに対して高可用性にする

この例では、ファイルシステム /web-1HAStoragePlus リソースに構成し、ゾーンクラスタ sczone に対して高可用性にするものとします。


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
# 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> 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=/global/ufs-1 hasp-rs
# clresourcegroup online -Z sczone -M hasp-rg