Oracle® Solaris Cluster 数据服务规划和管理指南

退出打印视图

更新时间: 2014 年 9 月
 
 

如何设置 HAStoragePlus 资源类型以使 Solaris ZFS 以外的文件系统具有高可用性

以下过程说明了如何设置 HAStoragePlus 资源类型以使 Solaris ZFS 以外的文件系统具有高可用性。


注 -  您还可以使用 Oracle Solaris Cluster Manager GUI 在一个操作中创建 HAStoragePlus 资源和用于包含它的新资源组。有关 GUI 登录说明,请参见Oracle Solaris Cluster 系统管理指南 中的如何访问 Oracle Solaris Cluster Manager。登录后,单击 "Tasks"(任务),然后单击 "Highly Available Storage"(高可用性存储)以启动向导。
  1. 在全局群集中的任一节点上,承担可提供 solaris.cluster.modify RBAC 授权的 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  设置 HAStoragePlus 资源类型以使 UFS 文件系统对全局群集具有高可用性

此示例假设已将文件系统 /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