次の手順では、Solaris ZFS 以外のファイルシステムを高可用性にするように HAStoragePlus リソースタイプを設定する方法について説明します。
# clresourcegroup create resource-group
# clresourcetype register SUNW.HAStoragePlus
# clresource create -g resource-group \ -t SUNW.HAStoragePlus -p FileSystemMountPoints=mount-point-list hasp-resource
# clresourcegroup online -M resource-group
この例では、ファイルシステム /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