次に、Solaris ZFS 以外のファイルシステムを高可用性にするために HAStoragePlus リソースタイプを設定する手順を示します。
グローバルクラスタ内の任意のノードで、スーパーユーザーになるか、solaris.cluster.modify RBAC の承認を提供する役割になります。
フェイルオーバーリソースグループを作成します。
# clresourcegroup create resource-group |
HAStoragePlus リソースタイプを登録します。
# clresourcetype register SUNW.HAStoragePlus |
HAStoragePlus リソースを作成し、ファイルシステムのマウントポイントを定義します。
# clresource create -g resource-group \ -t SUNW.HAStoragePlus -p FileSystemMountPoints=mount-point-list hasp-resource |
HAStoragePlus リソースを含むリソースグループをオンラインにし、管理状態にします。
# 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 |
この例では、ファイルシステム /web-1 を HAStoragePlus リソースに構成し、ゾーンクラスタ 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 |