以下过程说明了如何设置 HAStoragePlus 资源类型以使 Solaris ZFS 以外的文件系统具有高可用性。
# 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 设置 HAStoragePlus 资源类型以使 UFS 文件系统对区域群集具有高可用性
此示例假设已将文件系统 /web-1 配置为 HAStoragePlus 资源,使该文件系统对名为 sczone 的区域群集具有高可用性。当使用 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